Hi, I've been playing around with components and modules in articles on joomla to get the things doing just what I want... and to finish it off I either need to get this javascript to work with the php (which probably won't because of server side/client side differences), or change it into php that does the same job...
Quote:
<script language = 'javascript'>
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var currentyear=year
var ParaMonth=month+1
if (ParaMonth>12)
{var currentyear=year+1
ParaMonth=ParaMonth-12}
var parameter =("&month="+ParaMonth+"&year="+currentyear)//-->
</script>
|
parameter is what I want to add to the end of a url link on the page... so that the url link contains &month=[thismonth+1]&year=[currentyear], having calculated the year and month correctly from today's date without needing me to manually update several pages.
I'd appreciate any help I can get, thanks!  
|