Click to See Complete Forum and Search --> : Slide Show Help!


jamestmfbong
02-06-2006, 01:27 PM
I have this slide show, and I want the thing to stop when i put the mouse over it. Well here's the whole source code....






<html>


<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<p>&nbsp;</p>
<SCRIPT type=text/javascript>
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Robert Suppenbach ::webdevel.deezhosts.net */

var toScroll=new Array()
var ie=document.all
var dom=document.getElementById
var firstNews_obj;
var secondNews_obj;

function newsScroll(name){
var c=this; c.name=name; c.mc=0; c.i=2;
return this;
}

newsScroll.prototype.addItem = function(text,link,font,fontSize,fontStyle){
var c = this;
if (link !=''){
if (font != '')
toScroll[c.mc]="<a href='"+link+"'><font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font></a>";
else
toScroll[c.mc]="<a href='"+link+"'><font Class='"+fontStyle+"'>"+text+"</font></a>";
}
else {
if (font != '')
toScroll[c.mc]="<font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font>";
else
toScroll[c.mc]="<font Class='"+fontStyle+"'>"+text+"</font>";
}
c.mc++;
}

newsScroll.prototype.construct = function(){
var c = this; theWidth = c.scrollerwidth; theHeight=c.scrollerheight; thebgColor = c.scrollerbgcolor; theBackground =c.scrollerbackground; theDelay=c.scrollerdelay;
scroll_obj=eval(c.name);
if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+theWidth+';height:'+theHeight+';overflow:hidden;background-color:'+thebgColor+' ;background-image:url('+theBackground+')">')
document.writeln('<div style="position:absolute;width:'+theWidth+';height:'+theHeight+';clip:rect(0 '+theWidth+' '+theHeight+' 0);left:0;top:0">')
document.writeln('<div id="firstNews" style="position:absolute;width:'+theWidth+';left:0;top:1">')
document.write(toScroll[0])
document.writeln('</div>')
document.writeln('<div id="secondNews" style="position:absolute;width:'+theWidth+';left:0;top:0;visibility:hidden">')
document.write(toScroll[dyndetermine=(toScroll.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
}

newsScroll.prototype.move = function(whichdiv){
var c = this; theDelay = c.scrollerdelay; theHeight = c.scrollerheight;
scroll_obj=eval(c.name);
tdiv=eval(whichdiv)

if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("scroll_obj.move(tdiv)",theDelay)
setTimeout("scroll_obj.move2(secondNews_obj)",theDelay)
//document.write('Got Milk?')
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("scroll_obj.move(tdiv)",50)
}
else {
tdiv.style.top=parseInt(theHeight)+"px"
tdiv.innerHTML=toScroll[c.i]
if (c.i==toScroll.length-1)
c.i=0
else
c.i++
}
}

newsScroll.prototype.move2 = function(whichdiv){
var c = this; theDelay = c.scrollerdelay; theHeight= c.scrollerheight;
scroll_obj=eval(c.name);
tdiv2=eval(whichdiv)

if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("scroll_obj.move2(tdiv2)",theDelay)
setTimeout("scroll_obj.move(firstNews_obj)",theDelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("scroll_obj.move2(secondNews_obj)",50)
}
else {
tdiv2.style.top=parseInt(theHeight)+"px"
tdiv2.innerHTML=toScroll[c.i]
if (c.i==toScroll.length-1)
c.i=0
else
c.i++
}
}

newsScroll.prototype.startScroll = function(){
var c = this;
scroll_obj=eval(c.name);

if (toScroll.length >2)
c.i = 2;
else
c.i = 0;

firstNews_obj=ie? firstNews : document.getElementById("firstNews")
secondNews_obj=ie? secondNews : document.getElementById("secondNews")
setTimeout("scroll_obj.move(firstNews_obj)",c.scrollerDelay);
secondNews_obj.style.top=theHeight;
secondNews_obj.style.visibility='visible'
}
-->
</SCRIPT>

<TR>
<TD>
<DIV align=center>
<SCRIPT type=text/javascript>
<!-- Begin
theNews=new newsScroll("theNews"); //create our newsScroller object
theNews.scrollerdelay = 3000; // pausetime 3000 = 3 Seconds
theNews.scrollerwidth = 500; // the width of the box
theNews.scrollerheight = 500; // the height of the box
theNews.scrollerbgcolor = ''; // the box background color
theNews.scrollerbackground = ''; // Set to blank if you don't want to use a background image

theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/102/files/upload_small.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=101" target="_self"><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=101" target="_self"><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/100/files/song4.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/99/files/song4.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/98/files/drive_small.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=97" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=97" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=96" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=96" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=95" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=95" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=94" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=94" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/93/files/0025.wmv" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=92" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=92" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=91" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=91" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
// the next 2 lines construct the news box, and start the scroller
theNews.construct();
theNews.startScroll();
// End -->
</SCRIPT>
</table>
</table>
</table>



So I tried doing something like this!



TR>
<TD>
<DIV align=center onmouseover="theNews.startScroll();" >
<SCRIPT type=text/javascript>
<!-- Begin


...
...
...
// the next 2 lines construct the news box, and start the scroller
theNews.construct();
//theNews.startScroll();
// End -->
</SCRIPT>



but I get an error message that says "secondNews_obj.style is null or is not found"
and I just have a feeling that it's because this script declares functions in an extremely strange way like this
"newsScroll.prototype.addItem = function(text,link,font,fontSize,fontStyle){"

Selrach
02-06-2006, 01:38 PM
Well, that's not why its giving you an error...actually the way they defined thier functions in this script is perfectly normal. What the issue is is that you probably don't have a div with the id "secondNews".

jamestmfbong
02-06-2006, 01:50 PM
still no luck! after adding a layer with an id=secondNews...
same error message.
Then maybe I need to do something like onmouseover="document.theNews.startScroll();" ??
hm.. and these forums don't allow color withint html's....



<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

html&gt;


<p>&nbsp;</p>
<SCRIPT type=text/javascript>
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Robert Suppenbach ::webdevel.deezhosts.net */

var toScroll=new Array()
var ie=document.all
var dom=document.getElementById
var firstNews_obj;
var secondNews_obj;

function newsScroll(name){
var c=this; c.name=name; c.mc=0; c.i=2;
return this;
}

newsScroll.prototype.addItem = function(text,link,font,fontSize,fontStyle){
var c = this;
if (link !=''){
if (font != '')
toScroll[c.mc]="<a href='"+link+"'><font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font></a>";
else
toScroll[c.mc]="<a href='"+link+"'><font Class='"+fontStyle+"'>"+text+"</font></a>";
}
else {
if (font != '')
toScroll[c.mc]="<font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font>";
else
toScroll[c.mc]="<font Class='"+fontStyle+"'>"+text+"</font>";
}
c.mc++;
}

newsScroll.prototype.construct = function(){
var c = this; theWidth = c.scrollerwidth; theHeight=c.scrollerheight; thebgColor = c.scrollerbgcolor; theBackground =c.scrollerbackground; theDelay=c.scrollerdelay;
scroll_obj=eval(c.name);
if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+theWidth+';height:'+theHeight+';overflow:hidden;background-color:'+thebgColor+' ;background-image:url('+theBackground+')">')
document.writeln('<div style="position:absolute;width:'+theWidth+';height:'+theHeight+';clip:rect(0 '+theWidth+' '+theHeight+' 0);left:0;top:0">')
document.writeln('<div id="firstNews" style="position:absolute;width:'+theWidth+';left:0;top:1">')
document.write(toScroll[0])
document.writeln('</div>')
document.writeln('<div id="secondNews" style="position:absolute;width:'+theWidth+';left:0;top:0;visibility:hidden">')
document.write(toScroll[dyndetermine=(toScroll.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
}

newsScroll.prototype.move = function(whichdiv){
var c = this; theDelay = c.scrollerdelay; theHeight = c.scrollerheight;
scroll_obj=eval(c.name);
tdiv=eval(whichdiv)

if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("scroll_obj.move(tdiv)",theDelay)
setTimeout("scroll_obj.move2(secondNews_obj)",theDelay)
//document.write('Got Milk?')
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("scroll_obj.move(tdiv)",50)
}
else {
tdiv.style.top=parseInt(theHeight)+"px"
tdiv.innerHTML=toScroll[c.i]
if (c.i==toScroll.length-1)
c.i=0
else
c.i++
}
}

newsScroll.prototype.move2 = function(whichdiv){
var c = this; theDelay = c.scrollerdelay; theHeight= c.scrollerheight;
scroll_obj=eval(c.name);
tdiv2=eval(whichdiv)

if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("scroll_obj.move2(tdiv2)",theDelay)
setTimeout("scroll_obj.move(firstNews_obj)",theDelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("scroll_obj.move2(secondNews_obj)",50)
}
else {
tdiv2.style.top=parseInt(theHeight)+"px"
tdiv2.innerHTML=toScroll[c.i]
if (c.i==toScroll.length-1)
c.i=0
else
c.i++
}
}

newsScroll.prototype.startScroll = function(){
var c = this;
scroll_obj=eval(c.name);

if (toScroll.length >2)
c.i = 2;
else
c.i = 0;

firstNews_obj=ie? firstNews : document.getElementById("firstNews")
secondNews_obj=ie? secondNews : document.getElementById("secondNews")
setTimeout("scroll_obj.move(firstNews_obj)",c.scrollerDelay);
secondNews_obj.style.top=theHeight;
secondNews_obj.style.visibility='visible'
}
-->
</SCRIPT>

<TR>
<TD>
<DIV align=center onmouseover="theNews.startScroll();" >
<SCRIPT type=text/javascript>
<!-- Begin
theNews=new newsScroll("theNews"); //create our newsScroller object
theNews.scrollerdelay = 3000; // pausetime 3000 = 3 Seconds
theNews.scrollerwidth = 500; // the width of the box
theNews.scrollerheight = 500; // the height of the box
theNews.scrollerbgcolor = ''; // the box background color
theNews.scrollerbackground = ''; // Set to blank if you don't want to use a background image

theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/102/files/upload_small.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=101" target="_self"><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=101" target="_self"><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/100/files/song4.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/99/files/song4.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/98/files/drive_small.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=97" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=97" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=96" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=96" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=95" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=95" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=94" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=94" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/93/files/0025.wmv" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=92" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=92" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=91" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=91" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
// the next 2 lines construct the news box, and start the scroller
theNews.construct();
//theNews.startScroll();
// End -->
</SCRIPT>

<div id="secondNews" width=100 height=200 bgcolor=pink>
hello
</div>

jamestmfbong
02-07-2006, 09:33 AM
okay, I edited it in a different way and now I'm not getting any more errors, but still I am not able to stop the sliding..... Any Ideas anyone please?




<html>


<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<p>&nbsp;</p>
<SCRIPT type=text/javascript>
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Robert Suppenbach ::webdevel.deezhosts.net */

var toScroll=new Array()
var ie=document.all
var dom=document.getElementById
var firstNews_obj;
var secondNews_obj;

function newsScroll(name){
var c=this; c.name=name; c.mc=0; c.i=2;
return this;
}

newsScroll.prototype.addItem = function(text,link,font,fontSize,fontStyle){
var c = this;
if (link !=''){
if (font != '')
toScroll[c.mc]="<a href='"+link+"'><font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font></a>";
else
toScroll[c.mc]="<a href='"+link+"'><font Class='"+fontStyle+"'>"+text+"</font></a>";
}
else {
if (font != '')
toScroll[c.mc]="<font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font>";
else
toScroll[c.mc]="<font Class='"+fontStyle+"'>"+text+"</font>";
}
c.mc++;
}

newsScroll.prototype.construct = function(){
var c = this; theWidth = c.scrollerwidth; theHeight=c.scrollerheight; thebgColor = c.scrollerbgcolor; theBackground =c.scrollerbackground; theDelay=c.scrollerdelay;
scroll_obj=eval(c.name);
if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+theWidth+';height:'+theHeight+';overflow:hidden;background-color:'+thebgColor+' ;background-image:url('+theBackground+')">')
document.writeln('<div style="position:absolute;width:'+theWidth+';height:'+theHeight+';clip:rect(0 '+theWidth+' '+theHeight+' 0);left:0;top:0">')
document.writeln('<div id="firstNews" style="position:absolute;width:'+theWidth+';left:0;top:1">')
document.write(toScroll[0])
document.writeln('</div>')
document.writeln('<div id="secondNews" style="position:absolute;width:'+theWidth+';left:0;top:0;visibility:hidden">')
document.write(toScroll[dyndetermine=(toScroll.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
}

newsScroll.prototype.move = function(whichdiv){
var c = this; theDelay = c.scrollerdelay; theHeight = c.scrollerheight;
scroll_obj=eval(c.name);
tdiv=eval(whichdiv)

if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("scroll_obj.move(tdiv)",theDelay)
setTimeout("scroll_obj.move2(secondNews_obj)",theDelay)
//document.write('Got Milk?')
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("scroll_obj.move(tdiv)",50)
}
else {
tdiv.style.top=parseInt(theHeight)+"px"
tdiv.innerHTML=toScroll[c.i]
if (c.i==toScroll.length-1)
c.i=0
else
c.i++
}
}

newsScroll.prototype.move2 = function(whichdiv){
var c = this; theDelay = c.scrollerdelay; theHeight= c.scrollerheight;
scroll_obj=eval(c.name);
tdiv2=eval(whichdiv)

if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("scroll_obj.move2(tdiv2)",theDelay)
setTimeout("scroll_obj.move(firstNews_obj)",theDelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("scroll_obj.move2(secondNews_obj)",50)
}
else {
tdiv2.style.top=parseInt(theHeight)+"px"
tdiv2.innerHTML=toScroll[c.i]
if (c.i==toScroll.length-1)
c.i=0
else
c.i++
}
}

newsScroll.prototype.startScroll = function(){
var c = this;
scroll_obj=eval(c.name);

if (toScroll.length >2)
c.i = 2;
else
c.i = 0;

firstNews_obj=ie? firstNews : document.getElementById("firstNews")
secondNews_obj=ie? secondNews : document.getElementById("secondNews")
setTimeout("scroll_obj.move(firstNews_obj)",c.scrollerDelay);
secondNews_obj.style.top=theHeight;
secondNews_obj.style.visibility='visible'
}

newsScroll.prototype.stopScroll = function(){
var c = this;
scroll_obj=eval(c.name);

if (toScroll.length >2)
c.i = 2;
else
c.i = 0;

firstNews_obj=ie? firstNews : document.getElementById("firstNews")
secondNews_obj=ie? secondNews : document.getElementById("secondNews")
setTimeout("scroll_obj.move(firstNews_obj)",100000000);
secondNews_obj.style.top=theHeight;
secondNews_obj.style.visibility='visible'
}

-->
</SCRIPT>

<TR>
<TD>
<DIV align=center onmouseover="start_scroll()">
<SCRIPT type=text/javascript>
<!-- Begin
theNews=new newsScroll("theNews"); //create our newsScroller object
theNews.scrollerdelay = 3000; // pausetime 3000 = 3 Seconds
theNews.scrollerwidth = 500; // the width of the box
theNews.scrollerheight = 500; // the height of the box
theNews.scrollerbgcolor = ''; // the box background color
theNews.scrollerbackground = ''; // Set to blank if you don't want to use a background image

theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/102/files/upload_small.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=102" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=101" target="_self"><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=101" target="_self"><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/100/files/song4.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=100" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/99/files/song4.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=99" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/98/files/drive_small.jpg" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=98" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=97" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=97" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=96" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=96" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=95" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=95" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
theNews.addItem('<TABLE> <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=94" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=94" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"><IMG SRC="system/db/shenu/files/93/files/0025.wmv" BORDER="0" style="border-color:#000000;" ALIGN="left" WIDTH="50"Height="50" ></A> </FONT></A> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=93" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> '+
' <TR> <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=92" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=92" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> '+
' <TD> <A HREF="shenu.cgi?db=shenu&action=read&dbf=91" target=""><FONT FACE="arial" SIZE="2"> <A HREF="shenu.cgi?db=shenu&action=read&dbf=91" target=""><FONT FACE="arial" SIZE="2"> asdf </FONT></A> </TD> </TR> </TABLE>');
// the next 2 lines construct the news box, and start the scroller
theNews.construct();
//theNews.startScroll();
// End -->
</SCRIPT>
<SCRIPT type=text/javascript>
function start_scroll(){
theNews.startScroll();
}

</SCRIPT>
<p><a onmouseover="start_scroll()">start</a> //
<a onmouseover="start_scroll()">stop</a>
</table>
</table>
</table>