WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 IMAGE ROLLOVERS, Markus, September 23, 2003
     Re:IMAGE ROLLOVERS , Scott, October 28, 2003
     Re:IMAGE ROLLOVERS, mikael bergkvist, September 23, 2003
         Re:IMAGE ROLLOVERS , Jackoe, September 29, 2003
         Re:IMAGE ROLLOVERS, Erik Arvidsson, September 25, 2003
             Re:IMAGE ROLLOVERS, mikael, October 6, 2003
                 Re:IMAGE ROLLOVERS, Erik Arvidsson, October 9, 2003

Subject: Re:IMAGE ROLLOVERS From: Scott Date: October 28, 2003

Markus,

This Should Work  =)

Scott

--------------------------------------------------------------------------------------------------

<html>
<head>

<script language="JavaScript">
<!--
if (document.images) {
 
img1on = new Image();
img1on.src = "TEST_01_ON.JPG";
img2on = new Image();
img2on.src = "TEST_02_ON.JPG";


img1off = new Image();
img1off.src = "TEST_01_OFF.JPG";
img2off = new Image();         
img2off.src = "TEST_02_OFF.JPG";

}

function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");        }}
   
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");        }}
//-->
</script>

</head>


<body>

<a href="TEST_01.HTML" onMouseOver="imgOn('img1')" onMouseOut="imgOff('img1')">
      <img name="img1" border="0" src="TEST_01_OFF.JPG"></a>


<a href="TEST_02.HTML" onMouseOver="imgOn('img2')" onMouseOut="imgOff('img2')">
      <img name="img2" border="0" src="TEST_02_OFF.JPG"></a>


</body>
</html>

--------------------------------------------------------------------------------------------------

From: Markus
Sent: September 23, 2003
Subject: Re:IMAGE ROLLOVERS

Being the genius that i am, i have forgotten how to do simple image rollovers using the OnMouseover thing...could u just give me an example snippet to jog my memory?

thanks in advance

mark




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX