PDA

View Full Version : Popup. Wrong section i know, so kill me "/



Recursion
27-01-2007, 08:31 PM
Hi,

I have a PHP Page called Shiney Stuff which will have loads of links to cool stuff, i want each link to come in a pop up, so i want one of the links to open up, be non resizable, have no tool bars and is 400px x 300px. Please could someone give me the code for this?

Thanks!
Tom

MrChaz
27-01-2007, 08:35 PM
Gooooooooogle.

Couldnt you just use a Js pop up script?

Recursion
27-01-2007, 09:59 PM
I dunno how to use JS or how to write it "/

MrChaz
27-01-2007, 10:05 PM
This in the Head Tags


<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width =150');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>



Then this, where you want the popup.


<a href="popupex.html" onclick="return popitup('popupex.html')"
>Link to popup</a>

Recursion
27-01-2007, 10:10 PM
is that head javascript all ready, i can just put it in and it will work along with the link to the file?

MrChaz
27-01-2007, 10:15 PM
Umm yeah i think so.

Like, thats all you have to do yes.

Recursion
27-01-2007, 10:46 PM
PERFECT!! Thanks!! +Rep :)

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