PDA

View Full Version : AnyLink JS Drop Down Menu Causes Excessive Vertical Scrolling



newpotato
05-14-2009, 05:46 PM
1) Script Title: AnyLink JS Drop Down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: I'm using this script on 2 sites I'm building. When I add the
<script type="text/javascript">

//anylinkmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkmenu.init("menuanchorclass")
</script>

code to the bottom of the pages, it seems to add extra length to them, causing a lot of unnecessary white space at the bottom.

How can I stop that from happening?

Here's the addresses of the two sites (still under construction):

http://www.stewartcreativedesign.com/bridgebuilders/

http://www.stewartcreativedesign.com/lcedc/http://www.stewartcreativedesign.com/lcedc/

newpotato
05-14-2009, 06:36 PM
For some reason, when I remove the drop shadow code from the CSS file, that's when the extra scrolling appears. No idea why, but that's what causes it.

ddadmin
05-15-2009, 12:10 AM
The default .css of the script comes with a CSS style for the shadow itself:


.anylinkshadow{ /*CSS for shadow. Keep this as is */
position: absolute;
left: 0;
top: 0;
z-index: 99; /*zIndex for shadow*/
background: black;
visibility: hidden;
}

I don't see that on your page, however. Try adding it back in to see if it changes anything.