PDA

View Full Version : N00b Question



SimplyTech
22-12-2006, 06:34 PM
This is probably a question but how do you create a link that opens up another page in a new windows to a certain size much like bobbanet.co.uk

RNelson
22-12-2006, 06:36 PM
target="_new" that what you mean?


This is probably a question but how do you create a link that opens up another page in a new windows to a certain size much like bobbanet.co.uk

SimplyTech
22-12-2006, 06:38 PM
target="_new" that what you mean?
Yeh but does that open it up to a 'pixel by pixel' size so you cant maxamise it?

Stitch
22-12-2006, 06:38 PM
i do target="_blank" =]
i dunno about the size though try adding in height="height" and width="width" but replacing the words in the "'s with the sizes.

?php?
22-12-2006, 06:39 PM
You mean a popup?

Mentor
22-12-2006, 06:40 PM
Youd need to use ether a popup or some resizeing code in the window itself, in order to open up at a specific size.

:Blob
22-12-2006, 06:41 PM
Try this:

Put this in the header:

<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=WIDTH HERE,height=HEIGHT HERE');");
}
</script>

And use this link:
<A HREF="javascript:popUp('FILENAMEHERE')">Open the Popup Window</A>

There you go.

SimplyTech
22-12-2006, 06:51 PM
Ill try it in a sec, thanks.

Moh
23-12-2006, 12:14 PM
also, Search around www.dynamicdrive.com

They have a few useful scripts :)

Tekn
23-12-2006, 12:15 PM
also, Search around www.dynamicdrive.com (http://www.dynamicdrive.com)

They have a few useful scripts :)
dhtml won't do it, it's js.

Moh
23-12-2006, 12:27 PM
dhtml won't do it, it's js.
I got my pop up from there :S

Tekn
23-12-2006, 12:29 PM
I got my pop up from there :S
direct link ;)

Want to hide these adverts? Register an account for free!