I have a html page wherein i want to the date. If I open the html file with any browser it's displaying correctly. But when I put it in server it's not working.
My script goes like this
<P>Payment is due on <script type="text/javascript">
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)
//-->
</script>.</P>
I have a html page wherein i want to the date. If I open the html file with any browser it's displaying correctly. But when I put it in server it's not working.
My script goes like this
<P>Payment is due on <script type="text/javascript">
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)
//-->
</script>.</P>
I am calling a loadScroll() function which is there in myscroll.js from a jsp. I want to scroll a message. It's not working for Internet Explorer.
The js file contains
function loadScroll(sessionid)
{
document.getElementById("myhome-scroll").innerHTML= "<table align='center'><tr><td width='160%' align='center'><marquee behavior='scroll' direction='left' onmouseover='this.stop();' onmouseout='this.start();' scrollamount='2'><font color='#ff0000'><s
trong>I am being scrolled here.</strong></font></marquee></td></tr></table>";
}