PDA

View Full Version : Tutorial On Pop Up Websites..



lil-rarez
16-04-2005, 08:35 PM
Right, as we all know pop up webbies are fun in a sense. So herees a script on how to insert a pop up for either a website or just for a piece of infomation to appear in a pop up.

Copy this code into your html doccument at the top.
<HEAD>



<SCRIPT LANGUAGE="JavaScript">



<!-- Begin

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=0,width=600,height=600,left = 212,top = 84');");
}
// End -->
</script>

Next Use this code to find the url. insert where you want the hyperlink.

<A HREF="javascript:popUp('Url Here')">Text</A>

Replace url here with the doccument you want to pop up.
Replace Text with the text you want to show up.
Change The Width And Hieght Accordingly to pop up size

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