Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Help on a tag

  1. #1
    New Coder
    Join Date
    Aug 2002
    Thanked 0 Times in 0 Posts

    Help on a tag

    Ok I would like to know how i can get a table to slide in from the right side of the screen and stop in the middle. I know the <marquee> tag will slide it through but i cannot get it to stop in the middle of the screen it just cycles through. Is that any way that i can get it to stop in the middle of the screen??



  2. #2
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Nashville, TN
    Thanked 26 Times in 26 Posts
    you need to put the table in a div and then set the position off the screen. you will then need javascript to find the dimensions of the window and the div. do some math to find the center position. like this.

    var tableLeft=(widthOfWin-widthOfDiv)/2;
    var tableTop=(heightOfWin-heightOfDiv)/2;

    you then need javascript to animate the layer to the center.
    i have to write an english paper now so i dont have time to write that script out.
    i hope i put you in the right direction.
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts