syntax with multiple mouseovers in a table cell

P

Priti

<td align="center" bgcolor="#6699cc" onMouseOver="white4.bgColor='#ffffff'"
onMouseOver="this.bgColor='#993300'" onMouseOut="this.bgColor='#6699cc'"
onMouseOut="white4.bgColor='#6699cc'">

I am having a problem changing the color of 2 differnt table cells when
mouseing over of 1cell. The issue is I want to change the bgcolor of my cell
that I am mouseing over as well as an adjacent cell, but not the whole row.
The script changes only one, whichever the 1st one is and does not execute
the 2nd mouseover, it is probably a syntax problem but I was wondering if
anyone had any ideas


Thanks

Priti
 
P

Priti

Thanks Mike,
Will this work for multiple calls, say a mouseover I want to change the cell
I am in and 2 others, one to the left and 1 to the right?

Priti
 
P

Priti

Sorry Mike,

I did not read the 2nd posting, this works great, not sure why my one
doesn't work but this will do nicely, now if I could only get rid of this
one extra pixel of white I have that a div class is creating I could go to
bed.

Thanks Much

Priti
 
P

Priti

I got it solved at 2:30 AM not happy about the amount of code its taking to
do the menu but the design has different border width's around it
everywhere and within a div tag for some reason a simple
<td bgcolor="#ffffff"><img src="images/aspacer.gif" width="1" height="1"
alt=""></td> was always 3 pixels high not one and it would not change no
matter what within the tag, my solution was to make a 3 pixel by one
background image with the upper and lower pixel being the menu color
background and the middle was white, works fine, but its extra work.


Thanks Mike

Priti
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top