Script for day/date differs in different browsers (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


brobi -> Script for day/date differs in different browsers (4/14/2008 22:50:06)

Hi great group!
I have my new site published....and it looks ok, except for 2 little oddities.
1. In Safari browser, only hyperlinks show up on one of the pages; all the text is invisible.
Odd, but I don't suppose many Front Page users are using Safari, so I'm just putting that out there as a "Hmmmm."
2. I used a script (#17) that I got here:

http://www.seoconsultants.com/frontpage/date-time-examples.asp
for the day/date display on the home page.
In IE, the year reads 2008.
In Firefox, the year is "108." (which is even BEFORE Al Gore invented the WWW, so I KNOW that's wrong).

Any idea how to fix that, or should I just leave well enough alone?
:)

Thanks,
brenda




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.





jaybee -> RE: Script for day/date differs in different browsers (4/15/2008 9:15:47)

quote:

1. In Safari browser, only hyperlinks show up on one of the pages; all the text is invisible.
Odd, but I don't suppose many Front Page users are using Safari, so I'm just putting that out there as a "Hmmmm."


It's visitors you need to worry about not FP users. Most Mac users surf with Safari so you're blowing a lot of visitors out of the water. We need a URL so we can check the page out.




brobi -> RE: Script for day/date differs in different browsers (4/15/2008 12:27:27)

Thanks for both replies....
I just switched hosts last night, so the site won't be visible to anyone until sometime tonight, probably tomorrow; pending the DNS change being completed.

The services page was messed up in Safari for Mac. Thanks for clarifying that: I'd forgotten there was a PC Version.
I'm currently using a MacbookPro, with Win XP running via "Fusions," and sometimes switching between PC and Mac
adds a bit of complexity.

I did query my then hosting service about why text would not be visible (it's a standard FP "template," with the same font throughout), and the response was that it looked ok to them (but they didn't reply as to what browser they used, etc: One of the reasons for the switch---sort of confusing support).

ANYway, I appreciate your responses. I will try the new script after I see the site live again....Perhaps the "Services" page will have fixed itself? That would make my day!

www.rninsights.com
Brenda




brobi -> RE: Script for day/date differs in different browsers (4/16/2008 0:39:17)


quote:

ORIGINAL: jaybee

quote:

1. In Safari browser, only hyperlinks show up on one of the pages; all the text is invisible.
Odd, but I don't suppose many Front Page users are using Safari, so I'm just putting that out there as a "Hmmmm."


It's visitors you need to worry about not FP users. Most Mac users surf with Safari so you're blowing a lot of visitors out of the water. We need a URL so we can check the page out.


Hi again
Hosting on new server now, so site is visible.
Safari still doesn't show but a couple of hyperlinks at http://www.rninsights.com/services.htm
Any ideas?

I did insert the new day/date into my copy of the site: Haven't republished yet, though.


THANKS
Brenda




Tailslide -> RE: Script for day/date differs in different browsers (4/16/2008 2:14:12)

I'm getting a "file not found" page for that link...




womble -> RE: Script for day/date differs in different browsers (4/16/2008 10:00:36)


quote:

ORIGINAL: brobi
2. I used a script (#17) that I got here:

http://www.seoconsultants.com/frontpage/date-time-examples.asp
for the day/date display on the home page.
In IE, the year reads 2008.
In Firefox, the year is "108." (which is even BEFORE Al Gore invented the WWW, so I KNOW that's wrong).



Hmmmm...that's interesting. I used to get an error like that on one of my old sites, but that was due to a particular way the date year was formatted using a Javascript script I was using to generate the date (I only found out what was causing it a couple of years later when I did a Javascript course), but I've not come across it with a FP timestamp. Most odd. [&:]




brobi -> RE: Script for day/date differs in different browsers (4/16/2008 10:59:29)


quote:

ORIGINAL: Tailslide

I'm getting a "file not found" page for that link...

Were you using Safari?
Any suggestions?
Should I just republish that page?
It was in the navigation last time I checked!

Brenda




Tailslide -> RE: Script for day/date differs in different browsers (4/16/2008 11:03:22)

can't get it using any browser.




brobi -> RE: Script for day/date differs in different browsers (4/16/2008 12:58:39)


quote:

ORIGINAL: Tailslide

can't get it using any browser.

Wow, that's weird.
It looks fine in Firefox, Camino (for Mac), and IE. Just not in Safari.

Guess I'd better ask my host what's up......
Thanks for checking.


Brenda




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125