Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Learner question


  • From: javascript@xxxxxxxxxx (Real Jumper)
  • Subject: [Javascript] Learner question
  • Date: Wed, 17 Apr 2002 04:28:44 +0000

Hello all,

I have a framed site with the navigation in the left frame and the
content in the right. There is a link in the main frame with
TARGET="blank" to get a new window to open. The navigation in the
left frame is by way of an image rollover button.
Everything is fine and dandy until a user who has clicked a link
in the main frame, and viewed the new window, then closes the window
to return to the frames page. Now the rollover
has to download again before it will work, despite being previously
pre-loaded and now resides in the browsers cache. I have tried a pre-load 
script but it doesn't make a difference.

Perhaps there is something obvious that I am missing. Any help would
be appreciated.
Thank you.

Here is a sample of the script.....

<head>

image1 = new Image();
image1.src = "imagesss/topbuton.gif";

</head>

<body>

<a href="japan.htm" TARGET="main"
onmouseover="image1.src='imagesss/topbuton.gif';"
onmouseout="image1.src='imagesss/topbut.gif';">
<img name="image1" src="imagesss/topbut.gif" width=235 height=40
border=0></a>

....this all works fine until someone clicks a link on the japan.htm
page in the main frame which will open a new window. When the new window is 
closed and the user rolls over another button in the navigation frame, there 
is no rollover until the rollover (topbuton.gif)image downloads again.

Thanks again,
Neil


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.