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