puzzlezone Posted January 22, 2007 Share Posted January 22, 2007 Hello :) Long story short, I need a popup in a custom page. I added a new database field, included it in the query, and that all works fine. '<a href="java script:popupWindow(\'http://mydomain/images/' . $product_info['products_image2'] . '\')"><font size=4 color=blue><p>Click to enlarge</font></a>' The problem is, the popup displays the image really small, unless you drag it out, then you can see the whole picture. Is there a way to have this window resize to fit its contents? Thanks a bunch! Link to comment Share on other sites More sharing options...
aegrnberg Posted January 22, 2007 Share Posted January 22, 2007 Hello :) Long story short, I need a popup in a custom page. I added a new database field, included it in the query, and that all works fine. '<a href="java script:popupWindow(\'http://mydomain/images/' . $product_info['products_image2'] . '\')"><font size=4 color=blue><p>Click to enlarge</font></a>' The problem is, the popup displays the image really small, unless you drag it out, then you can see the whole picture. Is there a way to have this window resize to fit its contents? Thanks a bunch! Hmm... the popup window should already resiz based on the image size. In any case, why don't you try lightbox, I think it's pretty cool. http://www.oscommerce.com/community/contributions,4383 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.