(I’m retarded and posted this in the css forum so sorry if anyone has went there and seen my post already)
I put together my page in photoshop and finished it off in ImageReady (Using slicing). It of course gave me the code in css for each slice. I’ve tweaked it some adding certain images and what-not. Just starting to learn this css stuff so it’s still very new to me.
What I would like to know is why my rollover images won’t work. The images are on the page in the “normal” state but there is no change when you put the mouse over them.
If anyone can help I would appreciate it. (The page validated just fine up until I added the javascript stuff for the buttons)
Here is the code:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<HTML>
<HEAD>
<TITLE>Asianstylepage</TITLE>
<META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=iso-8859-1″>
<!– ImageReady Preload Script (linksjadebutton.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) {
linksjadebutton_01_over = newImage(“images/linksjadebutton_01-over.gif”);
jadeartwork_01_over = newImage(“images/jadeartwork_01-over.gif”);
webmasterjadebutton_01_over = newImage(“images/webmasterjadebutton_01-over.gif”);
orchidsjadebutton_01_over = newImage(“images/orchidsjadebutton_01-over.gif”);
preloadFlag = true;
}
}
// –>
</SCRIPT>
<!– ImageReady Styles (Asianstylepage.psd) –>
<STYLE TYPE=”text/css”>
<!–
DIV.Slice-01 {
position:absolute;
background: #991225;
left:0px;
top:0px;
width:180px;
height:130px;
}
DIV.Slice-02 {
position:absolute;
left:180px;
top:0px;
width:700px;
height:130px;
}
DIV.Slice-03 {
position:absolute;
background: #050505
left:0px;
top:130px;
width:700px;
height:88px;
}
DIV.Slice-04 {
position:absolute;
left:0px;
top:250px;
width:147px;
height:47px;
}
DIV.Slice-05 {
position:absolute;
left:147px;
top:220px;
width:3px;
height:801px;
}
DIV.Slice-06 {
position:absolute;
background: transparent;
left:150px;
top:220px;
width:550px;
height:801px;
}
DIV.Slice-07 {
position:absolute;
left:697px;
top:199px;
width:3px;
height:801px;
}
DIV.Slice-08 {
position:absolute;
left:0px;
top:298px;
width:147px;
height:47px;
}
DIV.Slice-09 {
position:absolute;
left:0px;
top:346px;
width:147px;
height:48px;
}
DIV.Slice-10 {
position:absolute;
left:0px;
top:394px;
width:147px;
height:48px;
}
DIV.Slice-11 {
position:absolute;
left:0px;
top:441px;
width:147px;
height:48px;
}
DIV.Slice-12 {
position:absolute;
left:0px;
top:520px;
width:147px;
height:559px;
}
–>
</STYLE>
<!– End ImageReady Styles –>
</HEAD>
<BODY STYLE=”background-color:#FCFAFA; background-image: url(largeluckycat.jpg); background-repeat: no-repeat; background-position: 60% 55em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;”>
<!– ImageReady Slices (Asianstylepage.psd) –>
<DIV CLASS=”Slice-01″>
<IMG SRC=”smallluckycat.jpg” WIDTH=106 HEIGHT=137 ALT=”Small lucky cat”>
</DIV>
<DIV CLASS=”Slice-02″>
<IMG SRC=”images/Asianstylepage_02.gif” WIDTH=520 HEIGHT=130 ALT=”Life is like a dream”>
</DIV>
<DIV CLASS=”Slice-03″>
<IMG SRC=”images/graphicillsletters.jpg” WIDTH=339 HEIGHT=87 ALT=””>
</DIV>
<DIV CLASS=”Slice-04″>Menu
</DIV>
<DIV CLASS=”Slice-05″>
<IMG SRC=”images/updownrule.gif” WIDTH=3 HEIGHT=801 ALT=”Vertical bar”>
</DIV>
<DIV CLASS=”Slice-06″>
</DIV>
<DIV CLASS=”Slice-07″>
<IMG SRC=”images/Slice_07.gif” WIDTH=3 HEIGHT=801 ALT=””>
</DIV>
<DIV CLASS=”Slice-08″>
<A HREF=”#”
onMOUSEOVER=”changeImages(‘completejadebutton_01’, ‘images/completejadebutton_01-over.gif’); return true;”
onMOUSEOUT=”changeImages(‘completejadebutton_01’, ‘images/completejadebutton_01.gif’); return true;”>
<IMG NAME=”completejadebutton_01″ SRC=”images/completejadebutton_01.gif” WIDTH=119 HEIGHT=51 BORDER=0 ALT=””></A>
</DIV>
<DIV CLASS=”Slice-09″>
<A HREF=”#”
onMOUSEOVER=”changeImages(‘webmasterjadebutton_01’, ‘images/webmasterjadebutton_01-over.gif’); return true;”
onMOUSEOUT=”changeImages(‘webmasterjadebutton_01’, ‘images/webmasterjadebutton_01.gif’); return true;”>
<IMG NAME=”webmasterjadebutton_01″ SRC=”images/webmasterjadebutton_01.gif” WIDTH=119 HEIGHT=51 BORDER=0 ALT=”” /></A>
</DIV>
<DIV CLASS=”Slice-10″>
<A HREF=”#”
onMOUSEOVER=”changeImages(‘linksjadebutton_01’, ‘images/linksjadebutton_01-over.gif’); return true;”
onMOUSEOUT=”changeImages(‘linksjadebutton_01’, ‘images/linksjadebutton_01.gif’); return true;”>
<IMG NAME=”linksjadebutton_01″ SRC=”images/linksjadebutton_01.gif” WIDTH=119 HEIGHT=51 BORDER=0 ALT=”” /></A>
</DIV>
<DIV CLASS=”Slice-11″>
<A HREF=”#”
onMOUSEOVER=”changeImages(‘orchidsjadebutton_01’, ‘images/orchidsjadebutton_01-over.gif’); return true;”
onMOUSEOUT=”changeImages(‘orchidsjadebutton_01’, ‘images/orchidsjadebutton_01.gif’); return true;”>
<IMG NAME=”orchidsjadebutton_01″ SRC=”images/orchidsjadebutton_01.gif” WIDTH=119 HEIGHT=51 BORDER=0 ALT=”” /></A>
</DIV>
<DIV CLASS=”Slice-12″>
<IMG SRC=”images/Slice_12.gif” WIDTH=147 HEIGHT=559 ALT=””>
</DIV>
<!– End ImageReady Slices –>
</BODY>
</HTML>
Rep