This problem is really getting on my nerves.
I'm working on a project where I have to have a scrolling message appear in a form text box. Before, I could see the srolling message ok without problems but now, I'm getting errors:
This is the
JS code:
Code:
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--Hide from old browsers
var scrollMsg = "Mortgage rates are at their LOWEST"
var msgSpace = "--- ---"
var beginPos = 0
function scrollingMsg() {
document.msgForm.scrollingMsg.value =
scrollMsg.substring(beginPos,scrollMsg.length)+msgSpace+scrollMsg.substring(0,beginPos)
beginPos = beginPos + 1
if (beginPos > scrollMsg.length) {
beginPos = 0
}
window.setTimeout("scrollingMsg()",200)
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="scrollingMsg()">
The error I am getting is as follows:
Error: document.msgForm.scrollingMsg has no properties
Source File: file:///C:/4693-0/home.htm
Line: 11
I should note that I am testing the page using Firefox
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Welcome to the
New Age
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.
Most likely using
FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator
Welcome to the
New Age