• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

onmouseover help!

AdvancedRobotics

Senior member
Okay, I am pretty sure there is a javascript (I've seen it before) to do this. Basically, I don't want to have to keep on typing: onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#333333'"

I'm pretty sure there is a javascript that goes something like this:

<script language="javascript">
function = on()
{
elem.style.backgroundColor="#ffffff"
}

function = off()
{
elem.style.backgroundColor="#333333"
}
</script>

then you can just type: onmouseover="on()" onmouseout="off()"

This would save me a lot of time... So am I correct that you can do something llike this? And is this javascript correct?

Thanks!
 
Back
Top