localendar Forums Homepage


Print at Aug 27, 2025, 1:30:44 PM

Posted by support at May 30, 2008, 12:08:08 AM
Re: One week look ahead... how do I do that on the W1 Style
How's about something like this?

<html>
<body>

<script type="text/javascript">
var today = new Date();

today.setDate(today.getDate()+7)

var theMonth = today.getMonth()+1;
var theDay = today.getDate();
var theYear = today.getYear();
var thestring =
"http://www.localendar.com/public/travistigerband?include=Y&style=W1&start_date="+(theMonth + "/" + theDay + "/" + theYear);

function staticLoadScript(url)
{
document.write('<script src="', url, '" type="text/javascript"><\/script>');
}

staticLoadScript(thestring);

</script>

</body>
</html>

----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news

Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us