Pinup Posted October 20, 2003 Share Posted October 20, 2003 Hello ! Currently in the process of making a website, and i know some of you people do this a lot, even for a living, i just need some help : I need to have the links that will be click on lead to a new window, popup-like, which would take the exact size of a picture within it. How ? How ? How ? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 20, 2003 Share Posted October 20, 2003 the normal 'new window' <a href="http://blah.blah" target="_blank"> using java scripts to set the size... <SCRIPT TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=400,height=200,scrollbars=yes'); return false; } //--> </SCRIPT> there you go. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 20, 2003 Share Posted October 20, 2003 http://www.htmlcodetutorial.com/linking/li...famsupp_71.html ^ check that for clarification Quote Link to comment Share on other sites More sharing options...
-Rage- Posted October 20, 2003 Share Posted October 20, 2003 What he said. Quote Link to comment Share on other sites More sharing options...
yoink Posted October 20, 2003 Share Posted October 20, 2003 yeah or if your using dreamweaver an easy one is just to make your link, set the target as _blank, and use the behavior panel to set the size of the window. Thats a way to do all that fancy schmancy javascripting with a few clicks of the button.;) or.... What he said. Quote Link to comment Share on other sites More sharing options...
Pinup Posted October 20, 2003 Author Share Posted October 20, 2003 Originally posted by Kilo7- the normal 'new window' <a href="http://blah.blah" target="_blank"> using java scripts to set the size... <SCRIPT TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=400,height=200,scrollbars=yes'); return false; } //--> </SCRIPT> there you go. -does this go in <body> or <head> ? -can't i have popup set automatically to the size of the picture within it ? anyway <thanks> Kilo7- </thanks> Quote Link to comment Share on other sites More sharing options...
Guest Posted October 20, 2003 Share Posted October 20, 2003 if the window poping up has the same size as the image you're set. and without a scroll bar it will work smoothly. And you brobably want it in the body on one of the first lines. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.