Click to See Complete Forum and Search --> : layer positioning : basic


ingrma
10-12-2003, 04:41 AM
First foree into DHTML here so be kind...
Oh and JS while I think about it.

AIM: have a layer (clipped) centred on the page, then scroll nested layers inside that left and right.
End result would be kind of like a slide show idea.

Im using DWmx on win 98 though dont think that should make any real difference.
I have a DW extension that can scroll a layer and have learnt how to call that from an image or text or page element, ie onLoad...
so here's where you step in :)

1) How can I place the clipping layer centre page?
Must I create a function to record the screen.width, set var based on that, but then how do I then say
<div id="clipLayer" style="position:relative; left:"var"; ...>

must I apply a class to the tag?

2) Once I have a clipping layer in place (and this is basic) how can I call a function multiply from the same trigger?
say I would like to move one layer out of view and another in to replace it, while I have a function that moves individual layers I now need to call it twice for each of the layers... do I need that functionality built into the function, ie get a new function?

Thanks, I only said I would do someone a favour and Im now lumbered with something I have no expereince in because they dont want it built in Flash... If anyone can, hopefully, answer my above that would be excellent otherwise point me to a tutorial or just drop the answer in my lap that would be just great - thanks for your help...

M

pyro
10-13-2003, 07:18 PM
See if these help you:

http://www.infinitypages.com/research/verticalcentereddiv.htm
http://www.infinitypages.com/research/clientsidedivinclude.htm