DaNuGai Posted June 9, 2006 Share Posted June 9, 2006 I want to know why this code doesn't work in FireFox but works perfectly in IE.<A HREF="news.html"><TD CLASS="quicklinks" ONMOUSEOVER="this.className='mouseover';return true" ONMOUSEOUT="this.className='mouseout';return true">NEWS</TD></A>Is there a way to get this to work in firefox and IE. All I am trying to do is make the whole TD Hyperlink. Any help will be greatly appreciated. Link to comment Share on other sites More sharing options...
scott100 Posted June 9, 2006 Share Posted June 9, 2006 All I am trying to do is make the whole TD Hyperlink.Here is two ways that you could do this, give the anchor tag 100% width and height plus display block or put an onclick event onto the td.<td><a style="width:100%;height:100%;display:block" href="http://www.google.com">Google</a></td><td onclick="window.location='http://www.google.com'">Google</td> Link to comment Share on other sites More sharing options...
DaNuGai Posted June 9, 2006 Author Share Posted June 9, 2006 <td onclick="window.location='http://www.google.com'">Google</td><{POST_SNAPBACK}> I used your second suggestion. It works, thank you very much. The only thing is in my CSS. I can get this to work with FireFox..mouseover { cursor: hand}Again, thank you very much for your help Link to comment Share on other sites More sharing options...
aspnetguy Posted June 9, 2006 Share Posted June 9, 2006 cursor:hand only works in IEuse cursor:pointer instead. It will look the same except it will work in every browser Link to comment Share on other sites More sharing options...
DaNuGai Posted June 9, 2006 Author Share Posted June 9, 2006 Thank you Very Much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now