Help DHTML fix is not working on my...

User 118178 Photo


Ambassador
55 posts

Hello All
I've been able to use the following to fix the positioning issues in the past. For some reason it's not working on my latest project.

<span id="themenu">

<script type="text/javascript">

function Go(){return}

/***********************************************************************
YOU CAN MANUALLY CHANGE THE MENU HERE, BUT BE VERY CAREFUL !
***********************************************************************/

THEN, AT THE BOTTOM ADD ...

</script>
</span>THIS LINE HERE
<noscript>Your browser does not support script</noscript>

THEN GO BACK TO THE TOP OF THE SCRIPT AND CHANGE THIS LINE
var TargetLoc=''; // span id for relative positioning
TO READ THIS:......
var TargetLoc='themenu'; // span id for relative positioning


var StartTop=1; // Menu offset x coordinate
var StartLeft=1; // Menu offset y coordinate


here is the link to the page where i'm having the issue.
http://www.itfactorcompetitions.com/temp/indexx.html

Thx in advance
User 184085 Photo


Ambassador
1,707 posts

I'm having a little trouble finding where you defined the span tag named "themenu" with postion information.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 118178 Photo


Ambassador
55 posts

Hi David,
thanks for your response...........It's on line 158 the link to the page is below
http://itfactorcompetitions.com/temp/indexx.html
User 184085 Photo


Ambassador
1,707 posts

look for line
var StartLeft=60; // Menu offset y coordinate


and reduce the number 60 to get the alignment you want. This number pushes your menu right from the margin.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 118178 Photo


Ambassador
55 posts

OK i have that part down but here's the kicker Firefox and IE display my vertical posistion diffrent when i adjust for 1 it throws the other off. :(
User 184085 Photo


Ambassador
1,707 posts

try setting var
var LeftPaddng=5; // Left padding
to
var LeftPaddng=0; // Left padding
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

ignore the above! wrong suggestion :/
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

Somewhere your table row or data definitions has set a height, border or padding parameter and looks like you are running into a box model definition issue.

Very difficult to find with nested tables, try throwing in a border collapse on your tables and see if that works.

Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 118178 Photo


Ambassador
55 posts

I'm at the point of hair pulling now. I thought I had it solved but now my horizontal alignment is off. The problem is opening and closing the sideviewer........ in any browser it shifts the menu. I'm trying various "Menu offset y coordinates" but nothing is keeping the menu in place

http://www.itfactorcompetitions.com/temp/indexx.html


:(

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.