javascript - How should i hightlight any link on mouseover in my page? -


I want to highlight all the links in my website when events occur on them on the mouse.

I do not want to type the onmouseover attribute in every link and there should be some place where I can declare this highlights effect globally.

> How should I do this?

Use CSS You should use external files, if you make it the same for the whole site Want to

  a: hover {background-color: rgb (255, 255, 0); }  

You can use class or anything else such as JS but I think the above examples would be fine if you want to make it for all links.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -