fmx
02-26-2004, 04:40 PM
ive looked at this code for so long i want to kick a hole in the monitor and pinch a loaf in it.
help... the onMouseOver will not work.
<html>
<head>
<title>table</title>
<script language="javaScript">
<!--
if (document.images) {
proOn = new Image(); proOn.src="profileOver.jpg";
proOff = new Image(); proOff.src="me.jpg";
}
function rollOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "On.src");
}
}
function rollOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "Off.src");
}
}
//-->
</script>
</head>
<body bgcolor="#ffffff" link="#ffffff" alink="#FFFFFF" vlink="#FFFFFF"><center><img src="logo.jpg" alt="dThom.com">
<table bgcolor="#FFFFFF" height="500" width="400" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="content.jpg"></td>
</tr>
<tr bgcolor="ffffff">
<td>
<table cellpadding="0" cellspacing="1">
<tr>
<td><a href="enter.html" onMouseOver="rollOn('pro')" onMouseOut="rollOff('pro')"><img src="me.jpg"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</body>
</html>
help... the onMouseOver will not work.
<html>
<head>
<title>table</title>
<script language="javaScript">
<!--
if (document.images) {
proOn = new Image(); proOn.src="profileOver.jpg";
proOff = new Image(); proOff.src="me.jpg";
}
function rollOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "On.src");
}
}
function rollOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "Off.src");
}
}
//-->
</script>
</head>
<body bgcolor="#ffffff" link="#ffffff" alink="#FFFFFF" vlink="#FFFFFF"><center><img src="logo.jpg" alt="dThom.com">
<table bgcolor="#FFFFFF" height="500" width="400" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="content.jpg"></td>
</tr>
<tr bgcolor="ffffff">
<td>
<table cellpadding="0" cellspacing="1">
<tr>
<td><a href="enter.html" onMouseOver="rollOn('pro')" onMouseOut="rollOff('pro')"><img src="me.jpg"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</body>
</html>