About Hoverbuttons

They have: 4 posts

Joined: Nov 1999

If I was to set up hoverbuttons like this page: http://pageresource.com/jscript/jhover.htm recommends, would it error if the image that is called in the line that says:
pic1off= new Image(100,25);
pic1off.src="shoes1.gif";
didn't actually exist? If it would error, is there a way that it wouldn't?

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

You would get broken images, but probably not a script error. If you don't want the chance of an error, use an image that exists in its place.

------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.