Click to See Complete Forum and Search --> : new page image


bobzilla
08-01-2003, 12:22 PM
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 ?

Deathreaver
08-01-2003, 05:41 PM
Thats javascript, I don't remember exactly how to do it, but I can search it out for you

Heres a link to a site that teaches you how to do it:

Dave Site (http://www.davesite.com/webstation/js/window1.shtml)

Dave site rocks

PeOfEo
08-01-2003, 05:59 PM
http://www.infinitypages.com/research/imagepopup.htm
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

<SCRIPT language="JavaScript">
<!--
function my_win()
{
window.open(your jpg,'mywindow',
'width=400,height=200,);
}
//-->
</SCRIPT>
<A HREF="javascript:my_win()">
<IMG SRC="http://yoursite.com/image.gif" border="0"></A>


it would go in ur body