Page 1 of 1
highlight (javascript rollover) issue (solved)
Posted: Fri Apr 16, 2004 9:58 pm
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.
Posted: Sat Apr 17, 2004 12:17 am
by feyd
they all have the same id. they need unique id's.
Posted: Sat Apr 17, 2004 9:47 am
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
Posted: Sun Apr 18, 2004 6:13 pm
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.