PDA

View Full Version : Drop down/ Overlapping Content script needs to still funtion as standard link as well



jeepville
06-07-2011, 08:24 PM
1) Script Title:
Drop down/ Overlapping Content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm
3) Describe problem:

I am using the rollover function of the script to drop down a menu but I would like the text that is being rolled over to also be clickable to send you to a link.

for example "About Us" you roll over and it drops a menu with all the links for about us (have this part working fine) I want to be able to click on "About Us" and have it take me to generic aboutus.html

[code]<a href="aboutus.php" class="MenuLight" id="searchlink2" rel="subcontent2" rev="maboutus.php">About Us [code]
I have that and it shows a hand and looks like if you click it will take you to aboutus.php not the drop down, but click does nothing.

This is my init section
[code]dropdowncontent.init("searchlink2", "right-bottom", 10, "mouseover")[code]

FrickenTrevor
06-08-2011, 03:09 AM
Open dropdowncontent.js and change


var dropdowncontent={
disableanchorlink: true


to false.

Also why are you making the box show when the user is going to be redirected anyway? The user will never get to see the full box. If youre trying to make an animated menu I suggest you look at this (http://www.1stwebdesigner.com/css/36-eye-catching-jquery-navigation-menus/)

jeepville
06-08-2011, 12:43 PM
Thanks I didnt know why I didnt see that it was the first option in the .js

I have the menu show on roll over so they can still see and access the menu by just rolling over the text but for the lazy I want them to still be able to access the pages by going and just clicking on the menu text itself.

So thank you! Its working the way I want it to now.