unsider Posted July 5, 2008 Share Posted July 5, 2008 I'm sure some of you have heard of newgrounds, well they have a cool little hover effect. http://www.newgrounds.com/ Navigate down to Site News, and Featured Movies, and hover over a link to one of the articles. Notice the effect that takes place as you are doing so. How is this done? I'm assuming it just creates an aboslute background box that just changes colors on rollover, but I'm not certain. If you don't feel like explaining, what is it called, and how can I find out more/how to do it? Thanks. Any speculation is appreciated as well. Quote Link to comment https://forums.phpfreaks.com/topic/113331-solved-how-to-do-this-effect/ Share on other sites More sharing options...
xtopolis Posted July 5, 2008 Share Posted July 5, 2008 They are using CSS and the pseudo class ":hover". You can look at their code to find an example......... simple you add css to elements, giving them pseudo classes. td { background-color: red; } td:hover { background-color: blue; } <td>Background color changes on mouseover.</td> Note, this example above probably won't work in IE. IE needs <a> tags in order to support the pseudo :hover I believe. Quote Link to comment https://forums.phpfreaks.com/topic/113331-solved-how-to-do-this-effect/#findComment-582536 Share on other sites More sharing options...
unsider Posted July 5, 2008 Author Share Posted July 5, 2008 I was close anyway, Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/113331-solved-how-to-do-this-effect/#findComment-582551 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.