Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DHTML w/JavaScript - Browser Differences
Message
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00274206
Message ID:
00274230
Views:
28
Can't seem to get to your link to see what your talkng about Unknown Host. You want to try again. :)

Jeff
>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!

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform