WhiteWolfe
06-15-2004, 02:32 AM
Greetings all,
Being new to js, I have a question about layers/div stuff.
The site for the company I"m working for is set up pretty easily.
But what I'm wanting to do is create layers or something for a mouseover effect for images I have.
Following is the code I'm using now:
<td align=center valign=middle bgcolor="#808080"><img src="{PhotoRef}"
name=mainpic border=2 width=360>
<td>
<table cellpadding=0 cellspacing=0 border=1 width=100%>
<tr>
<td bgcolor="#808080"><img src="{Photo2}"
onMouseOver="document.mainpic.src='{Photo2}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo3}"
onMouseOver="document.mainpic.src='{Photo3}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo4}"
onMouseOver="document.mainpic.src='{Photo4}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
</tr>
<tr>
<td bgcolor="#808080"><img src="{Photo5}"
onMouseOver="document.mainpic.src='{Photo5}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo6}"
onMouseOver="document.mainpic.src='{Photo6}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo7}"
onMouseOver="document.mainpic.src='{Photo7}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
</tr>
<tr>
<td bgcolor="#808080"><img src="{Photo8}"
onMouseOver="document.mainpic.src='{Photo8}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo9}"
onMouseOver="document.mainpic.src='{Photo9}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo10}"
onMouseOver="document.mainpic.src='{Photo10}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
</tr>
</table>
What I'm wanting to do, is replace the first picture (PhotoRef) with 5 seperate pictures. 4 with the fifth over it.
I realize that its hard to see what I'm talking about so here is a link.
http://j.b5z.net/i/u/2022067/h/ewiggins/Detail-186.html
The mainpic at the moment is 1 picture fixed up in photoshop. My boss wants me to make it 5, with the border as a seperate image.
Now, I think I have away of doing that, tho not sure yet, but the issue I'm having is when someone points to one of the other images, we want the original 'mainpic' replaced with what ever picture the mouse is over.
I'm wondering if I'm confusing anyone else besides myself at the moment....
Anyhow.
I've heard layers only works for NS, where as DIV's for IE.
Anyone know of an easy (easier then this question maybe) way of accomplishing what I"m looking for.
Thanks in advance.
WW.
Being new to js, I have a question about layers/div stuff.
The site for the company I"m working for is set up pretty easily.
But what I'm wanting to do is create layers or something for a mouseover effect for images I have.
Following is the code I'm using now:
<td align=center valign=middle bgcolor="#808080"><img src="{PhotoRef}"
name=mainpic border=2 width=360>
<td>
<table cellpadding=0 cellspacing=0 border=1 width=100%>
<tr>
<td bgcolor="#808080"><img src="{Photo2}"
onMouseOver="document.mainpic.src='{Photo2}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo3}"
onMouseOver="document.mainpic.src='{Photo3}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo4}"
onMouseOver="document.mainpic.src='{Photo4}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
</tr>
<tr>
<td bgcolor="#808080"><img src="{Photo5}"
onMouseOver="document.mainpic.src='{Photo5}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo6}"
onMouseOver="document.mainpic.src='{Photo6}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo7}"
onMouseOver="document.mainpic.src='{Photo7}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
</tr>
<tr>
<td bgcolor="#808080"><img src="{Photo8}"
onMouseOver="document.mainpic.src='{Photo8}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo9}"
onMouseOver="document.mainpic.src='{Photo9}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
<td bgcolor="#808080"><img src="{Photo10}"
onMouseOver="document.mainpic.src='{Photo10}'" width=125 border=2
onMouseOut="document.mainpic.src='{PhotoRef}'">
</tr>
</table>
What I'm wanting to do, is replace the first picture (PhotoRef) with 5 seperate pictures. 4 with the fifth over it.
I realize that its hard to see what I'm talking about so here is a link.
http://j.b5z.net/i/u/2022067/h/ewiggins/Detail-186.html
The mainpic at the moment is 1 picture fixed up in photoshop. My boss wants me to make it 5, with the border as a seperate image.
Now, I think I have away of doing that, tho not sure yet, but the issue I'm having is when someone points to one of the other images, we want the original 'mainpic' replaced with what ever picture the mouse is over.
I'm wondering if I'm confusing anyone else besides myself at the moment....
Anyhow.
I've heard layers only works for NS, where as DIV's for IE.
Anyone know of an easy (easier then this question maybe) way of accomplishing what I"m looking for.
Thanks in advance.
WW.