problems with mouseovers
I recently played with a mouseover script for some buttons on my site. It works, but weirdly. I have to wait for each individual button to download the mouseover image. Obvously I've screwed up in how I wrote the script. Any clues? Thanks much in advance for whatever help. Here's the page in question:
http://pixslinger.virtualave.net/menu.htm
[This message has been edited by webslinger (edited 26 May 2000).]
[This message has been edited by webslinger (edited 26 May 2000).]
Suzanne posted this at 21:20 — 26th May 2000.
She has: 5,507 posts
Joined: Feb 2000
The script has to go INSIDE the <head></head> tag, not after it. I also don't see where the images are being pre-cached.
You also have a whole lot of </head> tags... Have you validated your code? www.htmlvalidator.com/lite is free and you can use it offline and it will help you with that sort of issue (nesting errors) that will throw off JavaScript.
AND you have the whole script in there twice.
What are you using?
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
Suzanne posted this at 21:32 — 26th May 2000.
She has: 5,507 posts
Joined: Feb 2000
There's no good way to say this. Word is NOT an HTML editor, no matter how much M$ tries to tell you it is.
Second thing -- you only need to have the function ONCE, in the <head></head> tags, not before every rollover.
You can have the images loaded in the <body> tag or in the <head> tag by declaring an array and lising the images.
You wrote this script?
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
webslinger posted this at 22:32 — 26th May 2000.
They have: 19 posts
Joined: Mar 2000
Okay, good to know. I've downloaded cselite and will give it a go.
Didn't mean to imply that I authored the script. I got it from First Page, one of the editors I utilize along with Webford and others (yes I know Word isn't an html editor). But I didn't want to lay the blame on anyone or anything else. Hence the use of the pronoun "I" okay?
I'm on it, and thanks for your help.
webslinger posted this at 04:16 — 27th May 2000.
They have: 19 posts
Joined: Mar 2000
Gracias!
Lloyd Hassell posted this at 09:23 — 27th May 2000.
They have: 231 posts
Joined: Feb 2000
If you want a rollover script try www.pageresource.com .
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.