Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop Down Menu

Status
Not open for further replies.

teky

Programmer
Mar 24, 2000
55
US
We are working on a drop down menu which is working fine <br>in Internet explorer but does'nt show up in netscape navigator.<br>I get the following error:<br><br>&quot;Onmouseover not supported in division tag in netscape navigator.&quot;<br><br>The following is the script for the menu:<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Untitled Document&lt;/title&gt;<br>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br>&lt;script language=&quot;JavaScript&quot;&gt;<br><br>&lt;!--<br>function MM_findObj(n, d) { //v3.0<br>&nbsp;&nbsp;var p,i,x;&nbsp;&nbsp;if(!d) d=document; if((p=n.indexOf(&quot;?&quot;))&gt;0&&parent.frames.length) {<br>&nbsp;&nbsp;&nbsp;&nbsp;d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}<br>&nbsp;&nbsp;if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i&lt;d.forms.length;i++) x=d.forms<i>[n];<br>&nbsp;&nbsp;for(i=0;!x&&d.layers&&i&lt;d.layers.length;i++) x=MM_findObj(n,d.layers<i>.document); return x;<br>}<br><br>function MM_showHideLayers() { //v3.0<br>&nbsp;&nbsp;var i,p,v,obj,args=MM_showHideLayers.arguments;<br>&nbsp;&nbsp;for (i=0; i&lt;(args.length-2); i+=3) if ((obj=MM_findObj(args<i>))!=null) { v=args[i+2];<br>&nbsp;&nbsp;&nbsp;&nbsp;if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }<br>&nbsp;&nbsp;&nbsp;&nbsp;obj.visibility=v; }<br>}<br>//--&gt;<br><br>&lt;/script&gt;<br>&lt;/head&gt;<br><br>&lt;body bgcolor=&quot;#FFFFFF&quot;&gt;<br>&lt;div id=&quot;Layer2&quot; style=&quot;position:absolute; width:200px; height:21px; z-index:2; background-color: #FF6699; layer-background-color: #FF6699; border: 1px none #000000&quot; onClick=&quot;MM_showHideLayers('Layer1','','show')&quot;&gt;drop&lt;/div&gt;<br>&lt;div id=&quot;Layer1&quot; style=&quot;position:absolute; width:200px; height:115px; z-index:3; left: 25px; top: 39px; background-color: #3399FF; layer-background-color: #3399FF; border: 1px none #000000; visibility: hidden&quot; onClick=&quot;MM_showHideLayers('Layer1','','hide')&quot;&gt;close&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt; <p> <br><a href=mailto: > </a><br><a href= > </a><br>
 
hmm if i am not mistaken tho DIV are supported in both browsers, they act differently, I know there are some parts of a DIV that'll work better in IE, but that same chance to it makes it not work well in Netscape. ALSO style= does not exist in netscape. thats an IE DHTML feature. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top