Jump to content
Sign in to follow this  
Prodgers

Open link in new window.

Recommended Posts

Hi guys, i'm new here.When i open a link in a new window, in this case an image as the link, then how do i control the height and width of the new window? or cant i do this with html?Any help is good help. Thanks :)

Share this post


Link to post
Share on other sites

<img src="http://image_link" alt="..." onclick="window.open('http://image_link','my_new_window','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=820, height=553, align=left, valign=top')" />An example that I used on my pages...

Share this post


Link to post
Share on other sites

Hi, and welcome to the boards. There are a couple options.a.) opening a new window and then resize it when it opens (yuck)b.) use the following java script:<script language="javascript" type="text/javascript"><!-- //////////////////////// popup window ////////////////////////var features="status=no,scrollbars=yes,resizable=yes,menubar=yes,width=650,height=445,top=25,left=25"; function Info(x){ //window.name = "HelpWindow"; var openit = window.open(x, "HelpWindow", features);}--></script><a href="java script: void(); onclick="java script: Info('pagename.htm');">text/image</a><br>You can change the properties of the popup/new window in the "features" variable.Good Luck.

Share this post


Link to post
Share on other sites

sweet - btw the way, I have a blast at http://www.chicagoindoorracing.com.the only thing I would suggest, is to wrap your images in an HREF tag and move your ONCLICK attribute out from the image and into the HREF. Right now, there is no way to know that the helmet images are links - now little hand appears.of course, you could add this.cursor='hand' in a onmouseover attribute and compliment that with the opposite on the onmouseout attribute - but teh HREF seems a little easier to me.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...