Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Preloading images and IE Windows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedPreloading images and IE Windows

 Post Reply Post Reply
Author
poolings View Drop Down
Newbie
Newbie


Joined: 23 August 2003
Status: Offline
Points: 2
Direct Link To This Post Topic: Preloading images and IE Windows
    Posted: 23 August 2003 at 5:05pm

Hi. I have encountered a pretty unique problem, in my experience at least. I am using onmouseovers for my buttons on my site. In order to make it a smooth transition between the images, I am using a preloading image script. Everything is fine and dandy until I invoke a Right-click -> Open in new Window or one of my links uses target="_blank".

So the new window opens and then I switch back to my webpage. Now, the onmouseover transitions are not smooth. It seems like I never preloaded my images in the first place! I've tested my webpage on three separate computers and the result is the same.

Does anyone know how to resolve this problem?

Back to Top
abhinav View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: India
Status: Offline
Points: 63
Direct Link To This Post Posted: 23 August 2003 at 10:56pm
what's the site address?
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 24 August 2003 at 10:49pm

you will have to supply more info...

Can you post the script you use to preload the images, or like abhinav said, post the site address?

Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Direct Link To This Post Posted: 26 August 2003 at 4:12pm

The simlest preloader I use is:

<SCRIPT LANGUAGE="JavaScript"><!--

Image1= new Image(55,61)
Image1.src = "images/front/b1_on.gif"

Image2= new Image(55,61)
Image2.src = "images/front/b2_on.gif"

Image3= new Image(55,61)
Image3.src = "images/front/b3_on.gif"

Image4= new Image(170,36)
Image4.src = "images/front/shop/shop_on.gif"

//-->
</SCRIPT>

Back to Top
poolings View Drop Down
Newbie
Newbie


Joined: 23 August 2003
Status: Offline
Points: 2
Direct Link To This Post Posted: 28 August 2003 at 2:31am

Hi. Sorry for the late reply. I've been away. The preload script I use is here. http://www.dynamicdrive.com/dynamicindex4/preloadimage2.htm

And the mouseover code I use is here. It is all contained in the <a href> tag.

<a href="home.htm" onMouseOver="home.src='interface/obutn_home.gif'; return true;"
    onMouseOut="home.src='interface/butn_home.gif'; return true;">
   <img border="0" name="home" src="interface/butn_home.gif" width="46" height="20"></a>

The images preload fine, but as I have said before, if I right click on a link and choose "Open link in a new window" or click on a link that has target="_blank," which opens a totally different page, then switch back to my page, the mouseovers will not be smooth.

I have researched other preload scripts and have ended up with the same results. I don't know what the problem is. It may be the way the preload script stores images into cache.

An example of what I'm talking about is

http://acm.cecs.csulb.edu

Once the page loads up, run the mouse over the buttons. All buttons smoothly change. Now go to the links pages, and click on any of the links (they are coded with target="_blank"). Now switch back to the ACM webpage and run the mouse of the buttons. They will no longer switch. Weird ain't it?

Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Direct Link To This Post Posted: 02 September 2003 at 2:20am

Can you give us a link to your page, plz?

p.s. I personally don't like syntax you use, like

onMouseOver="home.src='interface/obutn_home.gif'; return true;"

In this case I'll prefer to write as follows:

onMouseOver=home.src="interface/obutn_home.gif"

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 02 September 2003 at 7:55am
Originally posted by poolings poolings wrote:

An example of what I'm talking about is

http://acm.cecs.csulb.edu

Once the page loads up, run the mouse over the buttons. All buttons smoothly change. Now go to the links pages, and click on any of the links (they are coded with target="_blank"). Now switch back to the ACM webpage and run the mouse of the buttons. They will no longer switch. Weird ain't it?

Works for me.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.