Dragonfish
Programmer
When the JavaScript-funtion calls "Update" then the text - This is a Test - is writen but not formatted with class='style_Mannschaften'.
function Update()
{
document.write("<p class='style_Mannschaften'>This is a Test</p>"
;
}
The CSS line looks like this:
.style_Mannschaften { border: none; position: absolute; top: 100px; left: 570px; width: 250pt; }
If I simply write This is a Test in the HTML document using the style sheet then it works
So my problem is how to integrate CSS into Javascript. Other HTML tags - as we all Know - work in JavaScript. Later when this works I´d like to know how to integrate PHP-statements into JavaScript to access a MySQL Database but I have´nt found any interdeciplinary literature in WWW. Can anybody help
Thanks - David in Germany
function Update()
{
document.write("<p class='style_Mannschaften'>This is a Test</p>"
}
The CSS line looks like this:
.style_Mannschaften { border: none; position: absolute; top: 100px; left: 570px; width: 250pt; }
If I simply write This is a Test in the HTML document using the style sheet then it works
So my problem is how to integrate CSS into Javascript. Other HTML tags - as we all Know - work in JavaScript. Later when this works I´d like to know how to integrate PHP-statements into JavaScript to access a MySQL Database but I have´nt found any interdeciplinary literature in WWW. Can anybody help
Thanks - David in Germany