new page image

admin

Administrator
Staff member
I am looking for help in making a link to an image once clicked on open a new page but only the size of the image ?<!--content-->Thats javascript, I don't remember exactly how to do it, but I can search it out for you<br />
<br />
Heres a link to a site that teaches you how to do it:<br />
<br />
Dave Site (<!-- m --><a class="postlink" href="http://www.davesite.com/webstation/js/window1.shtml">http://www.davesite.com/webstation/js/window1.shtml</a><!-- m -->)<br />
<br />
Dave site rocks<!--content-->http://www.infinitypages.com/research/imagepopup.htm <br />
I saw that a while back, pyro brought it to the table but basically if you know the image height and width you can use something like <br />
<br />
<SCRIPT language="JavaScript"> <br />
<!-- <br />
function my_win() <br />
{ <br />
window.open(your jpg,'mywindow', <br />
'width=400,height=200,); <br />
}<br />
//--> <br />
</SCRIPT> <br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"javascript:my_win()"> <br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"http://yoursite.com/image.gif" border="0"></A> <br />
<br />
<br />
it would go in ur body<!--content-->
 
Back
Top