I can't put the java script menus where I want it to appear on my page.
Return to Recent Questions
Q:
First, I like the time that I save with your program. But I can't put the java script menus where I want it
on my page.
No matter how I set the "positioning", java script menus shows up in exactly
the same place over and over. I've try to put it in table cells, I've given
it absolute positioning...
A:
First of all you should set the following parameter:
var absolutePos = 0;
If you want to center the java script menus paste it
within the <div> or <table> with a static position and specify a center alignment for it, for example:
<DIV align=center>
<<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
<table width=800>
<tr>
<td align=center width=600><script type="text/javascript" src="data/data.js"></script></td>
</tr>
</table>
Please, set exact value for var menuWidth parameter in "px", for example:
var menuWidth = "600px";
This can help to align your menu correctly in all browsers.
Try that.
Return to Recent Questions
|