Jump to content

Pinup needs help from the html people


Pinup

Recommended Posts

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 ?

Link to comment
Share on other sites

This forum is supported by the 12ozProphet Shop, so go buy a shirt and help support!
This forum is brought to you by the 12ozProphet Shop.
This forum is brought to you by the 12oz Shop.

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
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.

×
×
  • Create New...