Frames and javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurkcu
    New Member
    • Mar 2010
    • 3

    Frames and javascript

    Hi,
    I've used frameset and frames in my web page and i can show and hide frames with this javascript code
    Code:
       function CloseIt()
       {
         parent.parent.frames["fraSet"].cols='*,0';
       }
    It works ok. But i want to show and hide animated or slowly. I tried to use
    settimeout("Clo seIt()",500)
    but it did not work. Frame is still closing as soon as i clicked or wait 500 ms then closes.
    How can i hide and show frame slowly.

    Thanks.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you would need to set the size incrementally ... so you would need a loop that increases or decreases the width and/or height of a frame in more then one step ...

    Comment

    • kurkcu
      New Member
      • Mar 2010
      • 3

      #3
      Originally posted by gits
      you would need to set the size incrementally ... so you would need a loop that increases or decreases the width and/or height of a frame in more then one step ...
      Can you write a sample code ?

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        first show how you would start with that ... i don't simply want to do the work for you ...

        Comment

        Working...