FishyMonkey78
11-27-2003, 03:46 PM
This script was completely generated by ImageReady, I did nothing but fill in some links when I uploaded the script.
What it does is only executes the mouseover script when the page loads and when the page refreshes. I'm not sure why, and I can't fix it, since this code is ImageReady's code.
All I'd like to know is how to fix this code so when I mouse over the button, it turns the darker red, when I mouse out it reverts.
<HTML>
<HEAD>
<TITLE>Untitled-2</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!-- ImageReady Preload Script (Untitled-2.html) -->
<SCRIPT TYPE="text/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) {
Untitled_2_01_over = newImage("http://www.angelfire.com/rpg2/metroidboard/rollover_01-over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<!-- End Preload Script -->
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
<!-- ImageReady Slices (Untitled-2.html) -->
<A HREF="#"
ONMOUSEOVER="changeImages('Untitled_2_01', 'http://www.angelfire.com/rpg2/metroidboard/rollover_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('Untitled_2_01', 'http://www.angelfire.com/rpg2/metroidboard/rollover_01.gif); return true;">
<IMG NAME="Untitled_2_01" SRC="http://www.angelfire.com/rpg2/metroidboard/rollover_01.gif" WIDTH=150 HEIGHT=150 BORDER=0 ALT=""></A>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
For anyone who can debug this, and show me how to lead me to the light in terms of ImageReady, I will be forever grateful.
Oh yea, here's the link to the mouseover page. (http://www.angelfire.com/rpg2/metroidboard/test.htm)
What it does is only executes the mouseover script when the page loads and when the page refreshes. I'm not sure why, and I can't fix it, since this code is ImageReady's code.
All I'd like to know is how to fix this code so when I mouse over the button, it turns the darker red, when I mouse out it reverts.
<HTML>
<HEAD>
<TITLE>Untitled-2</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!-- ImageReady Preload Script (Untitled-2.html) -->
<SCRIPT TYPE="text/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) {
Untitled_2_01_over = newImage("http://www.angelfire.com/rpg2/metroidboard/rollover_01-over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<!-- End Preload Script -->
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
<!-- ImageReady Slices (Untitled-2.html) -->
<A HREF="#"
ONMOUSEOVER="changeImages('Untitled_2_01', 'http://www.angelfire.com/rpg2/metroidboard/rollover_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('Untitled_2_01', 'http://www.angelfire.com/rpg2/metroidboard/rollover_01.gif); return true;">
<IMG NAME="Untitled_2_01" SRC="http://www.angelfire.com/rpg2/metroidboard/rollover_01.gif" WIDTH=150 HEIGHT=150 BORDER=0 ALT=""></A>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
For anyone who can debug this, and show me how to lead me to the light in terms of ImageReady, I will be forever grateful.
Oh yea, here's the link to the mouseover page. (http://www.angelfire.com/rpg2/metroidboard/test.htm)