![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Simple question: how better set font color in script? |
|
document.write(' style="background-color: '+document.bgColor+'; color: '+document.body.text+'; font-family: verdana; font-size: '+ts_fontsize+'; font-weight:normal; border: medium none" onfocus="blur()">') |
#3
| |||
| |||
|
|
Scripsit mistral: Simple question: how better set font color in script? This group discusses style sheets, not scripts. There's a connection of course, but this seems to be well on the scripting side; try comp.lang.javascript if you can't find the answer in the JavaScript tutorials and references that you normally use or in the FAQs. document.write(' style="background-color: '+document.bgColor+'; color: '+document.body.text+'; font-family: verdana; font-size: '+ts_fontsize+'; font-weight:normal; border: medium none" onfocus="blur()">') You seem to use the very old methods of changing a document via scripting; the modern approach uses the W3C DOM and not document.write(). But if you keep using the dated approach, generating HTML markup that contains a style sheet embedded into an attribute, then you have a purely CSS question indeed, though a very trivial one: how to set font color in _CSS_. The answer is color: black; or color: #000; or color: #000000; to mention the most commonly used variants. Check CSS tutorials for more details. -- Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/ ----------- |
#4
| |||
| |||
|
|
Simple question: how better set font color in script? |
#5
| |||
| |||
|
|
OK, I forget about that script.. Here a new code that fully comply all HTML/CSS standards. |
|
What I want to correct - in fact, it consists of two scripts, that is not convenient. I want join all in one script. I need also repeat typewriter(set loop function). |
|
To remove background and border, it seems, i just need remove border, padding, background attributes from div. |
![]() |
| Thread Tools | |
| Display Modes | |
| |