|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
历经多年来的停滞不前,如今全球信息网联盟(WorldWideWebConsortium,W3C)重拾HTML标准化。网页制造poluoluo文章简介:一连转动的链接笔墨网页代码.
向上转动
<divid=”marquees”>
<ahref=”#”>破洛洛一</a><br>
<br>
<ahref=”#”>破洛洛二</a><br>
<br>
<ahref=”#”>破洛洛三</a><br>
<br>
<ahref=”#”>破洛洛四</a>
<br>
</div>
<scriptlanguage=”JavaScript”>
marqueesHeight=200;
stopscroll=false;
with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX=”visible”;
style.overflowY=”hidden”;
noWrap=true;
onmou搜索引擎优化ver=newFunction(”stopscroll=true”);
onmou搜索引擎优化ut=newFunction(”stopscroll=false”);
}
document.write(’<divid=”templayer”style=”position:absolute;z-index:1;visibility:hidden”></div>’);
preTop=0;currentTop=0;
functioninit(){
templayer.innerHTML=””;
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
setInterval(”scrollUp()”,10);
}
document.body.onload=init;
functionscrollUp(){
if(stopscroll==true)return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1;
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop+=1;
}
}
</script>
向下转动
<divid=”marquees”><ahref=”#”>破洛洛一</a><br>
<br>
<ahref=”#”>破洛洛二</a><br>
<br>
<ahref=”#”>破洛洛三</a><br>
<br>
<ahref=”#”>破洛洛四</a><br>
<br>
</div>
<scriptlanguage=”JavaScript”>
marqueesHeight=200;
with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX=”visible”;
style.overflowY=”hidden”;
noWrap=true;
onmou搜索引擎优化ver=newFunction(”stopscroll=true”);
onmou搜索引擎优化ut=newFunction(”stopscroll=false”);
}
document.write(’<divid=”templayer”style=”position:absolute;z-index:1;visibility:hidden”></div>’);
preTop=0;currentTop=0;getlimit=0;stopscroll=false;
functioninit(){
templayer.innerHTML=””;
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval(”scrollDown()”,10);
}init();
functionscrollDown(){
if(stopscroll==true)return;
preTop=marquees.scrollTop;
marquees.scrollTop-=1;
if(preTop==marquees.scrollTop){
if(!getlimit){
marquees.scrollTop=templayer.offsetHeight*2;
getlimit=marquees.scrollTop;
}
marquees.scrollTop=getlimit-templayer.offsetHeight+marqueesHeight;
marquees.scrollTop-=1;
}
}
</script>
向左转动
<divid=”marquees”>
<ahref=”#”>破洛洛一</a>
<ahref=”#”>破洛洛二</a>
<ahref=”#”>破洛洛三</a>
<ahref=”#”>破洛洛四</a>
</div>
<divid=”templayer”style=”position:absolute;left:0;top:0;visibility:hidden”></div>
<scriptlanguage=”JavaScript”>
marqueesWidth=200;
with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX=”hidden”;
style.overflowY=”visible”;
noWrap=true;
onmou搜索引擎优化ver=newFunction(”stopscroll=true”);
onmou搜索引擎优化ut=newFunction(”stopscroll=false”);
}
preLeft=0;currentLeft=0;stopscroll=false;
functioninit(){
templayer.innerHTML=””;
while(templayer.offsetWidth<marqueesWidth){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval(”scrollLeft()”,10);
}init();
functionscrollLeft(){
if(stopscroll==true)return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft+=1;
if(preLeft==marquees.scrollLeft){
marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;
}
}
</script>
向右转动
<divid=”marquees”>
<ahref=”#”>破洛洛一</a>
<ahref=”#”>破洛洛二</a>
<ahref=”#”>破洛洛三</a>
<ahref=”#”>破洛洛四</a>
</div>
<divid=”templayer”style=”position:absolute;left:0;top:0;visibility:hidden”></div>
<scriptlanguage=”JavaScript”>
marqueesWidth=200;
with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX=”hidden”;
style.overflowY=”visible”;
noWrap=true;
onmou搜索引擎优化ver=newFunction(”stopscroll=true”);
onmou搜索引擎优化ut=newFunction(”stopscroll=false”);
}
preTop=0;currentTop=0;getlimit=0;stopscroll=false;
functioninit(){
templayer.innerHTML=””;
while(templayer.offsetWidth<marqueesWidth){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval(”scrollRight()”,10);
}init();
functionscrollRight(){
if(stopscroll==true)return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft-=1;
if(preLeft==marquees.scrollLeft){
if(!getlimit){
marquees.scrollLeft=templayer.offsetWidth*2;
getlimit=marquees.scrollLeft;
}
marquees.scrollLeft=getlimit-templayer.offsetWidth+marqueesWidth;
marquees.scrollLeft-=1;
}
}
</script>
</p>
HTML标准自1999年12月发布的HTML4.01后,后继的HTML5和其它标准被束之高阁,为了推动Web标准化运动的发展. |
|