- Create Account

using the page function

Forums > Combining Scripts > using the page function
Author
Message

1) Q Group: Members
Posts: 31 Joined: 4 Apr 2004 Location: IP: 213.84.--.--
Hi Angus,

i'm breaking my head over this... i have pages where i use the scrollDIV and the page function works great with positioning.

However,  now i have a page where i only use the menupop script, but want to position my divs exactly like i do on the pages where i use the scrollDIV script, because nothing has to be scrolled on that page.

with the scrollDIV i use:

divs[0] = new  ScrDiv('bg_top', 'page.winW()/2 - 254', '100',  '509', '74', 2);

and  later on:

<div id="bg" class="absDiv" style="z-index:-4; background-image:url(images/bg_1.gif)"></div>

but i'm breaking my head on how to use this with the menu popup script.
How and where do i call on the page function and define the DIV's?

your help is greatly appreciated.
thanks in advance,
Q
lucid dreamers unite! visit http://ld4all.com

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 219.88.--.--
If you have the v5.2beta script, look in the "Advanced Positioning" section of the syntax document, it explains it all there -- and even if you're using v5.1 you might as well download the newer version just for the readme :).

Long  story short: you use the functions in a very similar way, just include them in strings in your startMenu() commands and the menu DIVs will position themselves accordingly.

Good luck - Angus.

3) Q Group: Members
Posts: 31 Joined: 4 Apr 2004 Location: IP: 213.84.--.--
thanks!
lucid dreamers unite! visit http://ld4all.com

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.