jimgun Posted February 19, 2004 Posted February 19, 2004 Hi, My first post and new to osCommerce. - Was wondering how to make the pop-ups from a product description (+click to enlarge) without a border. (ie: leftmargin="0" topmargin="0" marginwidth="0" marginheight="0") type thing. So basically the picture will have no border around it. - popup_image.php // EXCERPT - around line 28 _________________________________________ function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i); self.focus(); _________________________________________ Any ideas?
jimgun Posted February 19, 2004 Author Posted February 19, 2004 a view with borders and then without: popup any ideas?
Guest Posted February 19, 2004 Posted February 19, 2004 Backup...Backup...Backup function resize() {if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i); self.focus(); Change to suit your needs width +30 and height+60-i Should do the trick.
jimgun Posted February 19, 2004 Author Posted February 19, 2004 No, it doesn't work... just resizes with the border intact...
jimgun Posted February 19, 2004 Author Posted February 19, 2004 I believe we need to add (resizable=0,scrollbars=yes,status=0,titlebar=0,to olbar=0,hotkeys=0,left=200,top=50') this kind of jargon... However, not being new to PHP... it needs to be coded in differently. - Any ideas?
Guest Posted February 19, 2004 Posted February 19, 2004 left=200,top=50 This code gives relative position of where the window will open.
berkedam Posted February 19, 2004 Posted February 19, 2004 Hi,My first post and new to osCommerce. - Was wondering how to make the pop-ups from a product description (+click to enlarge) without a border. (ie: leftmargin="0" topmargin="0" marginwidth="0" marginheight="0") type thing. So basically the picture will have no border around it. - popup_image.php // EXCERPT - around line 28 _________________________________________ function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i); self.focus(); _________________________________________ Any ideas? Sorry, it will not work. osCommerce uses as you wrote yourself : function resize() { Look at your popup in another browser and it will look different than in the first browser and most probably different than ... You will even have to tweak the 40,30,60 to arrive at a size that is more or less equal incl the border. "If you're working on something new, then you are necessarily an amateur."
Recommended Posts
Archived
This topic is now archived and is closed to further replies.