// Show div on link rollover
<html> <head> <script> function layerSetup(id,visibility){ if(document.getElementById){ this.obj = document.getElementById(id).style; this.obj.visibility = visibility; return this.obj;} else if(document.all){ this.obj = document.all[id].style; this.obj.visibility = visibility; return this.obj;} else if(document.layers){ this.obj = document.layers[id]; this.obj.visibility = visibility; return this.obj;} } function visVisible(param){ new layerSetup(param,'visible'); } function visHidden(param){ new layerSetup(param,'hidden'); } script> </head> <body> <a href="#" onmouseover="visVisible('id1')" onmouseout="visHidden('id1')">SHOW1a> SHOW2</a> <a href="#" onmouseover="visVisible('id3')" onmouseout="visHidden('id3')">SHOW3a>
ID1</div><br> <div id="id2" style="visibility: hidden;">ID2div>
ID3</div> body> </html>
You need to create an account or log in to post comments to this site.