Hi, I've written the code below for my own site. When you mouse over the
logo, it moves up providing space for the text to fade in (in IE anyway!).

What I want to know is - in the larrayxDiv eventlistener, is it possible to
force the dropDownDiv.fadeTo to wait until the arrayxDiv.slideTo has
completed it's movement?

Regards, Ben

-------------code start----------------------

<html>
<head>
 <title>.: Array[x] :.</title>
 <LINK rel='stylesheet' type='text/css' name='stylesheet'
href='css/arrayxpc.css'>

 <Script language="Javascript"
src="dynapi2_52/dynapi/src/dynapi.js"></script>
 <script language="javascript">
  DynAPI.setLibraryPath('dynapi2_52/dynapi/src/lib/')

  DynAPI.include('dynapi.api.*')
  DynAPI.include('dynapi.event.listeners.js')
  DynAPI.include('dynapi.event.mouse.js')
  DynAPI.include('dynapi.util.thread.js');
  DynAPI.include('dynapi.util.pathanim.js');
  DynAPI.include('dynapi.util.opacity.js');
  DynAPI.include('dynapi.util.opacityanim.js');

  DynAPI.onLoad = function()
  {
   arrayxDiv = new DynLayer(null, DynAPI.document.getWidth()/2-182,
DynAPI.document.getHeight()/2-17, 365, 33, "white");
   arrayxDiv.setHTML('<a href="mailto:[EMAIL PROTECTED]";><img
src="images/logo.gif" width="365" height="33" border="0" alt="click to
e-mail us!"></a>');

   dropDownDiv = new DynLayer(null, DynAPI.document.getWidth()/2-350,
DynAPI.document.getHeight()/2-100, 700, 200, "red");
   closeDropDownDiv = new DynLayer(null, 675, 5, 20, 20);
   closeDropDownDiv.setBgImage('images/close0.gif');

   var dddHTML = '<table class="standardText" width="100%"><tr><td
align="center"><b>Array[x]</b> have formed to create solutions to IT
problems - solutions that normal people can use.</td></tr>'

   dddHTML += '<tr><td align="center"><b>Array[x]</b> have formed to make
designers lives easier.</td></tr>'

   dddHTML += '<tr><td align="center"><b>Array[x] <i>are not</i>
</b>designers. <b>Array[x] <i>are</i></b> programmers [but we can offer
design through partners]</td></tr>'

   dddHTML += '<tr><td align="center"><b>Array[x] <i>can</i></b> talk to
people. </td></tr></table>'

   dropDownDiv.setHTML(dddHTML);

   DynAPI.document.addChild(dropDownDiv);
   dropDownDiv.addChild(closeDropDownDiv);
   DynAPI.document.addChild(arrayxDiv);
   dropDownDiv.setOpacity(0);

   var larrayxDiv = new EventListener(arrayxDiv);
    larrayxDiv.onmouseover = function(e)
    {
     arrayxDiv.slideTo(DynAPI.document.getWidth()/2-182,
DynAPI.document.getHeight()/2-150);
     dropDownDiv.fadeTo(100,10,5);
    }
   arrayxDiv.addEventListener(larrayxDiv);

   var lcloseDropDownDiv = new EventListener(closeDropDownDiv);
    lcloseDropDownDiv.onmousedown = function(e)
    {
     closeDropDownDiv.setBgImage('images/close1.gif');
    }

    lcloseDropDownDiv.onmouseup = function(e)
    {
     closeDropDownDiv.setBgImage('images/close0.gif');
     dropDownDiv.fadeTo(0,10,5);
     arrayxDiv.slideTo(DynAPI.document.getWidth()/2-182,
DynAPI.document.getHeight()/2-17);
    }
   closeDropDownDiv.addEventListener(lcloseDropDownDiv);

  }

  DynAPI.onResize=function()
  {
   if (is.ns)
   {
    location.reload()
   }
   else
   {
        arrayxDiv.moveTo(DynAPI.document.getWidth()/2-182,
DynAPI.document.getHeight()/2-17)
    dropDownDiv.moveTo(DynAPI.document.getWidth()/2-350,
DynAPI.document.getHeight()/2-100)
   }
  }
 </script>
</head>

<body bgcolor="#fcb216">
</body>
</html>
-------------------code finish-------------------------
================================================================

= 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.



---
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


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to