navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Script for day/date differs in different browsers

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Script for day/date differs in different browsers
Page: [1]
 
brobi

 

Posts: 27
Joined: 3/13/2008
Status: offline

 
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

 

Posts: 5774
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
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.



_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to brobi)
jaybee

 

Posts: 13785
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to brobi)
brobi

 

Posts: 27
Joined: 3/13/2008
Status: offline

 
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

(in reply to Tailslide)
brobi

 

Posts: 27
Joined: 3/13/2008
Status: offline

 
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

(in reply to jaybee)
Tailslide

 

Posts: 5774
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
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...

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to brobi)
womble

 

Posts: 5445
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
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. :)


_____________________________

~~ "A cruel god ain't no god at all" ~~
:)

(in reply to brobi)
brobi

 

Posts: 27
Joined: 3/13/2008
Status: offline

 
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

(in reply to Tailslide)
Tailslide

 

Posts: 5774
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Script for day/date differs in different browsers - 4/16/2008 11:03:22   
can't get it using any browser.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to brobi)
brobi

 

Posts: 27
Joined: 3/13/2008
Status: offline

 
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

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Script for day/date differs in different browsers
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts