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 Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/ 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? Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043568 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.... Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043571 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? Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043574 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;'" Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043575 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 Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043577 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! Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043579 Share on other sites More sharing options...
robert_gsfame Posted April 17, 2010 Author Share Posted April 17, 2010 yeah!!! semicolon!! thx! Link to comment https://forums.phpfreaks.com/topic/198825-thisstyleborder-not-working/#findComment-1043581 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.