Of course, if displays nothing. You have no HTML code between the <body> and </body> tags. That's obvious.
What the problem looks like to me is that you have the document.write function that you have will not print anything since it is hanging in the <head> section without a function. Also, you have no real text between your <DIV></DIV> tags.
You need a javascript function wrapped around the your document.write method and you need to call that function with an event handler.
Try this in your HTML:
<body onLoad="DisplayDIV()">
</body>
In your Javascript, try:
function DisplayDivs() {
document.write( "<div id='lyr' style:'position:absolute;top:90px;left:10px;width: 200px;height:10px;z-index:10;background-color:black'></DIV>")
}
I tried it in my browser and it works 
Bruce
|