Hello!
I’ve picked up this code from the book:
[code]
<html>
<head>
<script language = “javascript”>
[COLOR=limegreen]if (document.images)[/COLOR]
{
image1 = new Image
image2 = new Image
image1.src = “my secondimage.gif”
image2.src = “myfirstimage.gif”
}
else
{
image1 =””
image2 =””
}
</script>
</head>
</html>
The text that is highlighted I don’t understand quite well.
That means if document.images are true, equals to zero, or equals to
one? document.images I don’t see that images was declared anywhere in the code.
This is something related to rollover. There is some code that goes in the body text which I understand pretty well.
Thanks.