Image Flip 002
if(document.images) {
baseball = new Image
football = new Image
baseball.src = "images/baseball.gif"
football.src = "images/football.gif"
}
else{
baseball = ""
football = ""
document.ball = ""
}
A:hover {color: #FF0000}
Back
Image Flip 002
This the same as Image Rotate 001, except the script is different.
Script Instructions for <HEAD></HEAD> tags.
<!-- Paste between the <HEAD></HEAD> tags. -->
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
if(document.images) {
baseball = new Image
football = new Image
baseball.src = "images/baseball.gif"
football.src = "images/football.gif"
}
else{
baseball = ""
football = ""
document.ball = ""
}
</SCRIPT>
Script instructions for the body of the HTML Document.
<!-- Paste in the body of the HTML Document -->
<A HREF="bye!.htm" onMouseover="document.ball.src=baseball.src"
onMouseout="document.ball.src=football.src"><img
src="images/football.gif"
width="150" height="145"
border="0" name="ball" alt="ball"></A>
One of the
biggest mistakes people make when writing this script us they fail to
utilize the "name" tag in the image request, the name must also appear in
the mouseover request. Note--ball.
Paste script between the <HEAD></HEAD> tags.
if(document.images) {
baseball = new Image
football = new Image
baseball.src = "images/baseball.gif"
football.src = "images/football.gif"
}
else{
baseball = ""
football = ""
document.ball = ""
}
Paste script where needed in the body of the HTML Document.
© Copyright 2003
Ultimatephp.com.com
Wyszukiwarka
Podobne podstrony:
Image Flip 005 scriptimage flip 003Image Flip 005image flip 004imagefunction pdf execute imageG28 Mirror Imagejava awt image IndexColorModeljava awt image ImageConsumerimageimagewięcej podobnych podstron