FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

swap image help

 


xframe
ok thanks to badai i know how to do a swap image but i think the template im using on dreamweaver is preventing it from working....but when i created a blank new page it worked. heres the page im trying to apply it on http://xframe.frih.net/ai/nge/angels.html ive got the to links under "angels" set up for swap image but they wont work. any ideas? thanks

Last edited by xframe on Thu Aug 17, 2006 7:40 pm; edited 1 time in total
badai
give the image a name/id

then, onmouseover the link, use document.images[id].src=other_image_url
varun_dodla
badai wrote:
give the image a name/id

then, onmouseover the link, use document.images[id].src=other_image_url


Another version of this could be using an inline script like below:

<img src="URL1" onMouseOver="this.src='URL2';">

but be careful about the wild card character '\' in the URL2 coz it has to be written as '\\' so tht it is actually taken as '\'.

hope this helps.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.