不错呦!smile@林凯西,确保“准备文件”中的几个文件都有安装,S...您好,看了您这篇帖子觉得很有帮助。但是有个问题想请...我的修改过了怎么还被恶意注册呢 @jjjjiiii 用PJ快9年了,主要是A...PJ3啊,貌似很少有人用PJ了,现在不是WP就是z...@332347365,我当时接入时错误码没有-10...楼主,ChkValue值应为-103是什么意思呢?...大哥 你最近能看到我发的信息,请跟我联系,我有个制...
小型滚动公告板,一次显示一行
编辑:admin 日期:2006-06-28
<style>
a { font:12px; display:block }
marquee { border: blue 6px double; filter:alpha(style=1,startY=0,finishY=100,startX=100,finishX=100);
background-color:#3366cc;}
</style>
<marquee id="mq" width="100" height="28" direction="up" onmouseover="iScrollAmount=0" onmouseout="iScrollAmount=1">
<a href="#">月圆之夜</a>
<a href="#">紫禁之颠</a>
<a href="#">一剑西来</a>
<a href="#">天外飞仙</a>
</marquee>
<script>
var iLineHeight = 14; //单行高度,像素
var iLineCount = 4; //总行数,像素
var iScrollHeight = ( iLineCount + 1 ) * iLineHeight; //总高度
var iScrollAmount = 1; //每次滚动高度,像素
var oMarquee = document.getElementById("mq"); //滚动对象
function run() {
oMarquee.scrollTop += iScrollAmount;
if ( oMarquee.scrollTop == iScrollHeight ) oMarquee.scrollTop = 0;
if ( oMarquee.scrollTop % iLineHeight == 0 ) {
window.setTimeout( "run()", 2000 );
} else {
window.setTimeout( "run()", 50 );
}
}
oMarquee.stop();
run();
</script>
a { font:12px; display:block }
marquee { border: blue 6px double; filter:alpha(style=1,startY=0,finishY=100,startX=100,finishX=100);
background-color:#3366cc;}
</style>
<marquee id="mq" width="100" height="28" direction="up" onmouseover="iScrollAmount=0" onmouseout="iScrollAmount=1">
<a href="#">月圆之夜</a>
<a href="#">紫禁之颠</a>
<a href="#">一剑西来</a>
<a href="#">天外飞仙</a>
</marquee>
<script>
var iLineHeight = 14; //单行高度,像素
var iLineCount = 4; //总行数,像素
var iScrollHeight = ( iLineCount + 1 ) * iLineHeight; //总高度
var iScrollAmount = 1; //每次滚动高度,像素
var oMarquee = document.getElementById("mq"); //滚动对象
function run() {
oMarquee.scrollTop += iScrollAmount;
if ( oMarquee.scrollTop == iScrollHeight ) oMarquee.scrollTop = 0;
if ( oMarquee.scrollTop % iLineHeight == 0 ) {
window.setTimeout( "run()", 2000 );
} else {
window.setTimeout( "run()", 50 );
}
}
oMarquee.stop();
run();
</script>
评论: 1 | 引用: 0 | 查看次数: 5575
发表评论
请登录后再发表评论!