Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wrapping OSC Around a Simple Gallery


^Pariah^

Recommended Posts

Working on wrapping oscommerce around a simple gallery - it parses a given dir and sub dir to create categories and thumbnails

 

The bit I can't get the hang of is making the thumbnails open in a popup

 

Yeah - popups are nasty - but for this use they work better than using same browser window

 

So, it opens using :

 

print('<a href="gallery_imgsrc.php?src='.$imgloc.'&size=full" onclick="window.open($imgloc); return false;" target="newWin">');

 

Even tho source doesn't look right :

 

<a href="gallery_imgsrc.php?src=%2Fj1.jpg&size=full" onclick="window.open($imgloc); return false;" target="newWin"><img src="gallery_imgsrc.php?src=%2Fj1.jpg" alt="j1.jpg" /></a>

 

Makes me thing it is barfing on the window.open $imgloc

 

To get rid of toolbars etc should be :

 

print('<a href="gallery_imgsrc.php?src='.$imgloc.'&size=full" target='somewhere' OnClick="window.open($imgloc,'somewhere','width=240,height=180,toolbar=0,location=0,directories=0,status=0,menubar=0,s
crollbars=1,resizable=1');return false;">');

 

But I keep getting : Parse error: parse error, unexpected T_STRING

 

And i still expect it to barf on the window.open bit again

 

Who wants to /kick me in right direction ?

 

:blink:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...