I have something like below, normally when my mouse is over the button, it will change from less visible to visible, if mouse move away, it turn back to less visible.
But now i want to make it when i click the button, it will keep the status as visable even i move the mouse out from the button. Please help.
Thanks.
[CODE=javascript]<SCRIPT>
function makevisible(cur ,which){
if (which==0)
cur.filters.alp ha.opacity=90
else
cur.filters.alp ha.opacity=40
if (which==2)
cur.filters.alp ha.opacity=0
}
</SCRIPT>
[/CODE]
[HTML]<button style="font-size: 9pt; color: gray; FILTER: alpha(opacity=4 0); background-color: gainsboro; border: 3px double gainsboro"
onmouseover="th is.style.color= 'black'; makevisible(thi s,0)" onmouseout="thi s.style.color=' gray'; makevisible(thi s,1)" onclick="listin fo()">List</button><br><br>[/HTML]
But now i want to make it when i click the button, it will keep the status as visable even i move the mouse out from the button. Please help.
Thanks.
[CODE=javascript]<SCRIPT>
function makevisible(cur ,which){
if (which==0)
cur.filters.alp ha.opacity=90
else
cur.filters.alp ha.opacity=40
if (which==2)
cur.filters.alp ha.opacity=0
}
</SCRIPT>
[/CODE]
[HTML]<button style="font-size: 9pt; color: gray; FILTER: alpha(opacity=4 0); background-color: gainsboro; border: 3px double gainsboro"
onmouseover="th is.style.color= 'black'; makevisible(thi s,0)" onmouseout="thi s.style.color=' gray'; makevisible(thi s,1)" onclick="listin fo()">List</button><br><br>[/HTML]
Comment