Create iframe with Div on click of button (Expand) effect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

    #1

    Create iframe with Div on click of button (Expand) effect

    Good day, I need help.

    I know i'm asking a lot, no clue on how to do - please help

    I want to create a <Div>with an <frame> in on the click of a button which controls the droping & closing of the div

    Only on click of the button the <div><iframe> should be visible with objects there in & a button within the <div> to close the div collapse.

    I'm trying to create an expand effect & once the button within the expand has been clicked the <div><iframe> collapses

    I know i'm asking a lot

    Please Assist!
  • larztheloser
    New Member
    • Jan 2010
    • 86

    #2
    Hello again ismalic,
    The easy way is to use JQuery. This does all those kinds of animation things very easily.
    The harder way is to create your own animation code. Simply put, you create the div with the iframe (could be as easy as calling document.write( )), then periodically call a function that "expands" div layer using the style property of the object. When it is at the proper size, stop periodically calling the function.
    To make it collapse again, write a second set of animation functions and cause it to remove the layer.
    Hope this helps,
    Lars

    Comment

    • ismailc
      New Member
      • Sep 2006
      • 200

      #3
      Thanks I'm looking around

      Comment

      Working...