PDA

View Full Version : IMAGES in AnyLink drop down menu?



moscarda
01-09-2009, 10:52 AM
1) Script Title:
AnyLink Menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
I replaced the text in the drop down menu with images, which worked fine, but rollovers wont work with these images in the menu for some reason. Any ideas how to achieve this?

Snookerman
01-09-2009, 12:09 PM
Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out.

moscarda
01-09-2009, 04:26 PM
i have links to the anylink scripts as well as rollover scripts in the head section, which i'm sure are correct, because the rollovers work elsewhere, and anylink works fine. i just want the rollovers to work within the drop down.

anyway...here is the code for the anylink div...


<div id="anylinkmenu2" class="anylinkcss" style="width: 111px; background-color: white">
<a href="http://www.haputnam.com/"><img src="system/finder_white.gif" srcover="system/finder_black.gif"></a>
<a href="http://www.haputnam.com/"><img src="system/home_white.gif" srcover="system/home_black.gif"></a>
<a href="http://www.haputnam.com/"><img src="system/blog_white.gif" srcover="system/blog_black.gif"></a>
<a href="http://www.haputnam.com/"><img src="system/film_white.gif" srcover="system/film_black.gif"></a>
<a href="http://www.haputnam.com/"><img src="system/music_white.gif" srcover="system/music_black.gif"></a>
<a href="http://www.haputnam.com/"><img src="system/store_white.gif" srcover="system/store_black.gif"></a>
</div>

jscheuer1
01-09-2009, 04:44 PM
That's not the menu that you linked to in your first post, but another version based on the same basic concept, probably:

http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm

but perhaps:

http://www.dynamicdrive.com/dynamicindex1/anylinkcss2.htm

These two scripts overwrite mouseout events for the drop downs. This may be conflicting with mouseout events created by your rollover script which we haven't seen yet. Do the rollovers work at all in the drop downs? I'm thinking that the initial rollover may work, but that the image never returns to its original image onmouseout. Is that what's happening?

In any case, which menu are you using, and what exact script code is used for the rollovers? Where did you get it? Does it have a demo page?

moscarda
01-09-2009, 05:49 PM
okay, sorry if that wasnt the right anylink script. anyway, this is what im working on:

http://moscarda.com/dd/anylink.html

oh and i just noticed the images are flickering. they don't do that working locally on my machine, but apparently on the web they do. dunno whats up with that neither.

thanks again.

jscheuer1
01-09-2009, 06:27 PM
At least part of the problem on the live demo is that images like:

http://moscarda.com/dd/system/finder_black.gif

aren't on the server. It appears that the rollovers are working, just that the rollover images are missing. Tested in FF and Opera.

moscarda
01-09-2009, 07:07 PM
wow im so sorry, i saved them to the wrong directory. sorry again to waste your time! but thanks anyway!