Been looking throught the FAQs and String Search but can't nail this one down. Could someone take a brief look and see if you can tell where the problem lies:
<HTML>
<HEAD>
<title>Main Data Menu</title>
<Script Language="JavaScript">
<!-- Hide Script from non-Javascript browsers
function displayMsg(message) {
window.status=message
}
function preloadImages() {
if (document.images) {
var imgFiles = preloadImages.arguments;
var preloadArray = new Array();
for (var i=0; 1 < imgFiles.length; i++) {
preloadArray=new image;
preloadArray.src=imgFiles;
}
}
}
function swap(id, newSrc) {
var theImage=locateImage(id);
if (theImage) {
theImage.src=newSrc;
}
}
function locateImage(name) {
var theImage=false;
if (document.images) {
theImage=document.images[name];
}
if (theImage) {
return theImage;
}
return(false);
}
<//-->
</Script>
</HEAD>
<body bgProperties="fixed" background="images/marble.jpg">
<Script Language = "JavaScript">
<!--
preloadImages('frogdotb.gif', 'frogdance.gif');
//-->
</script>
<form id="Form1" method="post" runat="server">
<TABLE....
NOTE: this is the image object:
<img name="frog" src="images/frogdotb.gif" border="0" onMouseOut="swap('frogdotb.gif','frogdance.gif')" onMouseOver="swap('frogbotd.gif','frogdance.gif')">
</Body>
</Html>
<HTML>
<HEAD>
<title>Main Data Menu</title>
<Script Language="JavaScript">
<!-- Hide Script from non-Javascript browsers
function displayMsg(message) {
window.status=message
}
function preloadImages() {
if (document.images) {
var imgFiles = preloadImages.arguments;
var preloadArray = new Array();
for (var i=0; 1 < imgFiles.length; i++) {
preloadArray=new image;
preloadArray.src=imgFiles;
}
}
}
function swap(id, newSrc) {
var theImage=locateImage(id);
if (theImage) {
theImage.src=newSrc;
}
}
function locateImage(name) {
var theImage=false;
if (document.images) {
theImage=document.images[name];
}
if (theImage) {
return theImage;
}
return(false);
}
<//-->
</Script>
</HEAD>
<body bgProperties="fixed" background="images/marble.jpg">
<Script Language = "JavaScript">
<!--
preloadImages('frogdotb.gif', 'frogdance.gif');
//-->
</script>
<form id="Form1" method="post" runat="server">
<TABLE....
NOTE: this is the image object:
<img name="frog" src="images/frogdotb.gif" border="0" onMouseOut="swap('frogdotb.gif','frogdance.gif')" onMouseOver="swap('frogbotd.gif','frogdance.gif')">
</Body>
</Html>