/    Sign up×
Community /Pin to ProfileBookmark

Remove Absolute Position

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!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@xx75vulcanauthorJun 05.2006 — 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>
×

Success!

Help @xx75vulcan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...