• 0

Help with code


Question

I need some help with the coding of the tag below. The problem is - onMouseOver I want the background of the cell to be an image instead of a solid colour.

onMouseOver="style.backgroundColor='#A4B3DC'"

onClick='openLink("index.htm,"_self")' onMouseOut="style.backgroundColor='#EFFEFF'" align=right width=111>

HOME

Any help is much appreciated :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I can't tell you how long I tried to figure that out (ok, I can, about 2 hours.) I tried so many different variations, nothing seemed to work. Thanks for the answer, I had given up :)

Link to comment
Share on other sites

  • 0

i also have another way of doing it -

<pre>

<td 

onMouseOver="td1.style.background='url('image2.gif')';" 

onClick='openLink("index.htm,"_self")' 

onMouseOut="td1.style.background='url('image1.gif')';" 

align=right width=111 id="td1" background="image1.gif">



<div class=menuItem> <font class="text">HOME</font> </div> 

</td> 

</pre>

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.