Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Pinup

Pinup needs help from the html people

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 ?

Share this post


Link to post
Share on other sites
Guest

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.

Share this post


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

Share this post


Link to post
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>

Share this post


Link to post
Share on other sites
Guest

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.

Share this post


Link to post
Share on other sites

Register for a 12ozProphet forum account or sign in to comment

You need to be a forum member in order to comment. Forum accounts are separate from shop accounts.

Create an account

Register to become a 12ozProphet forum member.

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×