1 reply [Last post]
Last seen: 19 years 35 weeks ago
Joined: 2003-10-05
Posts: 3
Points: 0

I've been struggling with a few non ie browser issues and I would greatly appreciate any feedback...

First, I'm trying to replace background images on rollover events. I'm using a simple javascript function to preload the images I need, but it doesn't seem to work in mozilla or netscape. Here's the preload script I'm using:

function imgPreload() {
var imgArray=new Array();
for(i=0;i<imgPreload.arguments.length;i++) {
imgArray[i]=new Image();

Is this a problem with the script I'm using, or simply a matter of the way some browsers treat background images? Strangely, I've also tried using multiple layers and switching them with z-index/visibility, but it doesn't appear that these layers are being preloaded...

The other problem seems to be specific to Netscape 6. I'm using a container div inside a table (not my first choice) and swapping properties (visibility) on absolutely positioned child layers is shoving all the content down and effectively doubling the height of the container. Any clue as to what is going on?


Tony's picture
Last seen: 3 weeks 5 days ago
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Some assorted browser issues

Hi cosmicf,
Are you passing in the correct name of the images?
Is it really working in other browsers or is it just browser cache?

A link to the site may help.

You could use CSS to preload the images http://exp.hicksdesign.co.uk/articles/archive/000055.php

Hope that helps