PDA

View Full Version : a java script for this



mojo
08-22-2006, 10:09 PM
i am looking for a java script that will open a new window size w:550 h:350 with a picture that has the picture that they clicked on..

Twey
08-22-2006, 10:36 PM
<img src="whatever.png" onclick="window.open(this.href, 'imgwnd', 'height=350,width=550');return false;">

mburt
08-23-2006, 12:15 AM
I think you mean the "src", correct?



<img src="whatever.png" onclick="window.open(this.href, 'imgwnd', 'height=350,width=550');return false;">



<img src="whatever.png" onclick="window.open(this.src, 'imgwnd', 'height=350,width=550');return false;">

Twey
08-23-2006, 12:16 AM
Yes -- sorry, it's late :p

mburt
08-23-2006, 12:17 AM
Yes, I see what you mean :)