PDA

View Full Version : DOM Image Rollover II and DHTML Tip Message conflicting?



aka Robbie
02-14-2007, 03:18 PM
1) Script Title:
DOM Image Rollover II
DHTML Tip Message

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex15/domroll2.htm
http://www.dynamicdrive.com/dynamicindex5/popinfo.htm

3) Describe problem:
The above two scripts are brilliant. However when both are use on the same page they conflict (as I found out by turning one or the other off). My experience of JS isn't exactly brilliant, but I have looked through the var and functions calls yet cannot find any conflicting elements.

I'd really like to be able to use both scripts together, but I am facing a brick wall. Does anyone have any ideas or solutions?

aka Robbie
02-14-2007, 03:59 PM
:o

D'oh. It came down to a variable :o

A few of us (one who claims to be good at js) spent ages looking over this and completely missed the "ih" variable :o

jscheuer1
02-14-2007, 04:27 PM
That's funny, it took me a few minutes just now but, I came up with the 'ih' variable. Specifically by changing (case sensitive, whole words only):

ih

to:

newih

in oodomimagerollover.js