java script question roll over images?

Ray L

New member
<html>
<head>
<center><img src="putersrus.jpg" /></center>
<Script language="JavaScript">
<!-- hide from non JavaScriptBrowsers

Rollimage = new Array()

Rollimage[0]= new Image(121,153)
Rollimage[0].src = "news.jpg"

Rollimage[0]= new Image(121,153)
Rollimage[0].src = "news2.jpg"

function SwapOut() {
document.Rupert.src = Rollimage[1].src;
return true;
}

function SwapBack() {
document.Rupert.src = Rollimage[0].src;
return true;
}

// - stop hiding -->

</script>
</head>
<hr/>
<body>

<center> <p><h4><a href="index.htm">Homepage</a></h4></p>

<p><h4><a href="2400.htm">Paradigm Desktop 2400</a></h4></p>

<p><h4><a href="4600.htm">Paradigm desktop 4600</a></h4></p>
<hr/>

<img src="news.jpg" WIDTH="450" HEIGHT="450" BORDER="0" ALT="homepage">
<hr/>

<b>A noticeable graphics boost.</b>
With a new integrated graphics processor, MacBook Air changes the game and just about everything you do with it. The NVIDIA GeForce 9400M provides up to an amazing 4x performance boost over the original MacBook Air. Photos appear in iPhoto quickly. Transitions in Keynote are seamless. Games play more smoothly. And movie and video playback is better than ever before. No other ultraportable offers such amazing performance in such a slim design.

<b>Thin is in the details.</b>
The innovative now-you-see-it, now-you-don’t port hatch flips down to reveal (and closes to hide) all the ports you really need: a headphone jack, a USB 2.0 port, and a new Mini DisplayPort that supports DVI, dual-link DVI, and VGA video output. The Mini DisplayPort connects to the new Apple LED Cinema Display, and it supports other displays up to 30 inches.

<hr/>
</center>
</body>



is there anything wrong with this code? it doesn't work
 
Back
Top