复制代码 代码如下: 滚动文字效果 <BR>#infozone{font-size:12px;color:#aa6;overflow:hidden;width:100px;height:20px;}<BR>#infozone div{height:20px;line-height:20px;white-space:nowrap;overflow:hidden;}<BR> <BR>var tc;<BR>window.onload=function(){<BR> var o=document.getElementById('infozone');hscroll(o);<BR> window.setInterval(function(){window.clearTimeout(tc);o.firstChild.style.marginLeft='0px';scrollup(o,20,0);},10000);<BR>}<BR>function scrollup(o,d,c){<BR> if(d==c){<BR> var t=o.firstChild.cloneNode(true);<BR> o.removeChild(o.firstChild);o.appendChild(t);<BR> t.style.marginTop=o.firstChild.style.marginTop='0px';<BR> hscroll(o);<BR> }<BR> else{<BR> ch=false;var s=3,c=c+s,l=(c>=d?c-d:0);<BR> o.firstChild.style.marginTop=-c+l+'px';<BR> window.setTimeout(function(){scrollup(o,d,c-l)},50);<BR> }<BR>} <P>function hscroll(o){<BR> var w1=o.firstChild.offsetWidth,w2=o.offsetWidth;<BR> if(w1<=w2)return;<BR> tc=window.setTimeout(function(){hs(o,w1-w2,0,w1-w2)},3500);<BR>} <P>function hs(o,d,c,p){<BR> c++;var t=(c>0?-c:c);o.firstChild.style.marginLeft=t+'px';<BR> if(c==d){if(d==0){tc=window.setTimeout(function(){hs(o,p,0,p)},2500);}else tc=window.setTimeout(function(){hs(o,0,-p,p)},3500);}<BR> else tc=window.setTimeout(function(){hs(o,d,c,p)},5);<BR>}<BR> C# 鼠标属性动态操作相关源码示例,比如、隐藏与显示鼠标指针、将鼠标左右键功能互换、更换鼠标指针形状、调用Windows鼠标设置面板等,小技巧,多多益善。