View Full Version : I need help with a java script... its has to do with image rollovers
I need help with an image rollover script on this page.. http://2got.it/justinl
the script triggers wrongly or somethings wrong.. can you help me?
Borgtex
03-18-2003, 11:47 PM
The link doesn't works
<SCRIPT LANGUAGE="JavaScript"><!-- hide from none JavaScript Browsers
Image1= new Image(100,20)
Image1.src ="http://www.angelfire.com/space/justinl/images/Blue_Leave.gif"
Image2= new Image(100,20)
Image2.src ="http://www.angelfire.com/space/justinl/images/Red_Leave.gif"
function SwapOut() {
document.imageflip.src = Image2.src; return true;
}
function SwapBack() {
document.imageflip.src = Image1.src; return true;
}
// - stop hiding -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from none JavaScript Browsers
Image3= new Image(100,20)
Image3.src ="http://www.angelfire.com/space/justinl/images/Blue_Enter.gif"
Image4= new Image(100,20)
Image4.src ="http://www.angelfire.com/space/justinl/images/red_Enter.gif"
function SwapOut() {
document.image3.src = Image4.src; return true;
}
function SwapBack() {
document.image3.src = Image3.src; return true;
}
// - stop hiding --></script>
*~*~*~*~*~*~*~*~*~
<bottom><center><Left><A HREF="index.html" onMouseOver="SwapOut()" onMouseOut="SwapBack()">
<IMG NAME="image3" SRC="http://www.angelfire.com/space/justinl/images/Blue_Enter.gif" WIDTH=100 HEIGHT=20 BORDER=0></A> </left>
<img src=http://www.angelfire.com/space/justinl/images/OR_Pic.jpg>
<right><A HREF="Http://www.Wack0.com"
onMouseOver="SwapOut()" onMouseOut="SwapBack()">
<IMG NAME="imageflip" SRC="http://www.angelfire.com/space/justinl/images/Blue_Leave.gif" WIDTH=100 HEIGHT=20 BORDER=0></A>
</right></center></bottom>
glenngv
03-19-2003, 07:28 AM
just use this script to make very easy image rollovers
http://codingforums.com/showthread.php?s=&threadid=11673
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.