highlight (javascript rollover) issue (solved)

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

highlight (javascript rollover) issue (solved)

Post by m3rajk »

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.
Last edited by m3rajk on Sun Apr 18, 2004 6:13 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

they all have the same id. they need unique id's.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

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
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

from the thank you at the place i got the help that solved it:

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.
Post Reply