Log in

View Full Version : Content displayed in DIV on click



dynamitedave
05-29-2008, 03:55 PM
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.

dynamitedave
05-29-2008, 04:53 PM
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_via_iframe_or_object/includerINNER.html

Medyman
05-29-2008, 06:25 PM
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.