homepage Welcome to WebmasterWorld Guest from 54.226.136.179
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript pop-up window that automatically fits?
animgirl

10+ Year Member



 
Msg#: 474 posted 1:10 am on Jul 5, 2003 (gmt 0)

Hey,

A while ago I ran across a Javascript pop-up script that would automatically resize itself to fit the exact dimenions of my picture. I don't care for the white border around all my pics on my pop-ups.

Have you seen a script like this or is there a way to do this differently? The code needs to have the ability to have a customizable size for each picture, there is no generic size for my pics.

thanx a mill,
animgirl

 

korkus2000

WebmasterWorld Senior Member korkus2000 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 474 posted 2:11 am on Jul 5, 2003 (gmt 0)

Are you using CSS to remove margins? I would think you can use your script and get rid of the margins and have it do what you need.

animgirl

10+ Year Member



 
Msg#: 474 posted 4:38 am on Jul 5, 2003 (gmt 0)

Yes I am and the margins are set to 0px...
hmmm

animgirl

10+ Year Member



 
Msg#: 474 posted 4:52 am on Jul 5, 2003 (gmt 0)

It's because I have it linked to a picture file, and not an actual html file with the pic in it :)
aha! thanx a mill guys
animgirl

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved