View Single Post
Old 28-09-2004, 11:02   #4
Bifta
Inactive
 
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Need some javascript help

Quote:
Originally Posted by Caspar
Basic syntax is as below:

Code:
<SCRIPT LANGUAGE="JavaScript">
today = new Date();
day = today.getDay();

if (day == "2") {
	document.write ("Launch popup")
}	
else {
	document.write ("don't launch popup")
}
</script>
So I have to stick the whole of the extra javascript and HTML in document.writes? Parsing that is going to be a nightmare .. think I'll tell them it can't be done with JS and coax them into letting me do it with ASP

The popup isn't actually a new window as such, it's a div and it's part of the page so it can't appear in a new window.
Bifta is offline   Reply With Quote