robert_gsfame Posted April 17, 2010 Share Posted April 17, 2010 i have this code attached but no effect appeared when mouseover it echo "<tr class='style1' onmouseover=this.style.border='12px solid #CCCCCC;'> anything wrong with the code?? thx Quote Link to comment Share on other sites More sharing options...
F1Fan Posted April 17, 2010 Share Posted April 17, 2010 What web browser are you testing with? I don't think IE supports mouse over events on TR elements. Also, it would be best practices to wrap these in quotes: echo "<tr class='style1' onmouseover=\"this.style.border='12px solid #CCCCCC;'\">"; I assume you didn't forget the double quote and semi-colon at the end of that line? Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted April 17, 2010 Author Share Posted April 17, 2010 It's not working in FF.... Quote Link to comment Share on other sites More sharing options...
F1Fan Posted April 17, 2010 Share Posted April 17, 2010 If you view the source of the page in FF after it loads, how does it look? Any funky characters or anything? Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted April 17, 2010 Author Share Posted April 17, 2010 this what i found onmouseover="this.style.border='12px solid #CCCCCC;'" Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 17, 2010 Share Posted April 17, 2010 Two things: 1. The semicolon cannot be inside the parameter value 2. The border property does not apply to a TR, only to a TABLE or TD Quote Link to comment Share on other sites More sharing options...
F1Fan Posted April 17, 2010 Share Posted April 17, 2010 OMG, clearly I shouldn't do this past a certain hour! Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted April 17, 2010 Author Share Posted April 17, 2010 yeah!!! semicolon!! thx! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.