请问:
http://china.alibaba.com/ 啊里吧吧 里面 首页上 有个啊里服务 旁边是一个广告 轮选
是文字向上翻动的 中间还有停吨的时间 点上去 还有链接
请问这是怎么做的? 能给点代码更好 谢过~~~~
[此贴子已经被作者于2005-11-12 17:38:54编辑过]
请问:
http://china.alibaba.com/ 啊里吧吧 里面 首页上 有个啊里服务 旁边是一个广告 轮选
是文字向上翻动的 中间还有停吨的时间 点上去 还有链接
请问这是怎么做的? 能给点代码更好 谢过~~~~
[此贴子已经被作者于2005-11-12 17:38:54编辑过]
剽窃客户端代码是很容易的事[CODE]<div id="icefable1">
<div id="box16left">
<ul>
<li>·<a href="http://info.china.alibaba.com/news/detail/v1-d5573939.html" target="_blank" onmousedown="return aliclick(this,'?tracelog=ui_homepage_algg');">阿里巴巴完成对雅虎中国收购</a>·<A href="http://info.china.alibaba.com/news/detail/v1-d5573965.html" target="_blank" onMouseDown="return aliclick(this,'?tracelog=ui_homepage_algg');">淘宝继续免费3年</a></li>
<li>·<a href="http://info.china.alibaba.com/html/news/announce_1027.html" target=_blank onmousedown="return aliclick(this,'?tracelog=ui_homepage_algg');" style="color:#ff3300;">关于取消丁相军“十大网商”称号的决定</a></li>
<li>·<a href="http://www.iclick.cn/survey/20050921/user.asp?fid=2" target=_blank onmousedown="return aliclick(this,'?tracelog=ui_homepage_algg');">中小企业电子商务应用调查</a></li>
</ul>
</div>
</div>
<Script Language="JavaScript">
<!--
try{
var marqueesHeight = 18;
var stopscroll = false;
var scrollElem = document.getElementById("icefable1");
with(scrollElem){
style.width = 300;
style.height = marqueesHeight;
style.overflow = 'hidden';
noWrap = true;
}
scrollElem.onmouseover = new Function('stopscroll = true');
scrollElem.onmouseout = new Function('stopscroll = false');
var preTop = 0;
var currentTop = 0;
var stoptime = 0;
var leftElem = document.getElementById("box16left");
scrollElem.appendChild(leftElem.cloneNode(true));
init_srolltext();
}catch(e) {}
function init_srolltext(){
scrollElem.scrollTop = 0;
setInterval('scrollUp()', 15);
}
function scrollUp(){
if(stopscroll) return;
currentTop += 1;
if(currentTop == 19) {
stoptime += 1;
currentTop -= 1;
if(stoptime == 180) {
currentTop = 0;
stoptime = 0;
}
}else{
preTop = scrollElem.scrollTop;
scrollElem.scrollTop += 1;
if(preTop == scrollElem.scrollTop){
scrollElem.scrollTop = 0;
scrollElem.scrollTop += 1;
}
}
}
//-->
</Script>[/CODE]