This has to be the worst code I have ever written...
It's making me SO angry.
Please, please, tell me what is wrong with this page.
The alert box continually comes up "null", which is very very incorrect.
I have look at it for an hour and a half already...
and I can't for the life of me tell what the heck is wrong.
http://www.alexwait.com/NortonvilleandWinchester/index2.html
There's the page uploaded.
Thanks for any help! I am desperate!
It's making me SO angry.
Please, please, tell me what is wrong with this page.
The alert box continually comes up "null", which is very very incorrect.
I have look at it for an hour and a half already...
and I can't for the life of me tell what the heck is wrong.
Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<title>Ticker Version 2.0</title>
<head>
<script type="text/Javascript">
var myBox = document.getElementById("tickerBox");
var tickerFrame = document.getElementById("mainDiv");
//var mytextNode = document.CreateTextNode("child this is");
//myBox.timer = setInterval(setTickerBoxText,"20");
//myBox.appendChild(textNode);
function setTickerBoxText(textValue)
{
alert(tickerFrame);
}
</script>
<style type="text/CSS">
#mainDiv
{
position: absolute;
top: 50px;
left: 50px;
width: 500px;
height: 400px;
background-color: rgb(201,200,100);
}
</style>
</head>
<body onLoad="setTickerBoxText('alex')">
<div id="mainDiv" onMouseOver="setTickerBoxText('a')">
</div>
http://www.alexwait.com/NortonvilleandWinchester/index2.html
There's the page uploaded.
Thanks for any help! I am desperate!