highlight (javascript rollover) issue
right now i have a javascript rollover the graphic designer wants that has buttons for quoting, etc. the problem is that the only thing i can't get right, or figure out how to without making 20 instances of those buttons, is that hte first one and only the first one gets highlighted. the behaviour can be seen here: http://24.91.157.113/findyourdesire/forums.php?tid=7
right now i'm looking for ideas to get that working aside from forgetting about having them roll over.
POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.
The Webmistress posted this at 07:57 — 17th April 2004.
She has: 5,586 posts
Joined: Feb 2001
I'm pretty sure it is something to do with the fact that all your images are named (not file name) the same 'quote' and then your script is telling it to swap 'quote' with the second image it is doing it only on the first one.
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
Abhishek Reddy posted this at 08:32 — 17th April 2004.
He has: 3,348 posts
Joined: Jul 2001
What Julia says sounds right. Try using this.src for onmouse* in the imgs instead of whatever you're using now.
It's hard fishing out your code in all those tables...
m3rajk posted this at 14:49 — 17th April 2004.
They have: 461 posts
Joined: Jul 2003
that's my issue. i don't know how to make unique ids that will get called short of adding iterations to it that would change how the function needs to be called, or require up to 20 versions (quote0.png, quote1.png...quote19.png) to be on there
POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.
Suzanne posted this at 23:04 — 17th April 2004.
She has: 5,507 posts
Joined: Feb 2000
increase the name attribute value, not the filename.
swap out name="image$i" sort of thing.
Abhishek Reddy posted this at 01:46 — 18th April 2004.
He has: 3,348 posts
Joined: Jul 2001
You won't have to refer to an id if you use this.src.
Suzanne posted this at 02:32 — 18th April 2004.
She has: 5,507 posts
Joined: Feb 2000
there you go, then. the brilliant Abhi to the rescue (saving those of us too lazy to go hunting through that code of yours, m3rajk!)
m3rajk posted this at 23:11 — 18th April 2004.
They have: 461 posts
Joined: Jul 2003
Julia/Abhishek-
thank you. that worked perfectly. the thing was i knew i would have the problem with indetical ids, but the only way i could think of to circumvent that was to have many instances of the file and did not want that. i didn't think to use this.src instead of the function. i was stuck trying to think of a way to do it via the function. i looked but couldn't find a way to make an optional second argument for the iteration, and actually expected that would be what was given to me.
POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.
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.