Click to See Complete Forum and Search --> : Pre-loaded images vanish when new window link is opened?


slicecure
05-04-2003, 01:16 AM
Hello...I have two questions,

1. How do I fix my pre loaded images? I open a new window from a link...when I close the window my pre loaded images are gone...the mouseover effect takes a few seconds to happen. I am building a site and it can be viewed at http://www.slicecure.netfirms.com/ The problem happens from the links page.

2. I think this is a related problem...I have another site in development at http://www.win4golf.com The banner ad has two blinking exclamation points. When I click on the link to "add to favorites" the ad stops blinking when I return.

Thank you for your help...Gary

fakeName
05-04-2003, 03:21 AM
The code is a real mess. It's hard to say where the problem is. I'd start by cleaning up the html. You have placed elements after the opening <html> tag that belong in the body. Cut the table with all the ad-junk that is currently right after <html> and paste it in the body. It doesn't belong where it is. You also don't need the center tag for centering.

The problem may also be that the script tags that call the javascript file for the ad are not in the head section or in the body. They are in that first table that shouldn't be where it is.

Learn the basics of HTML here:

http://www.w3schools.com/html/default.asp

Insert a doctype before the <html> tag and validate your code, here:

http://validator.w3.org/

You'll certainly learn what's wrong by doing so.

Don't know what a doctype is? Go here:

http://www.w3.org/TR/html401/struct/global.html#idx-document_type_declaration-3

I also noticed that some of your pages are not displaying images at all. I looked under the hood and see that your swap image script is missing from those pages.

You've also named your pages with spaces, as in contact us.html

File names shouldn't have spaces. You might consider a different naming convention, such as contact-us.html or contact_us.html or why not just contact.html? Those spaces will screw things up if you are linking to those pages.

Read about html file naming conventions here:
http://www-ed.fnal.gov/lincon/tech_web_naming.shtml

slicecure
05-04-2003, 03:48 AM
I am designing my site with frontpage and using a free web server to test the site...they put the ad on top of my site.

Thank you for the file name without the spaces..I corrected that issue.

My problem still exists...how to reload/refresh the page you are leaving when opening a new window?

fakeName
05-04-2003, 04:39 AM
I didn't say renaming the files would fix the issue, it was just on of many problems.

I believe the problem is the misplaced first table. It is invalid. It should be AFTER the <body> tag, not after the <html> tag and before the <head>. Reread my post.

The animated ad-junk, being at the top of the page, will load first, thus delaying the load of all of your page images, including the rollovers. You may find just having those banners is causing your images to load slowly.

Try moving the ad-banner table (the one after the html tag) to below the <body> tag and see what happens, or remove it altogether temporarily.

Test removing it altogether, then, upload the page, and see how the rollovers work.

Your rollovers are working, but I think the delay is that ad banner loading.