Results 1 to 5 of 5

Thread: hidden div that will show a flash movie on click

  1. #1
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hidden div that will show a flash movie on click

    i want to hide div & then show on click event.
    any body can help me.

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    ajax could help, this is the example:

    ajax

    gud luck
    _____________________

    David Demetrius // davejob
    _____________________

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    You need javascript. Ajax is not needed, you can do it with innerHTML.
    An example would be:
    Code:
    <a href="javascript: void(0)" onclick="document.getElementById('video').style.display='block';document.getElementById('video').innerHTML='<object type=\'application/x-shockwave-flash\' style=\'position: absolute; left:20%; top: 20%; width:60%; height: 60%\' data=\'http://www.youtube.com/v/sUfxjBA8PxM&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;fs=1\' ><param name=\'movie\' value=\'http://www.youtube.com/v/sUfxjBA8PxM&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;fs=1\' ><param name=\'wmode\' value=\'transparent\'><param name=\'allowNetworking\' value=\'internal\'><param name=\'allowFullScreen\' value=\'true\'><\/object>'">Play</a>
    
    <br><a href="javascript: void(0)" onclick=document.getElementById('video').innerHTML=''>Stop</a><br>
    
    <div id="video"></div>
    Arie Molendijk

  4. #4
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hidden div

    thanks for your support.
    Is there any solution to resolve browser compatibility

    as www.tanwer.info is the site that seems ok in IE but mes up in firefox.

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by stefanraj View Post
    try to use AJAX, from this one you will get output.
    This doesn't seem to have anything to do with Ajax. It's a css-problem.
    Quote Originally Posted by gul View Post
    thanks for your support.
    Is there any solution to resolve browser compatibility as www.tanwer.info is the site that seems ok in IE but mes up in firefox.
    If you want to center parts of your page, this and this may help.
    ===
    Arie.

Bookmarks

Posting Permissions

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