![]() |
Close Window by Clicking on Detail Image |
Post Reply ![]() |
Author | |
Jackalope ![]() Groupie ![]() Joined: 07-July-2006 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 24-June-2007 at 2:08am |
Just incase anyone want's this feature, you can copy a few lines of code in two different files. What it does is when you view the detail product image, if you click on the image the window will close. Also, when you view the additional images (if there are any), if you click on the detail image (not the thumbnails) then the window will close as well.
In includes/javascripts/pcWindowsViewPrd.asp change the following towards the bottom of the page... from this: doc.write('<IMG SRC="' + imagename + '"> to this: doc.write('<IMG SRC="' + imagename + '" onClick="self.close()"> Also, in /pc/viewPrdPopWindow.asp change the following towards the bottom of the page... from this: <td height="100%"> <div align="center"> <% pLgimageURL = "" '// clear large image value so we dont get a zoom button pcs_ProductImage %> </div> </td> to this: <td height="100%"> <div align="center"> <a href="javascript:closeWindow();"> <% pLgimageURL = "" '// clear large image value so we dont get a zoom button pcs_ProductImage %> </a> </div> </td> Now I'm not a programmer by any means so if anyone sees a mistake or a better way, please make corrections. Edited by Jackalope - 24-June-2007 at 2:16am |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |