PDA

View Full Version : Pop Up Windows?


Spyke
02-03-2005, 05:08 AM
Hi,

I'm trying to create a pop up window within vbulletin. I know how to create a basic pop up window but i'm not really sure how to incorperate it into vBulletin.

I know that usually the javascript code goes in the header of a HTML page but since there's no header in a vbulletin template i'm not really sure on how to go about it.

Any help would be appreciated.

Thanks.

Dean C
02-03-2005, 05:28 AM
Are you trying to specifically set the height and width of this popup window?

Spyke
02-03-2005, 05:45 AM
yes, this is what i have.


<SCRIPT language="JavaScript"><!--

function popup()
{
PopUp = window.open("page.html", "PopUp", "location=no,width=320,height=200");
}

//--></SCRIPT>

<A HREF="#" onClick="popup()">text</A>


I just dont know how to work it into a template becuase the funtion is supposed to go inbetween a <HEAD> tag.

N8
02-03-2005, 05:48 AM
Use your header include template.

You can usually also just add <head> / </head> tags inside <body> tags if you need to.

Spyke
02-03-2005, 05:49 AM
hmm, thanks, i will try it out :)