Using javascript to make flash/div disappear?

Discussion in 'JavaScript' started by Aashish soni, Jan 20, 2010.

  1. #1
    Heyyyyyyyy,


    I'm trying to get my swf to call a js function that will move my div out of view.

    To get it to stay at the bottom I'm using fixed positioning.

    I'm having problems with a couple of things:

    1. The javascript code to change the div style from fixed to absolute and then move it -1000

    2.Getting the red background to cover the entire width of the screen but keep the main part of the swf to stay the same size.
     
    Aashish soni, Jan 20, 2010 IP
  2. dasriel

    dasriel Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    do not give up, it was difficult placement javascrift
     
    dasriel, Jan 21, 2010 IP
  3. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't use flash. But why do you change the position from fixed to absolute to get the div to move. Normally, only get the position absolute is enough to activate left or top properties. Then use setTimeout method to get it move.

    Here's a demo on how to get div to move.

    http://www.pagecolumn.com/javascript/settimeout.htm
     
    unigogo, Jan 21, 2010 IP
  4. dasriel

    dasriel Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks to you for your help
     
    dasriel, Jan 22, 2010 IP