?
Solved

Positioning a navigation menu

Posted on 2004-11-25
2
Medium Priority
?
2,605 Views
Last Modified: 2008-01-09
I recently downloaded the hvmenu off of dynamicdrive.com and I was hoping you could help me out with a simple question.  I am trying to align it staticly and place the javascript menu in a table cell. I Placed it in the table cell but when I put it in there it has like a pixels worth of space on top and on bottom. It's located at http://cncg.com/sgreenstein/index.php. I
have copied exmplmenu_var.js and my html file into this email. Thanks Please take a look. I would really appreciate that.
-----exmplmenu_var.js ---------
 
/***********************************************************************************
* (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=16;   // Number of first level items
 var LowBgColor='CCCCFF';   // Background color when mouse is not over
 var LowSubBgColor='CCCCFF';   // Background color when mouse is not
over on subs
 var HighBgColor='f6983f';   // Background color when mouse is over
 var HighSubBgColor='f6983f';   // Background color when mouse is over
on subs
 var FontLowColor='black';   // Font color when mouse is not over
 var FontSubLowColor='black';   // Font color subs when mouse is not
over
 var FontHighColor='white';   // Font color when mouse is over
 var FontSubHighColor='white';   // Font color subs when mouse is over
 var BorderColor='black';   // Border color
 var BorderSubColor='black';   // Border color for subs
 var BorderWidth=1;    // Border width
 var BorderBtwnElmnts=1;    // Border between elements 1 or 0
 var FontFamily="times new roman,verdana,arial,comic sans ms,technical"
// Font family menu items
 var FontSize=10;    // Font size menu items
 var FontBold=1;     // Bold menu items 1 or 0
 var FontItalic=0;    // Italic menu items 1 or 0
 var MenuTextCentered='left';   // Item text position 'left', 'center'
or 'right'
 var MenuCentered='left';   // Menu horizontal position 'left',
'center' or 'right'
 var MenuVerticalCentered='static';   // Menu vertical position 'top',
'middle','bottom' or static
 var ChildOverlap=.2;    // horizontal overlap child/ parent
 var ChildVerticalOverlap=.2;   // vertical overlap child/ parent
 var StartTop=0;     // Menu offset x coordinate
 var StartLeft=0;    // Menu offset y coordinate
 var VerCorrect=0;    // Multiple frames y correction
 var HorCorrect=0;    // Multiple frames x correction
 var LeftPaddng=3;    // Left padding
 var TopPaddng=2;    // Top padding
 var FirstLineHorizontal=0;   // SET TO 1 FOR HORIZONTAL MENU, 0 FOR
VERTICAL
 var MenuFramesVertical=1;   // Frames in cols or rows 1 or 0
 var DissapearDelay=1000;   // delay before menu folds in
 var TakeOverBgColor=1;    // Menu frame takes over background color
subitem frame
 var FirstLineFrame='navig';   // Frame where first level appears
 var SecLineFrame='space';   // Frame where sub levels appear
 var DocTargetFrame='space';   // Frame where target documents appear
 var TargetLoc='MenuPos';    // span id for relative positioning
 var HideTop=0;     // Hide first level when loading new document 1 or
0
 var MenuWrap=1;     // enables/ disables menu wrap 1 or 0
 var RightToLeft=0;    // enables/ disables right to left unfold 1 or 0
 var UnfoldsOnClick=0;    // Level 1 unfolds onclick/ onmouseover
 var WebMasterCheck=0;    // menu tree checking on or off 1 or 0
 var ShowArrow=1;    // Uses arrow gifs when 1
 var KeepHilite=1;    // Keep selected path highligthed
 var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10]; //
Arrow source, width and height
function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

// Menu tree
// MenuX=new Array(Text to show, Link, background image (optional),
number of sub elements, height, width);
// For rollover images set "Text to show" to:  
"rollover:Image1.jpg:Image2.jpg"
Menu1=new Array("Home","index.php","",0,20,138);
Menu2=new Array("Take The Tour","","",5);
  Menu2_1=new Array("Activations","tour_main_room.php","",0,20,150);
  Menu2_2=new Array("Training Room","tour_classroom.php","",0,20,150);
  Menu2_3=new Array("Return and
Repairs","tour_return_repairs.php","",0);
  Menu2_4=new Array("Commisions","tour_commisions.php","",0);
                Menu2_5=new Array("Conference
Room","tour_conference_room.php","",0);
Menu3=new Array("Become A dealer","","",3);
 Menu3_1=new Array("Altavista","http://www.altavista.com","",0,20,150);
 Menu3_2=new Array("Google","http://www.google.com","",0);
 Menu3_3=new Array("Yahoo","http://www.yahoo.com","",0);
Menu4=new Array("Phones","blank.htm","",4);
 Menu4_1=new Array("Dynamic
Drive","http://www.dynamicdrive.com","",0,20,180);
 Menu4_2=new Array("JavaScript
Kit","http://www.javascriptkit.com","",0);
 Menu4_3=new Array("Freewarejava","http://www.freewarejava.com","",0);
 Menu4_4=new Array("Web Review","http://www.webreview.com","",0);
Menu5=new Array("Purchase
Order","javascript:top.location.href='blank.htm'","",1);
 Menu5_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu6=new
Array("Flashes","javascript:top.location.href='blank.htm'","",1);
 Menu6_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu7=new Array("Rebate
Center","javascript:top.location.href='blank.htm'","",1);
 Menu7_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu8=new Array("RA
Wizard","javascript:top.location.href='blank.htm'","",1);
 Menu8_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu9=new
Array("Advertising","javascript:top.location.href='blank.htm'","",1);
 Menu9_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu10=new Array("Coverage
Maps","javascript:top.location.href='blank.htm'","",1);
 Menu10_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu11=new Array("About
Us","javascript:top.location.href='blank.htm'","",1);
 Menu11_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu12=new Array("CNCG
Contacts","javascript:top.location.href='blank.htm'","",1);
 Menu12_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu13=new Array("Employee
Login","javascript:top.location.href='blank.htm'","",1);
 Menu13_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu14=new Array("Commission
Logs","javascript:top.location.href='blank.htm'","",1);
 Menu14_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu15=new Array("Career
Opportunities","javascript:top.location.href='blank.htm'","",1);
 Menu15_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);
Menu16=new Array("Submit
Feedback","javascript:top.location.href='blank.htm'","",1);
 Menu16_1=new Array("Author\'s
Site","http://www.burmees.nl/","",0,20,140);

-----Example.htm ---------
<table border="0">
  <tr>
     <td valign="top" align="left">
<!----------------------------- left menu ---------------------------->
<div id='MenuPos' style='position:static;'><script
type='text/javascript'>
//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
function Go(){return}
</script>
<script type='text/javascript' src='exmplmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
<noscript>Your browser does not support script</noscript>
</div>
</td>
</tr>
</table>
Thanks
0
Comment
Question by:sgreeny12
2 Comments
 

Author Comment

by:sgreeny12
ID: 12677197
Requesting a refund because I have figured out the answer i put a cellpadding="0" and a cellspacing="0" in the <table>brackets
0
 

Accepted Solution

by:
Balrog earned 0 total points
ID: 12678158
Closed, 50 points refunded.
Balrog
Community Support Moderator
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question