How about something like this?
Code:
<script type="text/javascript">
a=false
function test(b){
if(b&&!a){
document.getElementById("div1").style.backgroundColor="#00AA00"
}
if(b&&a){
document.getElementById("div1").style.backgroundColor="#AA0000"
}
}
</script>
<style>
#div1{
width:200px;
height:150px;
background-color:#00AA00;
}
</style>
<div id="div1" onmouseover="test(true)" onmouseout="test(false)"></div>
<BR><BR>
<input type="text" id="t1" onfocus="new function(){a=true}" onblur="new function(){a=false}">
The Silent One
The most dangerous thing in the world is an idea.
The most dangerous person in the world is one with an idea
Bookmarks