Guest_imported
New member
- Jan 1, 1970
- 0
To the respective Javascript experts,
I am trying to get a hover button to create a pop-up window and I am able to do so. I desperately need assistance!
Here what I have so far for the hover button code (which works fine) - It's creating the window that's impossible. Any advice would be greatly appreciated
<html>
<head>
<script language="javascript">
<!--
if (document.images)
{
pic1on= new Image();
pic1on.src="graphics/infoON.gif";
pic1off= new Image();
pic1off.src="graphics/infoOFF.gif";
}
function lightup(imgName)
{
if (document.images)
{
imgOn=eval(imgName + "on.src"
;
document
.src= imgOn;
}
}
function turnoff(imgName)
{
if (document.images)
{
imgOff=eval(imgName + "off.src"
;
document
.src= imgOff;
}
}
//-->
</SCRIPT>
</HEAD>
<body>
<A HREF="survey.html" target="title" onMouseover="lightup('pic1')" onMouseout="turnoff('pic1')"><IMG SRC="../graphics/infoOFF.gif" name="pic1" border="0" width="46" height="44"></A>
</body>
</html>
I am trying to get a hover button to create a pop-up window and I am able to do so. I desperately need assistance!
Here what I have so far for the hover button code (which works fine) - It's creating the window that's impossible. Any advice would be greatly appreciated
<html>
<head>
<script language="javascript">
<!--
if (document.images)
{
pic1on= new Image();
pic1on.src="graphics/infoON.gif";
pic1off= new Image();
pic1off.src="graphics/infoOFF.gif";
}
function lightup(imgName)
{
if (document.images)
{
imgOn=eval(imgName + "on.src"
document
}
}
function turnoff(imgName)
{
if (document.images)
{
imgOff=eval(imgName + "off.src"
document
}
}
//-->
</SCRIPT>
</HEAD>
<body>
<A HREF="survey.html" target="title" onMouseover="lightup('pic1')" onMouseout="turnoff('pic1')"><IMG SRC="../graphics/infoOFF.gif" name="pic1" border="0" width="46" height="44"></A>
</body>
</html>