DanielMorley
04-25-2007, 01:46 PM
I am trying to get a marque loop to work on a layer. This program generates dynamic characters however when I put a Marque loop on it. The program fails. :)
<html>
<head>
<title>Accuator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="30" >
<HEAD>
<SCRIPT language="JavaScript">
<!--
if (document.images)
{
pic1on= new Image(125,167);
pic1on.src="images/accuatorII.gif";
pic1off= new Image(167,125);
pic1off.src="images/accuatorIII.gif";
}
function lightup(imgName)
{
if (document.images)
{
imgOn=eval(imgName + "on.src");
document[imgName].src= imgOn;
}
}
function turnoff(imgName)
{
if (document.images)
{
imgOff=eval(imgName + "off.src");
document[imgName].src= imgOff;
}
}
//-->
</SCRIPT>
</HEAD>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<A HREF="www.google.com" onMouseover="lightup('pic1')" onMouseout="turnoff('pic1')">
<IMG SRC="images/accuator.gif" name="pic1" width="167" height="125" border="5"></A>
<FORM name="myform">
<HTML>
<BODY onLoad="countdown();">
<div name="fred" id="fred" style="position:absolute;top:0;left:20;"></div><BR>
<MARQUEE LOOP="infinite" BGCOLOR="yellow" WIDTH="1300">:(
Scrolling text is so much fun.....I can scroll forever!
</MARQUEE>
<script>
<!--
var count=11;
function countdown(){
count--;
changelayer_content(count);
if (count>0){
Id = window.setTimeout("countdown()",1000);
}
}
function changelayer_content(counter){
msgstring="<BR><P><FONT color=orange size=14>"+counter+" not here</Font>";
if(document.layers){
//thisbrowser="NN4";
fredlayer = document.layers[0];
fredlayer.document.open();
fredlayer.document.write(msgstring);
fredlayer.document.close();
}
if(document.all){
//thisbrowser="ie"
fredlayer = document.all["fred"];
fredlayer.innerHTML=msgstring;
}
if(!document.all && document.getElementById){
//thisbrowser="NN6";
fredlayer = document.getElementById("fred");
fredlayer.innerHTML =msgstring;
}
}
// -->
</script>
</body>
</html>
<html>
<layer name=pic z-index=0 left=200 top=100>
<img src="images/accuator.gif" width=160 height=120>
</layer>
<layer name=txt z-index=1 left=200 top=100>
<font size=+4> <i> Layers-Demo </i> </font>
</layer>
</html>
</script>
</body>
</html>
<HTML>
</html>
<LAYER left="0" top="0" name="bottom">
<IMG SRC="images/dog.gif">
</LAYER>
<SELECT name="bestcolor">
<OPTION SELECTED>blue
<OPTION>red
<OPTION>black
<OPTION>green
<OPTION>polka dots!
</SELECT>
</body>
</html>
<html>
<head>
<title>Accuator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="30" >
<HEAD>
<SCRIPT language="JavaScript">
<!--
if (document.images)
{
pic1on= new Image(125,167);
pic1on.src="images/accuatorII.gif";
pic1off= new Image(167,125);
pic1off.src="images/accuatorIII.gif";
}
function lightup(imgName)
{
if (document.images)
{
imgOn=eval(imgName + "on.src");
document[imgName].src= imgOn;
}
}
function turnoff(imgName)
{
if (document.images)
{
imgOff=eval(imgName + "off.src");
document[imgName].src= imgOff;
}
}
//-->
</SCRIPT>
</HEAD>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<A HREF="www.google.com" onMouseover="lightup('pic1')" onMouseout="turnoff('pic1')">
<IMG SRC="images/accuator.gif" name="pic1" width="167" height="125" border="5"></A>
<FORM name="myform">
<HTML>
<BODY onLoad="countdown();">
<div name="fred" id="fred" style="position:absolute;top:0;left:20;"></div><BR>
<MARQUEE LOOP="infinite" BGCOLOR="yellow" WIDTH="1300">:(
Scrolling text is so much fun.....I can scroll forever!
</MARQUEE>
<script>
<!--
var count=11;
function countdown(){
count--;
changelayer_content(count);
if (count>0){
Id = window.setTimeout("countdown()",1000);
}
}
function changelayer_content(counter){
msgstring="<BR><P><FONT color=orange size=14>"+counter+" not here</Font>";
if(document.layers){
//thisbrowser="NN4";
fredlayer = document.layers[0];
fredlayer.document.open();
fredlayer.document.write(msgstring);
fredlayer.document.close();
}
if(document.all){
//thisbrowser="ie"
fredlayer = document.all["fred"];
fredlayer.innerHTML=msgstring;
}
if(!document.all && document.getElementById){
//thisbrowser="NN6";
fredlayer = document.getElementById("fred");
fredlayer.innerHTML =msgstring;
}
}
// -->
</script>
</body>
</html>
<html>
<layer name=pic z-index=0 left=200 top=100>
<img src="images/accuator.gif" width=160 height=120>
</layer>
<layer name=txt z-index=1 left=200 top=100>
<font size=+4> <i> Layers-Demo </i> </font>
</layer>
</html>
</script>
</body>
</html>
<HTML>
</html>
<LAYER left="0" top="0" name="bottom">
<IMG SRC="images/dog.gif">
</LAYER>
<SELECT name="bestcolor">
<OPTION SELECTED>blue
<OPTION>red
<OPTION>black
<OPTION>green
<OPTION>polka dots!
</SELECT>
</body>
</html>