Jump to content

Simple img popup


jpkuelho

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...