Hi:

I am trying to do a scroller in NS 6 with the tread
element in NS 6, the following is my code:


======================================================
<html>
<head>
<title>DynAPI Examples - Animation Threads</title>
<script language="Javascript"
src="/dynapi/src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('/dynapi/src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');
//DynAPI.include('dynapi.util.hoveranim.js');
//DynAPI.include('dynapi.util.circleanim.js');
</script>
<script language="Javascript">

DynAPI.onLoad = function() {
        

        
        
        pathblock = new DynLayer();
        pathblock.setSize(200,100);
        pathblock.moveTo(400,150);
        //pathblock.setBgColor("blue");
    pathblock.setHTML("<font face='Arial'><a
href='http://www.agf.com'>one</a><br><a
href='http://www.agf.com'>two</a><br><a
href='http://www.agf.com'>three</a><br><a
href='http://www.agf.com'>four</a><br><a
href='http://www.agf.com'>five</a></font>"); 
        
        
        path = new PathAnimation(pathblock);
        

path.addAnimation(PathAnimation.line(300,500,300,100,3));
        

//path.addAnimation(PathAnimation.slideTo(400,500,30,100));

        path.setLoops(0,true);
        path.cancel();
        path.playAnimation(0);
        
        thread = new Thread();
        thread.sleep(100);
        thread.run = function() {
                status = "run";
                path.run();
        }
        thread.start();
        
        DynAPI.document.addChild(pathblock);
}

//-->
</script>
</head>

<body bgcolor="#ffffff">

<p>Thread
<br><a href="javascript:thread.stop()">stop</a> | <a
href="javascript:thread.start()">start</a>
<br>sleep: <a
href="javascript:thread.sleep(20)">20</a> | <a
href="javascript:thread.sleep(40)">40</a>

</body>
</html>

=====================================================

the html in the setHTML method is the messages I want
to scroll in a box of some sort.  However, since I am
using thread, it doesn't have a continuous feeling of
a normal scroller.

I want to have my scroller look like the scroller in
the link below:

http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

can anyone help??

The above scroller can work in IE4 and NS4.x, but I
tried modifying the code to make it work in NS 6 with
no luck at all, I think its because the way NS 6
handles threads, can anyone help???

Thanks in advance

Herman


_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to