Go Back   Ultimate Web Site Drop Down Menu Forum > UDM4 > Troubleshooting
Register FAQ Members List Calendar Today's Posts

Reply
Thread Tools Display Modes
Unread 10-17-2008, 10:28 PM
Sangui Sangui is offline
Junior Member
Join Date: Oct 2008
Posts: 4
  #1  
Default Dynamic Expanding Menus

I have a dynamically populating expanding menu, where after I click to open the menu, none of the links are clickable.
Code:
var um={'menuClasses':[],'itemClasses':[],'menuCode':[]};
//path to images folder
um.baseSRC = "udm-resources/";
//initialization trigger element ["id"];
um.trigger = "udm";
//navbar orientation
um.orientation = ["expanding","left","top","relative","0.5em","0.5em","1000",	];
//navbar list output
um.list = ["flexible","yes","no",];
//menu behaviors
um.behaviors = ["200","never","yes","default",];
//reset behaviors
um.reset = ["no","no","no","no",];
//horizontal continuation strip
um.hstrip = ["none","yes",];
// MODULE SETTINGS
//keyboard navigation [comment out or remove if not using]
um.keys = ["38","39","40","37","123","none","27","do***ent.getElementsByTagName('a')[0]",];
// NAVBAR DEFAULT STYLES
//styles which apply to the navbar
um.navbar = ["-6","-11","9em",];
//styles which apply to each navbar item
um.items = ["1","1","collapse","#ead4a4 #edbb85 #edbb85 #ead4a4","solid","#ead4a4 #ead4a4 #fae4b4 #fae4b4","solid","#ead4a4 #edbb85 #edbb85 #ead4a4","solid dashed solid solid","9","5","#ffc","#ffe","#ffc","75%","tahoma,sans-serif","bold","none",	"left","#008000","#b05010","#008000","normal","normal","normal","letter-spacing:1px !important;","","","right-green.gif","right-red.gif","7","..",];
// MENU DEFAULT STYLES 
//styles which apply to each menu
um.menus = ["-7","-12","1","#bdb #080 #080 #bdb","solid","9.8em","2","#f8fbd0","","greenshadow.png","2px","filter:alpha(opacity=50);",];
//styles which apply to each menu item
um.menuItems = ["0","1","separate","#f8fbd0","solid","#aca","solid","#f8fbd0","solid","5","2","transparent","#ecefc6","transparent","70%","tahoma,sans-serif","normal","none","left","#060","#000","#060","normal","normal","normal","","","","right-green.gif","right-black.gif","3","..",];
///////////////////////////////////////////////////////////////////
// DYNAMIC MENUS                                                 //
///////////////////////////////////////////////////////////////////
um.menuCode['people'] = ''
+ '<ul class="onclick" >'
  + '<li class="onclick"><a href="../people/faculty template.html">Faculty Template</a></li>'
  + '<li class="onclick"><a href="../people/facultytemplate.html">Faculty Template</a></li>'
  + '<li class="onclick"><a href="../people/facultytemplate1.html">Faculty Template 1</a></li>'
  + '<li class="onclick"><a href="../people/facultytemplate2.html">Faculty Template 2</a></li>'
+ '</ul>';
I'm using the You Are Here, and Snapshot Cookie extension. I don't understand why these aren't links.

EDIT: This is in Firefox 3. It works perfectly fine in IE7.

Last edited by Sangui : 10-22-2008 at 09:41 PM.
Reply With Quote
Unread 11-06-2008, 06:36 PM
colech colech is offline
Junior Member
Join Date: Nov 2008
Posts: 20
  #2  
Default

I think that you only have to use the "onclick" class for <li> tags and not <ul> tags as well. See here:

http://www.udm4.com/manual/depth/expanding/


Please let me know if that works for you.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.