|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
The following works fine in IE but not in Netscape. Is there a way to get round this problem?
<script language="JavaScript"> <!-- <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); // --> function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } function MM_showHideLayers() { //v3.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible' v='hide')?'hidden':v; }obj.visibility=v; } } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <div id="names" style="position:absolute; width:150px; height:150px; z-index:1"> <p onMouseOver="MM_showHideLayers('Layer1','','show')" onMouseOut="MM_showHideLayers('Layer1','','hide')"><img src="portmerionsmall.jpg"></p> <p onMouseOver="MM_showHideLayers('Layer2','','show')" onMouseOut="MM_showHideLayers('Layer2','','hide')"><img src="calador_small.jpg"></p> </div> <div id="Layer1" style="position:absolute; width:296px; height:116px; z-index:2; left: 256px; top: 111px; visibility: hidden">A view of the estuary from one of the buildings in the picturesque village of Portmerion in North Wales.</div> <div id="Layer2" style="position:absolute; width:297px; height:116px; z-index:3; left: 256px; top: 134px; visibility: hidden">I haven't painted many foreign scenes as we tend to holiday in Britain. This is in Majorca. I was attracted by the quality of the light in this picture</div> </body> |
|
#2
|
||||
|
||||
|
What version of Netscape? Earlier versions of NN's CSS implementation is extremely bad. Most CSS-P (positioning) methods won't work.
|
|
#3
|
|||
|
|||
|
cross browser problem
Netscape version 4.6 is the one I tried the code in.
|
|
#4
|
|||
|
|||
|
Just downloaded Netscape 7 and the code works fine. Thanks Stumpy!
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Cross browser problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|