Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

Javascript or other code for an "expand/contract window"?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

Javascript or other code for an "expand/contract window"?

Old 08-21-04, 07:39 PM
  #1  
DVD Talk Godfather
Thread Starter
 
DVD Polizei's Avatar
 
Join Date: Jan 2002
Posts: 52,446
Javascript or other code for an "expand/contract window"?

I'm currently looking for some code that will enable a person to click on a window within a forum post, to expand the window to view a large photo or image so it won't screw up the forum look.

For example, someone posts a 1200x700 photo, and the width of the post is extended to a ridiculous extreme. If I had a contract/expand Java button, the photo could be viewed without messing up the forum.
DVD Polizei is offline  
Old 08-21-04, 07:53 PM
  #2  
Senior Member
 
Join Date: Jul 2001
Location: DC Metro Area
Posts: 379
What if you encapsulate all images within DIV tags and then crop the div to a certain max width. Have a link/button that will expand the div to the width of the image when clicked, or pop up in a new window.

dunno if that'll work. I hate js.
Einsatz is offline  
Old 08-21-04, 08:03 PM
  #3  
Mod Emeritus
 
Gallant Pig's Avatar
 
Join Date: Aug 1999
Posts: 15,325
OT I hate JS too. It's a mess. I'd like to see some sort of new Internet script possibly based on PHP.
Gallant Pig is offline  
Old 08-22-04, 02:43 AM
  #4  
DVD Talk Godfather
Thread Starter
 
DVD Polizei's Avatar
 
Join Date: Jan 2002
Posts: 52,446
Einsatz,

Yeah, that sounds like it might work.
DVD Polizei is offline  
Old 08-22-04, 04:52 PM
  #5  
DVD Talk Special Edition
 
Join Date: Sep 1999
Location: Bristol, CT USA
Posts: 1,861
I think you could do it similar to a pure CSS menu. The default behavior being to hid the image/text/whatever, and the hover event opening it. CSS menu demo.
danw is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive Advertising Cookie Policy Privacy Statement Terms of Service

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.