View Single Post
  #7  
Old 07-05-2011, 11:04 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default Re: Adding Login Popup to Descriptions

the popupOpen Javascript function opens a popup window with a form and this form has it's action set to the 'login.php' script, ie when submitted, the 'login.php' script is run with passed parameters the input user name/email and password of the logged in user. So, the function expects a php script for an argument (inserted in the parenthesis).

You could insert a Javascript function that opens a popup window, something like:
Code:
var newwindow; function popupwin(url) { newwindow=window.open(url,'name','height=400,width=200'); if (window.focus) {newwindow.focus()} }
where 'url' is your image file url and then insert the anchor code anywhere in your page:

Code:
<a href="javascript: popupwin('your_domain/path_to_image/image_name');">Pop it</a>
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote