D
DavidB
Hi all
I have a script that works perfectly in IE but not in FF. I am sure
that the problem is easy to resolve, but I seem to be too dumb to
figure it out.
<html>
<head>
<script language="javascript">
var msgIX = 0;
var msgs = [
" Notices and Messages",
"Mad Scientist Camps are July 22 and July 29",
" Notices and Messages",
"Summer Beach Blast is August 19 ",
" Notices and Messages",
"Family Movie Night is August 25 ",
" Notices and Messages",
"Pub Night and Quiz is October 14 or 21 (TBD) ",
" Notices and Messages",
"Pot Luck Dinner is November--Exact Date TBD ",
" Notices and Messages",
"-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"];
function scrollMessages(milliseconds) {
window.setInterval ("displayMessage()", milliseconds);
}
function displayMessage() {
if (document.getElementByID != null) {
var heading = document.getElementById("scrollme");
heading.firstChild.nodeValue = msgs[msgIX];
}else{
if(navigator.appName == "Microsoft Internet Explorer") {
var heading = document.all.item("scrollme");
heading.innerText = msgs[msgIX];
}
}
++msgIX;
msgIX %= msgs.length;
}
</script>
</head>
<body onload="scrollMessages(2000)">
<p id="scrollme">...</p>
</body>
</html>
Any assistance would be greatly appreciated. I was somehow volunteered to
create a community website, and this is one of the requested features.
DB
I have a script that works perfectly in IE but not in FF. I am sure
that the problem is easy to resolve, but I seem to be too dumb to
figure it out.
<html>
<head>
<script language="javascript">
var msgIX = 0;
var msgs = [
" Notices and Messages",
"Mad Scientist Camps are July 22 and July 29",
" Notices and Messages",
"Summer Beach Blast is August 19 ",
" Notices and Messages",
"Family Movie Night is August 25 ",
" Notices and Messages",
"Pub Night and Quiz is October 14 or 21 (TBD) ",
" Notices and Messages",
"Pot Luck Dinner is November--Exact Date TBD ",
" Notices and Messages",
"-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"];
function scrollMessages(milliseconds) {
window.setInterval ("displayMessage()", milliseconds);
}
function displayMessage() {
if (document.getElementByID != null) {
var heading = document.getElementById("scrollme");
heading.firstChild.nodeValue = msgs[msgIX];
}else{
if(navigator.appName == "Microsoft Internet Explorer") {
var heading = document.all.item("scrollme");
heading.innerText = msgs[msgIX];
}
}
++msgIX;
msgIX %= msgs.length;
}
</script>
</head>
<body onload="scrollMessages(2000)">
<p id="scrollme">...</p>
</body>
</html>
Any assistance would be greatly appreciated. I was somehow volunteered to
create a community website, and this is one of the requested features.
DB