PDA

View Full Version : HTML problems


Mythril Gear
07-11-2001, 08:13 AM
Here's a big, fat HTML, and I don't understand why it's not working.
<HTML>
<HEAD>
<TITLE>newlogo</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis">
<!-- ImageReady Preload Script (newlogo.psd) -->
<SCRIPT LANGUAGE="JavaScript">
<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src =

changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
newlogo_01_over =

newImage("http://www3.sympatico.ca/jeff.rishea/newlogo_01-over.jpg");
newlogo_01_down =

newImage("http://www3.sympatico.ca/jeff.rishea/newlogo_01-down.jpg");
preloadFlag = true;
}
}

// -->
</SCRIPT>
<!-- End Preload Script -->
</HEAD>
<BODY BGCOLOR=#FFFFFF ONLOAD="preloadImages();">
<!-- ImageReady Slices (newlogo.psd) -->
<A HREF="#"
ONMOUSEOVER="changeImages('newlogo_01',

'http://www3.sympatico.ca/jeff.rishea/newlogo_01-over.jpg'); return true;"
ONMOUSEOUT="changeImages('newlogo_01',

'http://www3.sympatico.ca/jeff.rishea/newlogo_01.jpg'); return true;"
ONMOUSEDOWN="changeImages('newlogo_01',

'http://www3.sympatico.ca/jeff.rishea/newlogo_01-down.jpg'); return true;"
ONMOUSEUP="changeImages('newlogo_01',

'http://www3.sympatico.ca/jeff.rishea/newlogo_01-over.jpg'); return true;">
<IMG NAME="newlogo_01" SRC="http://www3.sympatico.ca/jeff.rishea/newlogo_01.jpg"

WIDTH=320 HEIGHT=320 BORDER=0></A>
<!-- End ImageReady Slices -->
</BODY>
</HTML>