|
Tailslide -> RE: Script for day/date differs in different browsers (4/15/2008 2:42:18)
|
Well not all of us here are Front Page users so - let us have a link to the site and we'll check it out for you. Are you talking about Safari on the PC or on the Mac? There are several possible issues according to this site: http://blueclock.wordpress.com/2007/06/13/safari-3-for-windows-doesnt-display-any-text/ Mainly to do with people using non-websafe fonts. The other issue is that if the problem is just happening in the PC version - it's still a beta - check if it's happening on the mac version as that would be more serious. As far as the date script goes - This one works fine in all browsers: <script type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write(dayarray[day]+" "+montharray[month]+" "+daym+" "+year+"")
</script> I stick it in an external js file and just have <script type="text/javascript" src="scripts/date.js"></script> in the page to reduce clutter.
|
|
|
|