|
| quote: | Originally posted by Turbonium
In the following script:
What the hell is "div"? btw this is for a Javascript realtime clock thing (the code works, but the HTML output is screwed). It displays it in a stupid cell thing, I want it to be as text. I tried screwing around with the HTML above, but to no avail. Changing the font style and color, etc., has no effect at all. |
Dude, you need to seriously read up on the HTML standard before asking questions. You can't write in a language you don't understand. A div is just an invisible container, a separate body containing its own HTML code.
It displays it in a "cell" because you're putting it into an input box (hence the INPUT tag), i.e. a text box. If you want to do it another way without writing IE-specific code (do not use iframes, innerHTML properties, and so on), you'll have to write code that's a little more complex. I wouldn't recommend this, you're better off just stylizing the text box.
Why would you want a clock anyway? Most people have clocks on their computers already, don't put extraneous stuff on the page for show.
___________________
My party schedule:
2009-02-21 - DJ Attention @ I'm So Popular
2009-06-18 - DJ Annoying @ People Need To Know Where I'll Be
2012-11-32 - DJ Insufferable ɸ Or At Least the Stalkers I Complain About
2048-06-66 - Spastic & Whocares ¶ Although I'm Actually Flattered
9999-45-81 - Tweaker Gimp ☼ I Probably Won't Even Go To This But I Have To Make Sure I Fill Up All The Available Space Here
|