Results 1 to 4 of 4

Thread: HV DHTML sub menu problem

  1. #1
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HV DHTML sub menu problem

    HV DHTML sub menu problem)

    var.js script by Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)

    http://www.dynamicdrive.com/dynamici...menu/index.htm

    Hello

    I'm using the javascript above for a DHTML horizontal menu.
    The actual menus can be found here:

    http://www.southsidepartnership.org....uthside_var.js
    http://www.southsidepartnership.org....es/menu_com.js

    I would like to delete an item from one of the drop down sub-menus. I have read the config file but can't for the life of me work out how it's done. Can anyone help? Many thanks in advance.

    Skitey
    Last edited by skitey; 05-30-2008 at 10:22 PM. Reason: broken link to menu_com.js

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Assume you have this in ...var.js:
    Code:
    Menu1=new Array("rollover:../img_nav/about.gif:../img_nav/about_over.gif","../htm/about_bg.html","",4,18,132);
     	Menu1_1=new Array("Background","../htm/about_bg.html","",0,16,170);
    	Menu1_2=new Array("Objectives and Activities","../htm/about_vision.html","",0,16,170);
    	Menu1_3=new Array("Annual Report","../htm/annualreport.html","",0,16,170);
    	Menu1_4=new Array("Quality Assurance","../htm/about_quality.html","",0,16,170);
    When you want to take out 'Menu1_1', delete the line, renumber the submenus, then replace the '4' in the array by '3' (since there are only 3 submenus left).
    That will do it.
    ---
    Arie Molendijk.

  3. #3
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your quick reply. Unfortunately I've tried that and still can't get it to work.

    Submenu I want to delete is:

    Menu3_4=new Array("Tenancy Sustainment Project","../htm/fanoncare_tenancy.html","",0,16,180);

    This is at the end of submenu list so no need to renumber, I think?

    However, when I delete this line the entire menu bar disappears.

    Do I need to change anything further in the menu_com.js script or perhaps part of the var.js script?

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    This works with me:
    Code:
    /***********************************************************************************
    *	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive 
    
    for Opera7)
    *	For info write to menus@burmees.nl		          *
    *	You may remove all comments for faster loading	          *		
    ***********************************************************************************/
    
    	var NoOffFirstLineMenus=8;	
    	var LowBgColor='#ffcc00';			
    	var LowSubBgColor='#faf0e6';			
    	var HighBgColor='black';			
    	var HighSubBgColor='red';			
    	var FontLowColor='black';			
    	var FontSubLowColor='black';			
    	var FontHighColor='white';
    	var FontSubHighColor='white';			
    	var BorderColor='#ffcc00';			
    	var BorderSubColor='#ffffff';			
    	var BorderWidth=1;				
    	var BorderBtwnElmnts=1;			
    	var FontFamily="arial,helvetica,san serif"	
    	var FontSize=9;				
    	var FontBold=0;	
    	var FontItalic=0;	
    	var MenuTextCentered='left';			
    	var MenuCentered='left';			
    	var MenuVerticalCentered='top';		
    	var ChildOverlap=.2;				
    	var ChildVerticalOverlap=.2;	
    	var StartTop=107;				
    	var StartLeft=3;	
    	var VerCorrect=0;				
    	var HorCorrect=0;				
    	var LeftPaddng=3;				
    	var TopPaddng=1;	
    	var FirstLineHorizontal=1;	
    	var MenuFramesVertical=1;			
    	var DissapearDelay=500;	
    	var TakeOverBgColor=1;			
    	var FirstLineFrame='navig';			
    	var SecLineFrame='space';			
    	var DocTargetFrame='space';			
    	var TargetLoc='';	
    	var HideTop=0;	
    	var MenuWrap=1;				
    	var RightToLeft=0;				
    	var UnfoldsOnClick=0;	
    	var WebMasterCheck=0;
    	var ShowArrow=0;				
    	var KeepHilite=1;				
    	var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];	
    
    function BeforeStart(){return}
    function AfterBuild(){return}
    function BeforeFirstOpen(){return}
    function AfterCloseAll(){return}
    
    
    
    
    Menu1=new 
    
    Array("rollover:../img_nav/about.gif:../img_nav/about_over.gif","../htm/about_bg.html","",4,18,132);
     	Menu1_1=new Array("Background","../htm/about_bg.html","",0,16,170);
    	Menu1_2=new Array("Objectives and Activities","../htm/about_vision.html","",0,16,170);
    	Menu1_3=new Array("Annual Report","../htm/annualreport.html","",0,16,170);
    	Menu1_4=new Array("Quality Assurance","../htm/about_quality.html","",0,16,170);
    
    Menu2=new 
    
    Array("rollover:../img_nav/services.gif:../img_nav/services_over.gif","../htm/services_res.html","",5,18
    
    ,86);
    	Menu2_1=new Array("Learning Disabilities Residential","../htm/services_res.html","",0,16,200);
    	Menu2_2=new Array("Mental Health Residential","../htm/services_mh.html","",0,16,200);
    	Menu2_3=new Array("Outreach Services","../htm/services_outreach.html","",0,16,200);
    	Menu2_4=new Array("Southside Prison Project","../htm/services_prison.html","",0,16,200);
    	Menu2_5=new Array("Scotch Bonnet Catering","../htm/services_scotch.html","",0,16,200);
    	
    Menu3=new 
    
    Array("rollover:../img_nav/fanoncare.gif:../img_nav/fanoncare_over.gif","../htm/fanoncare_bg.html","",3,
    
    18,100);
    	Menu3_1=new Array("Background & Vision","../htm/fanoncare_bg.html","",0,16,180);
    	Menu3_2=new Array("Residential Services","../htm/fanoncare_res.html","",0,16,180);
    	Menu3_3=new Array("Day Services","../htm/fanoncare_day.html","",0,16,180);
    	
    	
    Menu4=new 
    
    Array("rollover:../img_nav/people.gif:../img_nav/people_over.gif","../htm/people_manteam.html","",2,18,7
    
    4);
    	Menu4_1=new Array("SMT Biographies","../htm/people_manteam.html","",0,16,110);
    	Menu4_2=new Array("Board Biographies","../htm/people_board.html","",0,16,110);
    
    Menu5=new 
    
    Array("rollover:../img_nav/news.gif:../img_nav/news_over.gif","javascript:top.location.href='../htm/news
    
    .html'","",0,18,68);
    	Menu5_1=new Array("News","../htm/news.html","",0,16,140);
    	
    Menu6=new 
    
    Array("rollover:../img_nav/working.gif:../img_nav/working_over.gif","javascript:top.location.href='../ht
    
    m/working.html'","",2,18,159);
    	Menu6_1=new Array("Opportunities & benefits","../htm/working.html","",0,16,150);
    	Menu6_2=new Array("Current Vacancies","../htm/vacancies.html","",0,16,150);
    	
    Menu7=new 
    
    Array("rollover:../img_nav/contact.gif:../img_nav/contact_over.gif","javascript:top.location.href='../ht
    
    m/contact_details.html'","",2,18,80);
    	Menu7_1=new Array("Contact details","../htm/contact_details.html","",0,16,110);
    	Menu7_2=new Array("Map of head office","../htm/contact_map.html","",0,16,110);
    	
    Menu8=new 
    
    Array("rollover:../img_nav/links.gif:../img_nav/links_over.gif","javascript:top.location.href='../htm/li
    
    nks.html'","",0,18,60);
    	Menu8_1=new Array("Author\'s Site","../htm/links.html","",0,16,140);
    Arie.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •