By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

OnMouse Over Not Working?

100+
P: 133
Hi,

Does anyone know why this is not working?

[HTML]<table width="157" border="0" cellspacing="0" cellpadding="0" style="border:5px solid #F67301;" onMouseover="this.style='border:5px solid #FFF';" onMouseout="this.style='border:5px solid #F67301';">
[/HTML]
I am trying to change the border of a table on a mouse over.

Cheers,
Adam

-----

Please ignore i resolved this by doing:

[HTML]class="featuredBorder" onMouseOver="this.className = 'featuredBorder2';" onMouseOut="this.className = 'featuredBorder';"[/HTML]
Feb 1 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
That's one way, and with JavaScript, you'd use this.style.border="..." See this link.
Feb 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.