simple javascript.....break this simple code down for me
onMouseOut="RW_swapImgRestore()" onMouseOver="RW_swapImage('Menu1','','/gfx/main/MenuOn.gif',1)">
explain to me what that is,
"RW_swapImgRestore()"
what this is
'Menu1','','/gfx/main/MenuOn.gif',1
im guessing its jus location of the pic...but whats all
,'',' <-----that for
and that bout it....thankz in advanced
Bob posted this at 13:11 — 9th January 2001.
They have: 117 posts
Joined: Feb 2000
Shadowz,
"RW_swapImgRestore()" is a javascript function that will restore the original image when the mouse is moved off the image.
"RW_swapImage('Menu1','','/gfx/main/MenuOn.gif',1)" is a javascript function that will change the image when the mouse is positioned over it. Everything inside the parens are parameter being passed to the RW_swapImage function, including the name and location of the image Without seeing the functions themselves, I'm not totally sure what the other parameters are.
Hope this helps.
Bob
shadowz ill posted this at 20:11 — 9th January 2001.
They have: 17 posts
Joined: Dec 2000
THANKS BOB THAT DOES HELP.....
BUT JUS GIMME AN EXAMPLE SO IM TOTALING SURE WHUT IM DOING.......
SAY MY IMAGE WUZ NOT ON A PAID SERVER, BUT INSTEAD GEOCITIES
AND THE IMAGE NAME WUZ
http://WWW.GEOCITIES.COM/MEMBERNAME/on.gif
i know where i insert that, but im unsure of the perimeters and such...
can u gimme an example wit that image file name...thank you
Bob posted this at 23:22 — 9th January 2001.
They have: 117 posts
Joined: Feb 2000
Shadowz,
I believe the following would work as a simple example. It does not use the parameters since it is simply changing one picture to another and back using the mouseovers. The use of parameters all depends on exactly what you want to do and how you want to do it. For a more complicated example using a parameter to control multiple pictures (and sounds) you can check out one of the pages on my site at
http://members.aol.com/jproscenium/recent.html
<script>
function changePic(){
document.image1.src="http://WWW.GEOCITIES.COM/MEMBERNAME/new.gif";
}
function revertPic(){
document.image1.src="http://WWW.GEOCITIES.COM/MEMBERNAME/on.gif";
}
</script>
Bob
shadowz ill posted this at 00:09 — 10th January 2001.
They have: 17 posts
Joined: Dec 2000
thanks alot bob...much much appreciated!!!!
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.