Remove absolute position in Javascript Menu (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


xx75vulcan -> Remove absolute position in Javascript Menu (6/5/2006 17:00:47)

Howdy!

I need to find a way to remove the absolute positioning on a JavaScript Menu that was given to me.

If I remove the values "162" and "255" in the line:

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{
startMenu('root', false, 162, 225, 17, hBar);

Then the menu doesn't appear at all. I've tried putting the <script></script> tags inside of a table, but it ignores them and defaults to the absolute values inside of the script.

My boss doesn't want to start over, he just wants to eliminate the absolute location.

http://www.rockwood.k12.mo.us/needhelp.htm

Much Thanks!





xx75vulcan -> RE: Remove absolute position in Javascript Menu (6/5/2006 17:37:59)

Nevermind....

All you have to do is in the HTML page, put the <script></script> tags inside of an <span STYLE:"Position:relative;"></span> Tag.

Ex:

<SPAN STYLE="position:relative; ">
<div id="mymenu">
<script language="JavaScript1.2" src="nav_copy(1).js"></script>
</div>
</SPAN>




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625