# Javascript action

**URL:** https://forum.kirupa.com/t/javascript-action/255942
**Category:** web dev
**Created:** [March 28, 2008, 1:52pm UTC](https://forum.kirupa.com/t/javascript-action/255942 "2008-03-28T13:52:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![irishcash33](https://avatars.discourse-cdn.com/v4/letter/i/958977/32.png) [@irishcash33](https://forum.kirupa.com/u/irishcash33)
#### Post date: [March 28, 2008, 1:52pm UTC](https://forum.kirupa.com/t/javascript-action/255942/1 "2008-03-28T13:52:12Z")

</div>

Hi,  
Right now I have the script so my tabs, when clicked will expand vertically and reveal hyperlinks. I would like for it to be on rollovers instead of on click. I can’t figure it out. It is probably simple for someone who is awesome at javascript!! Please help thanks

```
                                        &lt;script type="text/javascript"&gt;

```

function changeOpenMenu(id){  
var all\_uls = new Array();  
all\_uls[0]=‘ul\_one’;  
all\_uls[1]=‘ul\_two’;  
all\_uls[2]=‘ul\_three’;  
all\_uls[3]=‘ul\_four’;  
for(i=0;i\<all\_uls.length;i++){  
document.getElementById(all\_uls\*).style.display = ‘none’;  
}  
the\_ul = document.getElementById(id);  
the\_ul.style.display = ‘block’;  
clearButtons();  
}  
function clearButtons() {  
if (!document.getElementsByTagName) return;  
var anchors = document.getElementsByTagName(“a”);  
for (var i=0; i\<anchors.length; i++) {  
var anchor = anchors\*;  
anchor.blur();  
}  
}  
\</script\>
