aco Veteran Posted October 21, 2001 Veteran Share Posted October 21, 2001 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 https://www.neowin.net/forum/topic/2791-help-with-code/ Share on other sites More sharing options...
0 aco Veteran Posted October 21, 2001 Author Veteran Share Posted October 21, 2001 I have found it. For anyone who may be interested here is the code: text link And the website - http://developer.irt.org/script/script.htm :) Link to comment https://www.neowin.net/forum/topic/2791-help-with-code/#findComment-18699 Share on other sites More sharing options...
0 Captain Phatty Posted October 21, 2001 Share Posted October 21, 2001 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 https://www.neowin.net/forum/topic/2791-help-with-code/#findComment-18814 Share on other sites More sharing options...
0 Gooey Posted October 21, 2001 Share Posted October 21, 2001 Hmm... Personally I wwould have given the TD a class and just changed that in the mouse over. Much more flexible and it keeps all your styles in a single file. Ho well... ;) Link to comment https://www.neowin.net/forum/topic/2791-help-with-code/#findComment-18819 Share on other sites More sharing options...
0 maxprogram Posted October 21, 2001 Share Posted October 21, 2001 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 https://www.neowin.net/forum/topic/2791-help-with-code/#findComment-18957 Share on other sites More sharing options...
Question
aco Veteran
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>
Any help is much appreciated :)
Link to comment
https://www.neowin.net/forum/topic/2791-help-with-code/Share on other sites
4 answers to this question
Recommended Posts