Results 1 to 3 of 3

Thread: Content displayed in DIV on click

  1. #1
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Content displayed in DIV on click

    UPDATE - SCRIPT FOUND - SEE BELOW

    I am putting a tabbing box on a site. One tab will be for photos and one for videos. Small images would be inside of the tab box and when i click on the small photo an arbitrary div would display with a larger version of the photo off to the right or left. Similar with the video tab, but the arbitrary div would display a flash video.

    Similar to if you click on a video link on this page.
    http://cantor.house.gov/index.htm

    Anyone know of a script for that? I can't use PHP or flash.

    thanks for looking.
    Last edited by dynamitedave; 05-29-2008 at 04:54 PM.

  2. #2
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I decided to try this one. This code works. Remove the Conditional statment at the top for it to work properly in IE7

    code i am using can be found here
    http://molendijk.110mb.com/include_v...uderINNER.html

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Arie's script is useful but it seems like overkill for what you're trying to do. There are simpler ways to just show/hide a div with an onClick -- no need for external files and such.

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
  •