This is a discussion on "What's my damage?" within the JavaScript Forum section. This forum, and the thread "What's my damage? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
What's my damage?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
What's my damage?
Total brain breakdown.
I have a simple autodate, one for the date then I added the day of the week. Inside the html head I have:
the two .js pages are this old horse I copied:
Hate being a noob. |
|
|
|
#2
|
||||
|
||||
|
Re: What's my damage?
Mason,
Where exactly are you trying to display it?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
Re: What's my damage?
Are you in a position to use php? The date function will return the date already formatted according to the string you give it and then you just display it where you want it.
|
|
#4
|
||||
|
||||
|
Re: What's my damage?
Rob, I want to display right below the logo -- this is working fine, I'm just getting an extra display (of the date only, not the day) above the body.
Yes Geoff, I'm actually in the process of learning php/mysql now. But still, I want to understand where I'm going wrong with this simple js script, although afaik it's a problem of referencing external scripts rather than the code. (Even though I will almost certainly end up doing it with php -- when I can write it myself -- since there are people who disable js on their browser.) I actually woke up last night with the thought, why don't I try putting both scripts in the same .js file? Off to try it now. Thx for the responses. |
|
#5
|
|||
|
|||
|
Re: What's my damage?
This is all you need php wise.
Having a ponder over your existing code.. Might be getting ahead of the game here but redering in Firefox completely different to IE. |
|
#6
|
|||
|
|||
|
Re: What's my damage?
Ok. Got it. Seperate from where you call the date javascript inside that div, you also call the scripts on lines 32 & 33 before you get to the <body> tag. It's these two lines that are responsible for the date at the top of the page. |
|
#7
|
||||
|
||||
|
Re: What's my damage?
Hmmz, I just took the reference completely out of the <head> and everything is fine. I still don't get it though.
Are you saying FF is just different, or is broken? It was easier to lay it out differently in FF and gives me a second view to ponder PS if you want to see the current version, have a look at my sandbox in IE, Daily Health Report Last edited by masonbarge; May 24th, 2006 at 13:51. |
|
#8
|
|||
|
|||
|
Re: What's my damage?
On the contrary, you should be designing to have it working as you want it in Firefox and then tweak for IE. Firefox is the more standards compliant browser so should be your primary design goal. I notice that you are coding to html 4.01 so IE is going to be in quirks mode. Just had a look at your latest link. Date still showing at top in Firefox and IE. Firefox layout all over the place. |
|
#9
|
||||
|
||||
|
Re: What's my damage?
Mason, I would personally be designing for xhtml 1.0 transitional or strict.
Hell, if this site in all it's vastness can do it....
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#10
|
||||
|
||||
|
Re: What's my damage?
That link wasn't for the home page; it was just a test page I uploaded to check out whether some ideas would render the same on the server. I deleted it; really sorry I ever linked it. The home page is at Daily Health Report, it should be in good shape at least on IE and FF.
Thx for the tips, I'll put redoing it in xhtml on my list. I had no idea it would turn IE quirks mode on, sigh. I don't agree about FF being more W3c compliant. The biggest sheer pain in the neck for me is FF's inexplicable inclusion of padding, margins and border in the box size. I think IE reads flow better, too. FF is a better browser, especially the gazillion great add-ons available, but IMHO they both suck for standards compliance. Thx to both of you for the comments. Really has been a lot of help. |
|
#11
|
|||
|
|||
|
Re: What's my damage?
I don't know which version of Firefox you are using but the layout in Firefox as against IE is completely different. I'm currently using 1.5.0.3 Both are broken in many different ways. The way Firefox handles the box model is considered to be, by most, as the way that W3C intended hence its the same in Opera, Safari, etc. Although I have seen it argued that IE's way is more logical. |
![]() |
| Tags |
| damage |
| Thread Tools | |
|
|