I'm trying to get a simple simple simple function to execute inside a div tag and i can't get the div tag to do what it normally should do... i've searched the web for answers with no luck... here is the relevent code:
the div shows the text... but it doesn't go where it should go... it just hangs at the top of the page... my other code free divs work fine though
please help
Code:
<style ...
div.spec
{
border: none;
position:absolute;
top: 300px;
left: 75px;
width:492px;
height:auto;
text-align: center;
)
</style>
....
<script ...
function showSpecial()
{
document.write("Today's Special is " + specials);
}
-->
</script>
..........
<body ...
<div class="spec">
<script type="text/javascript">
<!--
showSpecial();
-->
</script>
</div>
please help
Comment