#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Chicago, IL
    Posts
    14
    Rep Power
    0
    Hi,
    I wanted to know whether anyone knows how to go about the using Applets with layers. I would like to applet ( chat) to slide down from the top frame using layer/div on clicking beside the name and status displayed on the top frame. Will be glad if some one can help me out.

    I already have the chat applet working on left frame.

    TIA
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Chennai,India
    Posts
    25
    Rep Power
    0

    Lightbulb Savage here


    Hi ashok,

    Try this

    <html>
    <head>
    <script>
    var d;
    function scroll()
    {
    if(document.all)
    {
    d=document.all['div1'].style;
    d.pixelTop+=1;
    }
    else if(document.layers)
    {
    d=document.layers['div1'];
    d.top+=1;
    }
    if(d.pixelTop<100 || d.top<100)setTimeout("scroll()",20)
    }
    </script>
    </head>
    <body>

    <div id="div1" style="position:absolute; width:500; height:500; top:0; left:0;">
    <applet code="chat"></applet>
    </div>
    <p align="right"><a href="#" onClick="scroll()">Scroll</a> </p>
    </body>
    </html>

    If it doesn't work mail me
    All the best.

    Savage
    Last edited by SavageKid; April 18th, 2001 at 06:52 AM.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Chicago, IL
    Posts
    14
    Rep Power
    0
    Thanks a lot. I checked up after a long time for the reply. hence the delay in mailing a reply. let me try it out and get back to you, incase of any further queries

IMN logo majestic logo threadwatch logo seochat tools logo