Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-28-2003, 07:19 PM   PM User | #1
ric7202
New to the CF scene

 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ric7202 is an unknown quantity at this point
Question margins in pop-up window?

I use a common script to display images in a pop-up window. The problem is that if I direct the image directly to the window (i.e. NOT via an html-page) the window has white spaces to the left and top of the image. These margins appears even if the windowsize is predetermined. If I put the big image in a html-document first, I can kill the margins within the doc, but then I have to use 1 doc for every image. I don't want that as I have many pics. The Q now is: Is there any way to remove the margins of the new pop-up window (containing only the image, not a html-doc) with a script? I have seen a solution where one uses a single html-doc to display different pics but the problem there was that one could not make the window change size according to the current picture. Any solution to that?
ric7202 is offline   Reply With Quote
Old 10-28-2003, 07:40 PM   PM User | #2
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
http://www.codingforums.com/showthre...5&pagenumber=1
adios is offline   Reply With Quote
Old 10-28-2003, 07:52 PM   PM User | #3
ric7202
New to the CF scene

 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ric7202 is an unknown quantity at this point
Thx, but still problems...

I tried that script, but had some problems: 1. The pop-up window didn't resize to the img-size. 2. The image only loaded one time. If I closed the pop-up and clicked the link again, the window popped up as supposed to, but the image never showed again. Could the problems relate to my old browser (IE 4)?.
ric7202 is offline   Reply With Quote
Old 10-28-2003, 10:58 PM   PM User | #4
beetle
Senior Coder

 
Join Date: Aug 2002
Posts: 3,467
Thanks: 0
Thanked 0 Times in 0 Posts
beetle has a little shameless behaviour in the past
Try the version the Skyzyx finessed

http://www.skyzyx.com/scripts/imagepop.php
__________________
My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
“Minds are like parachutes. They don't work unless they are open”
“Maturity is simply knowing when to not be immature”
beetle is offline   Reply With Quote
Old 10-29-2003, 09:09 PM   PM User | #5
ric7202
New to the CF scene

 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ric7202 is an unknown quantity at this point
Smile Works Fine

Thanks a lot...that worked nice. Standing ovations for the helpful people here!!!
ric7202 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 Off

Forum Jump


All times are GMT +1. The time now is 12:06 PM.


Advertisement
Log in to turn off these ads.