I'm sorry, I accidentally posted this on the CPG 1.1.XX board! So here it is again on the correct board.
I would like to customize the "Click to view full size image" code so that the new browser window opens with NO Navigation toolbar, Menu bar, Location toolbar, Status bar or Resize handles. However, I would like to retain the Scrollbars as needed.
My images are 1024 X 768 so this feature would allow more of the image to display without the user having to turn off those toolbars manually each time.
I read this post (Posted: Sun Dec 14, 2003 10:36 pm Post subject: hlep me Gaugau) in which Gau Gau recommended editing the displayimage.php file but couldn't figure out what to change!
I'm using the stock, unmodified Standalone version of CPG (1.2.0 final).
If I could figure out how to do this, my life would be complete! CPG is unbelievably cool and awesome in it's depth!
Thank you in advance,
William
in displayimage.php, find $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
and replace with $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
or add whatever parameters JavaScript can handle to manipulate a window.
GauGau
Thanks GauGau!
As usual, your answer was quick, concise and worked like a charm.
Thanks a million!
William