Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:08
Javascript - Netscape
Poster: Ken
Dated: Wednesday April 5 2006 - 12:06:56 BST
I am having trouble with a Javascript (drop down filter menu) showing up in the Netscape browsers. Can some one here help?
Here is the Url to the website: http://www.k-e-s-portraits.de
Regards
Ken
Here is the Script that I have copyed out of my Website:
<ilayer id="dropmenu01" height=35px>
<layer id="dropmenu02" visibility="show">
<span id="iewrap" style="position: relative; height: 30px">
<span id="iewrap2" onClick="dropit2();event.cancelBubble=true;return false" style="position: absolute; left: 0px; top: 7px; width: 140px" align="left">
<font face="Arial"><b>
<a style="text-decoration: none" href="alternate.htm">Gallery</a></b></font>
</span></span>
</layer>
</ilayer>
<script language="JavaScript1.2">
<!--
var enableeffect=true
var selection=new Array()
selection[0]='<font face="Arial"><a href="http://www.k-e-s-portraits.de/english/galerie.htm">Info.</a><br>'
selection[1]='<a href="http://www.k-e-s-portraits.de/english/page-1.htm">John Lennon</a><br>'
selection[2]='<a href="http://www.k-e-s-portraits.de/english/page-2.htm">Heidi Klum</a><br>'
selection[3]='<a href="http://www.k-e-s-portraits.de/english/page-3.htm">Medieval nr.1</a><br>'
selection[4]='<a href="http://www.k-e-s-portraits.de/english/page-4.htm">Medieval nr.2</a><br>'
selection[5]='<a href="http://www.k-e-s-portraits.de/english/page-5.htm">Medieval nr.3</a><br>'
selection[6]='<a href="http://www.k-e-s-portraits.de/english/page-6.htm">Medieval nr.4</a><br>'
selection[7]='<a href="http://www.k-e-s-portraits.de/english/page-9.htm">Medieval nr.5</a><br>'
selection[8]='<a href="http://www.k-e-s-portraits.de/english/page-7a.htm">Commission</a><br>'
selection[9]='<a href="http://www.k-e-s-portraits.de/english/page-8.htm">Arabian eyes</a><br>'
selection[10]='<a href="http://www.k-e-s-portraits.de/english/page-10.htm">Commission</a><br>'
if (document.layers)
document.dropmenu01.document.dropmenu02.visibility='show'
function dropit2(){
if (document.all){
dropmenu03.style.left=document.body.scrollLeft+event.clientX-event.offsetX
dropmenu03.style.top=document.body.scrollTop+event.clientY-event.offsetY+18
if (dropmenu03.style.visibility=="hidden"){
if (enableeffect)
dropmenu03.filters.revealTrans.apply()
dropmenu03.style.visibility="visible"
if (enableeffect)
dropmenu03.filters.revealTrans.play()
}
else{
hidemenu()
}
}
}
function dropit(e){
if (document.dropmenu03.visibility=="hide")
document.dropmenu03.visibility="show"
else
document.dropmenu03.visibility="hide"
document.dropmenu03.left=e.pageX-e.layerX
document.dropmenu03.top=e.pageY-e.layerY+19
return false
}
function hidemenu(){
if (enableeffect)
dropmenu03.filters.revealTrans.stop()
dropmenu03.style.visibility="hidden"
}
function hidemenu2(){
document.dropmenu03.visibility="hide"
}
if (document.layers){
document.dropmenu01.document.dropmenu02.captureEvents(Event.CLICK)
document.dropmenu01.document.dropmenu02.onclick=dropit
}
else if (document.all)
document.body.onclick=hidemenu
// -->
</script>
<div id="dropmenu03" style="position: absolute; left: 0; top: 100; layer-background-color: red; width: 140; visibility: hidden; filter: revealTrans(Duration=1.5,Transition=12)visibility:hide; border: 1px solid black; padding: 0px; background-color: red">
<script language="JavaScript1.2">
if (document.all)
dropmenu03.style.padding='4px'
for (i=0;i<selection.length;i++)
document.write(selection[i])
</script>
</div>
<script language="JavaScript1.2">
if (document.layers){
document.dropmenu03.captureEvents(Event.CLICK)
document.dropmenu03.onclick=hidemenu2
}
</script>