![]() | It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!) |

|
|
|
|

<a href="#" onmouseover="this.style.background='#0f0';">Link</a>

dflynn wrote:Something like this:
onrollover yadayadayada style="background-color: #FFFF66"
- Code: Select all
<a href="#" onmouseover="this.style.background='#0f0';">Link</a>
<script type="text/javascript">
window.onload=function()
{
var rangAs=document.getElementsByTagName('a');
for(var rangLoop=0;rangLoop<rangAs.length;rangLoop++)
{
rangAs[rangLoop].onmouseover=function()
{
this.style.background='#0f0'; //background when hovered
}
rangAs[rangLoop].onmouseout=function()
{
this.style.background='#fff'; //Background when not on hover
}
}
}
</script>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>

Users browsing this forum: No registered users and 0 guests