
February 7th, 2003
10:22 PM
2 newbie questions here......
I've just got into web design a few months ago and have been using Dreamweaver 4, but there are a couple things I've never figured out how to do, if they can be done at all. Maybe it's a javascript I'm looking for?
anyways, here they are:
1. when I place an image on a site, then view the site in Internet Explorer, this little pop-up shows up in the top-left corner of the image with some icons in it, like save image, print, etc.
Is there anyways I can disable this on my site?
2. I want to place a little icon that when people click on it, it will download a Word file. How would I go about doing this? All I need to know is how to make the icon link make the download begin?
Thanks in advance! 

February 7th, 2003
10:43 PM
Put this in your <HEAD> of your documents to drop the image toolbar in IE:
<meta http-equiv="imagetoolbar" content="no" />
Not sure about the Word bit; I know if you link directly to the .doc on your server it (I think) loads straight into the browser. You could always tell your users to click "Save target as". :\ Maybe someone else knows how to download it straight from the server?
___________________
Good-Tutorials.com - Listing over 2400 Adobe Photoshop Tutorials
AdCache - Advertising networks reviewed

February 7th, 2003
10:46 PM

1.) make a no click javascript here is one
/*
No Right Click
by: Mondain
*/
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
To do this open dreamweaver and just start a new page and go to the code view and delete everything even the html stuff. Then paste that code in there and save it as (something.js). Now upload this to your server and every page you have an image or something you dont want people to right click or that icon to apper put this in the header of the page. <script src="noclick.js"></script>
Thats it ..
2.) this is easy all you have to do is make a normal link to the file say its bob.exe just use this <a href="http://www.Yoursite.com/bob.exe" target="_blank">
If you are trying to have someone download a .doc file or something just zip that file and thats it
___________________


February 8th, 2003
12:15 AM
spottieottiedopaliscious
Status: Offline!
1.) make a no click javascript here is one
all that isn't needed
loOol got it right
___________________
riah.mat1c.org

February 8th, 2003
03:40 AM
He's talking about the tools that happen when a user mouseovers a large picture in IE. They allow you to easily save and quicky resize the image, among other things. I find it pretty useful, at least the resize part.
___________________
Good-Tutorials.com - Listing over 2400 Adobe Photoshop Tutorials
AdCache - Advertising networks reviewed

February 8th, 2003
06:45 AM
ehh whatever i thought he didnt want people downloading his pictures or whatever sorry for trying to help
___________________


February 8th, 2003
01:45 PM
thanks guys, that took care of what I was looking for 

February 8th, 2003
08:06 PM
Re: 2 newbie questions here......
when I place an image on a site, then view the site in Internet Explorer, this little pop-up shows up in the top-left corner of the image with some icons in it, like save image, print, etc.
Also, <img src="img.gif" galleryimg="no"></img> works for me.
___________________
