Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DHTML w/JavaScript - Browser Differences
Message
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00274206
Message ID:
00274319
Vues:
25
Hi Rox,

I don't think that Netscape is actually reloading the frames. It "appears" to be just refreshing or redrawing them. Unfortunately, it seems to be using the original IMG SRC value when the frame loaded even thought it has been change via your javascript, probably from some cache. If you move your mouse over the link it refreshes to the correct image when the onmouseout fires. This shows that the correct image is in the IMG's src value.

I don't know how to fix this. I tried a few ideas but they all bombed. If I come up with something I'll let you know. Until you find a resolution here is the standard fix I apply in situations like this :)
<SCRIPT LANGUAGE=javascript>
//Place this script at the top of your ASP page that generates the frameset.
var brname = navigator.appName;
if (brname.length>2) {
   brname = brname.substring(0,3)
   if (brname == "Net") {
      alert('Netscape Sucks!')
      window.location = "http://www.microsoft.com/windows/ie/" }}
</SCRIPT>
>OK Folks,
>you guessed it... I didnt get a javascript book yet :)
>
>I have navigation frame where I used javascript and events to dynamically change img src values on graphical buttons to visually create a navigation schema. ( see http://nappconfernece.com - left hand frame)
>
>To pull this off I have a global array of img src values (pointing to all the different graphics, each button has 3 graphics) that is coded in the head section... not wrapped inside of a function so that the array is created & initialized during window load. When a user clicks a button, an array element is replaced with an alternate graphic to indicate current page. Works great, except in Netscape when the window is resized it reloads each frame and therefore the array is recreated and I loose my current page indication. IN IE4 and IE5, a resize event doesnt trigger form load so my global array variables dont get reset.
>
>I tried to wrap setting up the array in a function and trigger it in another way (with Window.onload event was my best idea) but seems like javascript only lets you define a variable globally if it's outside of a function... which means all my 2-3 line mouseover functions for each button wont recognize the image array unless the array is defined and setup like it is now (outside of a function in head section).
>
>I'm really proud of the scheme of this, but I'm afraid it's tapped my creativity. Anybody have any thoughts or ideas I could try to help get around Netscape re-loading a page on resize? I need some mechanism to maintain the alternate img src that gets sets when user click a button in order to preserve current page indication.
>
>TIA!
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform