各位朋友,怎么用c#使网页上的图片滚动显示,非常感谢各位

解决方案 »

  1.   

    研究一下jQuery,有现成的组件。
      

  2.   

    <div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><div id=demo1>
    <img src="images/01.jpg">
    <img src="images/02.jpg">
    </div>
    <div id=demo2></div>
    </div>
    <script>
    var speed=50
    demo2.innerHTML=demo1.innerHTML
    function Marquee(){
    if(demo2.offsetTop-demo.scrollTop<=0)
    demo.scrollTop-=demo1.offsetHeight
    else{
    demo.scrollTop++
    }
    }
    var MyMar=setInterval(Marquee,speed)
    demo.onmouseover=function() {clearInterval(MyMar)}
    demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
    </script>
      

  3.   

    *************滚动屏幕与翻页动画*********************
    private void Timer1_Tick(object sender,System.EventArgs e)
    {
      this.PictureBox1.Location=new point(PictureBox1.location.X+1,PictureBox1.Location.Y);
      if(PictureBox1.Location.X>=this.size.Width)
    {
    pictureBox1.Location=new point(-PictrueBox1.size.Width,PictureBox1.location.Y);
    }
    }***********************翻页动画:Tick event
    {
    imgFlag++;
    if(imgFlag==9) imgFlag=1;
    str=Enviroment.CurrentDirectory+"\\..\\..\\NRNUMO"+imgFlag+".gif";
    PictureBox1.image=Image.FromFile(str);
    }
      

  4.   

    我是新手就是还有一个问题aspx怎么引入js
      

  5.   

    http://www.popub.net/script/MSClass.html
    这里有你需要的