You wouldn't use what you have at the moment, you would create a new layer, use setHTML to write the <a href...><img...></a> into it,
Like this:
 
DynAPI. {
     myWindow=new DynLayer(null,DynAPI.document.getWidth()/2-300,DynAPI.document.getHeight()/2-100,600,200,"white")
     myWindow.setHTML('<a href...><img...></a> ')
     DynAPI.document.addChild(myWindow)
}
 
And then add this to your code :
 
DynAPI.onResize=function() {
     myWindow.moveTo(DynAPI.document.getWidth()/2-300,DynAPI.document.getHeight()/2-100)
    //do the same for your sliding thing
}
 
See it working here:
 
 
Cheers Richard.
 
----- Original Message -----
From: Ben Empson
Sent: Thursday, May 10, 2001 1:20 PM
Subject: [DynAPI-Help] relative positioning

Thanks for the url richard.
 
Can anyone tell me the best way to position a layer relative to the page - not necessarily to the html.
 
If you look at www.arrayx.co.uk, you'll see an image in the middle of the browser window. If you change the size of the browser window, the image stays in the same place. What I want to do is a mouseover effect which drops a layer out of the bottom of the image.
 
How can I work out at load time where to position the layer? I don't think I'm actually trying to do relative positioning am I, just working out the absolute position depending on the size of the browser window.
 
Any help appreciated, Ben
================================================================
 
= Array[x] =
= delivering design aware programming solutions =
= www.arrayx.co.uk = = [EMAIL PROTECTED] =
= +44 (0)7780 696840 = = 1 Flintham Drive, Sherwood, Notts. NG5 3DS UK =
 
STANDARD DISCLAIMER: This message is confidential. You should not copy it or
disclose its contents to anyone. You may use and apply the information only
for the intended purpose. Internet communications are not secure and
therefore Array[x] does not accept legal responsibility for the contents of this
message. Any views or opinions presented are only those of the author and
not those of Array[x]. If this email has come to you in error please delete it and
any attachments.
 

--------------------------------------------------------------------------------
----- Original Message -----
Sent: Thursday, May 10, 2001 12:01 PM
Subject: Re: [DynAPI-Help] Doc url

----- Original Message -----
From: Ben Empson
Sent: Thursday, May 10, 2001 12:36 PM
Subject: [DynAPI-Help] Doc url

can anyone tell me the url for the doccentre please?
 
Cheers, Ben
================================================================
 
= Array[x] =
= delivering design aware programming solutions =
= www.arrayx.co.uk = = [EMAIL PROTECTED] =
= +44 (0)7780 696840 = = 1 Flintham Drive, Sherwood, Notts. NG5 3DS UK =
 
STANDARD DISCLAIMER: This message is confidential. You should not copy it or
disclose its contents to anyone. You may use and apply th    e information only
for the intended purpose. Internet communications are not secure and
therefore Array[x] does not accept legal responsibility for the contents of this
message. Any views or opinions presented are only those of the author and
not those of Array[x]. If this email has come to you in error please delete it and
any attachments.
 

--------------------------------------------------------------------------------
 

---
Outgoing mail is certified Virus Free using AVG version 6.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.251 / Virus Database: 124 - Release Date: 26/04/2001

Reply via email to