Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Netscape 6 problems
- From: javascript@xxxxxxxxxx (Weber, Michael)
- Subject: [Javascript] Netscape 6 problems
- Date: Wed, 25 Jul 2001 15:54:07 -0400
Laurent, your suggestion does help to tighten my code. But the problem remains the same. My top nav buttons are disappearing = on me in NN6 Mike Michael Weber Web Designer Marketing Department De Lage Landen (610) 386-5000 ext 3362 MWeber@xxxxxxxxxxxxxxx <mailto:MWeber@xxxxxxxxxxxxxxx>=20 =A0 * * * * * * * * *=20 The information transmitted via this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination = or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer. * * * * * * * * *=20 > -----Original Message----- > From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho@xxxxxxxx] > Sent: Wednesday, July 25, 2001 2:08 PM > To: 'javascript@xxxxxxxxxx' > Subject: RE: [Javascript] Netscape 6 problems >=20 >=20 > your browser detection it's a bit weird I will use more=20 > something like that=20 >=20 > ns6 =3D (document.getElementById&&!document.all)? true:false > ns4 =3D (document.layers)? true:false > ie4 =3D (document.all)? true:false >=20 > and the work it's done >=20 > Laurent >=20 > -----Original Message----- > From: Weber, Michael [mailto:MWeber@xxxxxxxxxxxxxxx] > Sent: 25 July 2001 18:58 > To: 'javascript@xxxxxxxxxx' > Subject: [Javascript] Netscape 6 problems >=20 >=20 > I am having Netscape 6 problems. >=20 > I have a script that works fine in IE and Netscape 4. >=20 > I use it in my upper navigation frame on our website=20 > www.delagelanden.com > <http://www.delagelanden.com>=20 >=20 > The script changes the buttons in the top portion of the nav=20 > bar and also > changes a colored bar in bottom nav section. >=20 > I am modifying it for NN6, but it still doesn't work. The=20 > bottom section > seems to change just fine, but the rollover buttons disappear=20 > after going > through the nav bar once. >=20 > The code is listed below is the current state of my work --=20 > which is not on > the website yet. It has a test browser feature which test=20 > for Netscape 6. >=20 > Any help would be appreciated. >=20 > The code >=20 > <html> >=20 > <head> >=20 > <script language=3D"JavaScript"> >=20 > var isNav4 =3D false; > var isIE4 =3D false; > var isNN6 =3D false; >=20 > function testBrowser(){ > if (document.all) isIE4=3Dtrue; > else if (document.layers) isNav4=3Dtrue; =20 > else if (document.getElementById) isNN6=3Dtrue; > } >=20 > function getobj(obj) > { > if (isIE4) > newobj =3D eval("document.all." + obj + ".style"); >=20 > else if (isNav4) > newobj =3D eval("document." + obj); >=20 > else if (isNN6) > newobj =3D eval("document.getElementById('" + obj + "').style"); >=20 > return newobj > =20 > } >=20 > function showit(which) > { > var newobj =3D getobj(which) > newobj.visibility =3D "visible" > } >=20 > function hideit(which) > { > var newobj =3D getobj(which) > newobj.visibility =3D "hidden" > } >=20 >=20 > </script> > <!-- ImageReady Preload Script (tn9.psd) --> > <script LANGUAGE=3D"JavaScript"> > <!-- >=20 > function newImage(arg) { > if (document.images) { > rslt =3D new Image(); > rslt.src =3D arg; > return rslt; > } > } >=20 > function changeImages() { > if (document.images && (preloadFlag =3D=3D true)) { > for (var i=3D0; i<changeImages.arguments.length; i+=3D2) { > document[changeImages.arguments[i]].src =3D=20 > changeImages.arguments[i+1]; > } > } > } >=20 > var preloadFlag =3D false; > function preloadImages() { > if (document.images) { > b_homero =3D newImage("images/buttons/b_homero.gif"); > b_benero =3D newImage("images/buttons/b_benero.gif"); > b_newsro =3D newImage("images/buttons/b_newsro.gif"); > b_indro =3D newImage("images/buttons/b_indro.gif"); > b_appro =3D newImage("images/buttons/b_appro.gif"); > b_counro =3D newImage("images/buttons/b_counro.gif"); > b_aboutro =3D newImage("images/buttons/b_aboutro.gif"); >=20 > preloadFlag =3D true; > } > } >=20 > // --> > </script> > <!-- End Preload Script --> >=20 > <base target=3D"content"> > <meta name=3D"description" > content=3D"De Lage Landen, an international provider of=20 > high-quality asset > financing products that enables our partners to achieve=20 > increased sales, > profits and market share."> > <meta name=3D"keywords" content=3D"De Lage Landen, Vendor Finance=20 > America"> > <title>De Lage Landen Top Navigation Bar</title> > </head> >=20 > <body BGCOLOR=3D"#FFFFFF" ONLOAD=3D"preloadImages();testBrowser()" > link=3D"#000000" > alink=3D"#666666" vlink=3D"#666666" topmargin=3D"0" leftmargin=3D"0" > bgproperties=3D"fixed"> > <div name=3D"main"> >=20 > <table BORDER=3D"0" CELLPADDING=3D"0" CELLSPACING=3D"0" > style=3D"margin-left: 0; margin-right: 0; margin-top: 0" > > <tr> > <td ROWSPAN=3D"2" valign=3D"middle" align=3D"left"><img > src=3D"images/logos/lo_dllpif.gif" > alt=3D"DLLpif160.gif (3840 bytes)" WIDTH=3D"163" = HEIGHT=3D"64"></td> > <td COLSPAN=3D"8" width=3D"488"><img = SRC=3D"images/buttons/b_top.gif" > WIDTH=3D"496" HEIGHT=3D"30"></td> > <td ROWSPAN=3D"2" width=3D"105"><img = SRC=3D"images/buttons/b_right.gif" > WIDTH=3D"60" HEIGHT=3D"64"></td> > </tr> > <tr> > <!-- one - Home --> > <td width=3D"65"><a target=3D"content" = href=3D"html/1_home/co_home.htm" > onClick=3D"showit('one') ; hideit('two') ; hideit('three') ; > hideit('four'); hideit('five') ;=20 > hideit('six') ; hideit('seven') ; hideit('eight') ; > changeImages('b_home', 'images/buttons/b_homero.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_news',=20 > 'images/buttons/b_news.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif') ; changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif'); return true; "><img > name=3D"b_home" src=3D"images/buttons/b_homero.gif"=20 > border=3D"0" WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- two - Benefits --> > <td width=3D"65"><a target=3D"content"=20 > href=3D"html/2_Benefits/co_bene.htm" > onClick=3D"showit('two') ; hideit('one') ; hideit('three') ; > hideit('four'); hideit('five') ; > hideit('six') ; hideit('seven') ; hideit('eight') ; > changeImages('b_bene',=20 > 'images/buttons/b_benero.gif'); changeImages('b_home', > 'images/buttons/b_home.gif'); > changeImages('b_news',=20 > 'images/buttons/b_news.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif') ; changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif');return true;"><img > name=3D"b_bene" src=3D"images/buttons/b_bene.gif" BORDER=3D"0"=20 > WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- three - Industries Served --> > <td width=3D"65"><a target=3D"content"=20 > href=3D"html/3_Industries/co_ind.htm" > onClick=3D"hideit('one') ; hideit('two') ; showit('three'); > hideit('four'); hideit('five') ;=20 > hideit('six') ; hideit('seven') ; hideit('eight') ;=20 > changeImages('b_ind', > 'images/buttons/b_indro.gif');=20 > changeImages('b_home', 'images/buttons/b_home.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_news',=20 > 'images/buttons/b_news.gif') ; changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif'); return true;"><img > name=3D"b_ind" src=3D"images/buttons/b_ind.gif" BORDER=3D"0" = WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- four - News --> > <td width=3D"65"><a target=3D"content" = href=3D"html/4_news/co_news.htm" > onClick=3D"hideit('one') ; hideit('two') ; hideit('three'); > showit('four'); hideit('five') ;=20 > hideit('six') ; hideit('seven') ; hideit('eight') ;=20 > changeImages('b_news', > 'images/buttons/b_newsro.gif');=20 > changeImages('b_home', 'images/buttons/b_home.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif'); changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif'); return true;"><img > name=3D"b_news" src=3D"images/buttons/b_news.gif" BORDER=3D"0"=20 > WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- five - Online Application --> > <td width=3D"65"><a target=3D"content"=20 > href=3D"html/5_Onliapp/co_app.htm" > onClick=3D"hideit('one') ; hideit('two'); hideit('three');=20 > hideit('four'); > showit('five') ;=20 > hideit('six') ; hideit('seven') ; hideit('eight');=20 > changeImages('b_app', > 'images/buttons/b_appro.gif');=20 > changeImages('b_home', 'images/buttons/b_home.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_news',=20 > 'images/buttons/b_news.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif') ; changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif');return true;"><img > name=3D"b_app" src=3D"images/buttons/b_app.gif" border=3D"0" = WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- six - Countries --> > <td width=3D"65"><a href=3D"html/6_Countries/co_coun.htm"=20 > target=3D"content" > onClick=3D"hideit('one') ; hideit('two'); hideit('three');=20 > hideit('four'); > hideit('five') ;=20 > showit('six') ; hideit('seven') ; hideit('eight');=20 > changeImages('b_coun', > 'images/buttons/b_counro.gif');=20 > changeImages('b_home', 'images/buttons/b_home.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_news',=20 > 'images/buttons/b_news.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif') ; changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif');return true;"><img > name=3D"b_coun" src=3D"images/buttons/b_coun.gif" border=3D"0"=20 > WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- seven - Products and Services --> > <td width=3D"65"><a target=3D"content"=20 > href=3D"html/7_Products/co_prod.htm" > onClick=3D"hideit('one') ; hideit('two'); hideit('three');=20 > hideit('four'); > hideit('five') ;=20 > hideit('six') ; showit('seven') ; hideit('eight') ;=20 > changeImages('b_prod', > 'images/buttons/b_prodro.gif');=20 > changeImages('b_home', 'images/buttons/b_home.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_news',=20 > 'images/buttons/b_news.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif') ; changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_about',=20 > 'images/buttons/b_about.gif'); return true;"><img > name=3D"b_prod" src=3D"images/buttons/b_prod.gif" BORDER=3D"0"=20 > WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > <!-- eight - About Us --> > <td width=3D"65"><a target=3D"content"=20 > href=3D"html/8_About/co_about.htm" > onClick=3D"hideit('one') ; hideit('two'); hideit('three');=20 > hideit('four'); > hideit('five') ;=20 > hideit('six') ; hideit('seven') ; showit('eight') ;=20 > changeImages('b_about', > 'images/buttons/b_aboutro.gif'); > changeImages('b_home', 'images/buttons/b_home.gif'); > changeImages('b_bene',=20 > 'images/buttons/b_bene.gif'); changeImages('b_news',=20 > 'images/buttons/b_news.gif'); changeImages('b_ind',=20 > 'images/buttons/b_ind.gif') ; changeImages('b_app',=20 > 'images/buttons/b_app.gif'); changeImages('b_coun',=20 > 'images/buttons/b_coun.gif'); changeImages('b_prod',=20 > 'images/buttons/b_prod.gif'); return true;"><img > name=3D"b_about" src=3D"images/buttons/b_about.gif"=20 > border=3D"0" WIDTH=3D"65" > HEIGHT=3D"35"></a></td> > </tr> > </table> > </div> >=20 > <!-- Bottom Nav --> >=20 > <!-- one --> > <div ID=3D"one" > STYLE=3D"POSITION: absolute; VISIBILITY: visible; TOP: 67; LEFT: 0; > font-family:times; font-size:12px; font-weight: bold"><div > align=3D"center"><center> >=20 > <table height=3D"19" width=3D"100%" cellspacing=3D"0" = cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_home9.gif" height=3D"19"=20 > width=3D"100%" > align=3D"center"><img > src=3D"images/i_spacer.gif" width=3D"700" height=3D"1"></td> > </tr> > </table> > </center></div></div> > <!-- two --> > <div ID=3D"two" STYLE=3D"POSITION: absolute; VISIBILITY: hidden;=20 > TOP: 67; LEFT: > 0; font-family:times; font-size:12px; font-weight: bold "><div > align=3D"center"><center> >=20 > <table height=3D"19" width=3D"100%" cellspacing=3D"0" = cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_bene.gif" height=3D"19"=20 > width=3D"100%" > align=3D"center"><img src=3D"images/i_spacer.gif" width=3D"700"=20 > height=3D"1"></td> > </tr> > </table> > </center></div></div> > <!-- three --> > <div ID=3D"three" > STYLE=3D"POSITION: absolute; VISIBILITY: hidden; TOP: 67; LEFT: 0; > font-family:times; > font-size:12px; font-weight: bold "><div > align=3D"center"> >=20 > <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_ind2.gif" height=3D"19"><img > src=3D"images/i_spacer.gif" width=3D"700" height=3D"1"=20 > alt=3D"i_spacer.gif (67 > bytes)"></td> > </tr> > </table> > </div></div> > <!-- four --> > <div ID=3D"four" > STYLE=3D"POSITION: absolute; VISIBILITY: hidden; TOP: 67; LEFT: 0; > font-family:times; > font-size:12px; font-weight: bold "><div > align=3D"center"><center> >=20 > <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" = height=3D"18"> > <tr> > <td background=3D"images/buttons/st_how.gif" height=3D"19"><img > src=3D"images/i_spacer.gif" width=3D"100" height=3D"1"=20 > alt=3D"i_spacer.gif (67 > bytes)"></td> > </tr> > </table> > </center></div></div> >=20 > <!-- five --> > <div ID=3D"five" > STYLE=3D"POSITION: absolute; VISIBILITY: hidden; TOP: 67; LEFT: 0; > font-family:times; > font-size:12px; font-weight: bold "><div > align=3D"center"><center> >=20 > <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_app.gif" height=3D"19"><img > src=3D"images/i_spacer.gif" width=3D"200" height=3D"1" = alt=3D"i_spacer.gif (67 > bytes)"></td> > </tr> > </table> > </center></div></div> > <!-- six --> > <div ID=3D"six" > STYLE=3D"POSITION: absolute; VISIBILITY: hidden; TOP: 67; LEFT: 0; > font-family:times; > font-size:12px; font-weight: bold "><div > align=3D"center"><center> >=20 > <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_coun.gif" height=3D"19"><img > src=3D"images/i_spacer.gif" > width=3D"300" height=3D"1" alt=3D"i_spacer.gif (67 bytes)"></td> > </tr> > </table> > </center></div></div> > <!--seven --> >=20 > <div ID=3D"seven" > STYLE=3D"POSITION: absolute; VISIBILITY: hidden; TOP: 67; LEFT: 0; > font-family:times; > font-size:12px; font-weight: bold "><div > align=3D"center"><center> >=20 > <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_proser.gif" = height=3D"19"><img > src=3D"images/i_spacer.gif" > width=3D"200" height=3D"1" alt=3D"i_spacer.gif (67 bytes)"></td> > </tr> > </table> > </center></div></div> >=20 > <!-- eight --> > <div ID=3D"eight" > STYLE=3D"POSITION: absolute; VISIBILITY: hidden; TOP: 67; LEFT: 0; > font-family:times; > font-size:12px; font-weight: bold "><div > align=3D"center"><center> >=20 > <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0"> > <tr> > <td background=3D"images/buttons/st_about.gif" height=3D"19"><img > src=3D"images/i_spacer.gif" > width=3D"200" height=3D"1" alt=3D"i_spacer.gif (67 bytes)"></td> > </tr> > </table> > </center></div></div> > </body> > </html> >=20 >=20 > Michael Weber > Web Designer > Marketing Department > De Lage Landen > (610) 386-5000 ext 3362 > MWeber@xxxxxxxxxxxxxxx < mailto:MWeber@xxxxxxxxxxxxxxx > <mailto:MWeber@xxxxxxxxxxxxxxx> > >=20 > * * * * * * * * * >=20 > The information transmitted via this e-mail is intended only for the > person or entity to which it is addressed and may contain = confidential > and/or privileged material. Any review, retransmission,=20 > dissemination or > other use of, or taking of any action in reliance upon this=20 > information > by persons or entities other than the intended recipient is=20 > prohibited. > If you receive this in error, please contact the sender and delete = the > material from any computer. >=20 > * * * * * * * * * >=20 >=20 >=20 >=20 > > http://www.LaTech.edu/mailman/listinfo/javascript > <http://www.LaTech.edu/mailman/listinfo/javascript>=20 > >=20 >=20 > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > http://www.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > http://www.LaTech.edu/mailman/listinfo/javascript >=20
- Prev by Date: [Javascript] Scrolling Frames
- Next by Date: [Javascript] (no subject)
- Previous by thread: [Javascript] Netscape 6 problems
- Next by thread: [Javascript] Netscape 6 problems
- Index(es):