C# 图片滚动显示 各位朋友,怎么用c#使网页上的图片滚动显示,非常感谢各位 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 研究一下jQuery,有现成的组件。 <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=50demo2.innerHTML=demo1.innerHTMLfunction Marquee(){if(demo2.offsetTop-demo.scrollTop<=0)demo.scrollTop-=demo1.offsetHeightelse{demo.scrollTop++}}var MyMar=setInterval(Marquee,speed)demo.onmouseover=function() {clearInterval(MyMar)}demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}</script> *************滚动屏幕与翻页动画*********************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);} 我是新手就是还有一个问题aspx怎么引入js http://www.popub.net/script/MSClass.html这里有你需要的 一个C#代码问题 如图 如何重写控件的属性? 我看好多论坛都能获取用户的ip,这是怎么做的? 不吃饭,裸体等答案 关于HttpWebRequest模拟Web登陆和更新的WinForm程序问题,郁闷好几天了!请求大家帮忙. C,C++,Basic,Delphi,Java,C# 它们编议后的运行速度,大家给排一下名次. 请问大家有用过MiniUI的GridData控件吗? string用trim()的问题(抛出异常??) 在控件中使用DataGrid的UpdateCommand,CancelCommand事件 如何用c#开发下载考勤机数据的程序 关于异步发送消息和文件的问题
<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>
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);
}
这里有你需要的