Welcome! Log In Create A New Profile

Advanced

Rollover

Posted by 71442626 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Rollover
October 11, 2007 12:44AM
Hi

Somebody,...anybody please HELP I am really struggling with the rollover its like I go totally blank everytime i try to do that,I'm totally clueless please assist. I've been to so many sites for assistance unfortunately I still dont get it right.

I want to do a mouse rollover with two images, just cant figure out how.

Got to go, have a meeting at 7 am really tired.

Any assistance will be much appreciated.

Regards
Nadine
TvD
Re: Rollover
October 11, 2007 04:07PM
It can be very complicated or very simple - the easiest one I know is this:

Look for imageswap.zip in the downloads folder on your CD or download the html and two images here:
http://osprey.unisa.ac.za/toby/vdyktj/imageswap.zip

<html>
<head>
<title>Random Images</title>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
image1 = new Image();
image1.src = "red.gif";
image2 = new Image();
image2.src = "yellow.gif";
// End -->
</script>

</head>

<body>
<h1>Stroke the square</h1>
<a href="imageswap.htm"
onmouseover="image2.src='yellow.gif';"
onmouseout="image2.src='red.gif';">
<img name="image2" src="red.gif" border=0></a>

</body>
</html>
Sorry, only registered users may post in this forum.

Click here to login