jpkuelho Posted April 17, 2007 Share Posted April 17, 2007 I want to do a script that when the use clicks on the image link it popups a new window with the same size as the imageI just dont know how to start Link to comment Share on other sites More sharing options...
killay Posted April 18, 2007 Share Posted April 18, 2007 java script: <script type="text/javascript">imagename='';function popupscreen(beeldnaam){OpenWin = this.open("","bigpopup","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,status=no,width=320,height=275,left=241,top=200");imagename = beeldnaam;setTimeout('update()',500)}function update(){doc = OpenWin.document;doc.write('<HTML><HEAD><TITLE>big popup<\/TITLE><\/HEAD><BODY bgcolor="#0000CC" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" onBlur="self.focus()">');doc.write('<center><IMG SRC="' + imagename + '">');doc.close();}</script> html code on the image: <a onclick="java script:popupscreen ('images/image.jpg');" href="java script:void(0);"><img height=[u]size[/u] width=[u]size[/u] alt="click for bigger image" src="images/info_shot1.jpg"></a> <br />blablabl<br /> normally this should work... I had to translate that from my script i used. (dutch to english) so i hope i translated the wright vars Link to comment Share on other sites More sharing options...
killay Posted April 21, 2007 Share Posted April 21, 2007 You're welcome Link to comment Share on other sites More sharing options...
jpkuelho Posted April 27, 2007 Author Share Posted April 27, 2007 sorry I forgot this topic I made I will test it right nowthanks ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now