Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-06-2004, 11:08 AM   #1
TonyL
Registered User
 
Join Date: Apr 2002
Posts: 42
Default dynamically positioning the DIV

I have a flash menu which rolls over a HTML page.

I have set the divs up for the flash, except, the content displays in the center of the screen, so, the div has to be constantly re-positioned because the main content table streches vertically and the width will obvious change with screen resolution.

heres the script

<SCRIPT>

var TabHeight=document.getElementById("menuholder").of fsetTop;
var TabWidth=document.getElementById("menuholder").off setLeft;


// Feed the final values in to the top and left attributes of the div tag
document.getElementById("menulayer").style.top = TabHeight;
document.getElementById("menulayer").style.left = TabWidth;

</script>


menuholder = table id where the div needs to be positioned
menulayer = the div id that the movie resides in.

I have tried ilayers etc but they all blow out to the height of the movie so they don't rollover the page

can anyone help???

thanks in advance
TonyL is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.