Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

63 users online



2 newbie questions here......

2 newbie questions here......

Currently viewing this thread: 1 (0 members and 1 guests)


Ikara88

Ikara88

Status: Offline!

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! Smile

lo0ol

lo0ol

Status: Offline!

Put this in your <HEAD> of your documents to drop the image toolbar in IE:

Code:

<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

alden

alden

Status: Offline!

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 .. Smile

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

___________________

http://www.ecstaticdesign.com/edflashkit.jpg

riah

riah

spottieottiedopaliscious
Status: Offline!
Quote:

1.) make a no click javascript here is one


all that isn't needed
loOol got it right

___________________

http://codetch.com/skin/sig.png
riah.mat1c.org

lo0ol

lo0ol

Status: Offline!

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

alden

alden

Status: Offline!

ehh whatever i thought he didnt want people downloading his pictures or whatever sorry for trying to help

___________________

http://www.ecstaticdesign.com/edflashkit.jpg

Ikara88

Ikara88

Status: Offline!

thanks guys, that took care of what I was looking for Smile

Penguin

Penguin

Status: Offline!

Re: 2 newbie questions here......

Quote:

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.

___________________

http://www.louiekovic.com/web/letmecallitart.jpg

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0182 seconds.