贴上本站曾今用的代码:
代码一
代码二
代码三(存在问题,需自行修改,图片貌似找不到了)
- <STYLE>BODY {
- FONT-SIZE: 12px; BACKGROUND: url(https://www.discuz.1314study.com/dingbu/dingbu/bg.gif) repeat-x; MARGIN: 0px; COLOR: #333; TEXT-ALIGN: center
- }
- A {
- COLOR: #333; FONT-FAMILY: Arial; TEXT-DECORATION: none
- }
- A:hover {
- COLOR: #f00; TEXT-DECORATION: none
- }
- IMG {
- BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px
- }
- .all {
- MARGIN: 0px auto; OVERFLOW: hidden; WIDTH: 970px; HEIGHT: 39px; TEXT-ALIGN: left
- }
- .logo {
- FLOAT: left; OVERFLOW: hidden; HEIGHT: 36px
- }
- .menu {
- FLOAT: left; MARGIN: 12px 0px 0px 10px; OVERFLOW: hidden; LINE-HEIGHT: 8px
- }
- .game {
- FLOAT: right; MARGIN: 12px 0px 0px 15px; OVERFLOW: hidden; LINE-HEIGHT: 8px
- }
- .other {
- BACKGROUND: url(https://www.discuz.1314study.com/dingbu/dingbu/gudong.gif) no-repeat; FLOAT: right; MARGIN: 10px 0px 0px; OVERFLOW: hidden; WIDTH: 225px; HEIGHT: 18px
- }
- #gundongnews0 {
- PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
- }
- #gundongnews0 LI {
- PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
- }
- #gundongnews0 {
- PADDING-RIGHT: 0px; PADDING-LEFT: 45px; PADDING-BOTTOM: 0px; OVERFLOW: hidden; PADDING-TOP: 0px; HEIGHT: 18px
- }
- #gundongnews0 LI {
- PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; OVERFLOW: hidden; LINE-HEIGHT: 15px; PADDING-TOP: 3px
- }
- </STYLE>
- <DIV class=all>
- <DIV class=game><IMG src="https://www.discuz.1314study.com/dingbu/dingbu/ico01.gif" width=11><A
- href="https://www.discuz.1314study.com/search.php?mod=forum&adv=yes" target=_blank><FONT
- color=#ff0000>站内高级查询</FONT></A> <IMG src="https://www.discuz.1314study.com/dingbu/dingbu/ico02.gif" width=11> <A
- href="https://www.discuz.1314study.com/" target=_blank>管理团队</A> </DIV>
- <div class=other><ul id=gundongnews0><li><a href="https://www.discuz.1314study.com/forum-viewthread-tid-11199-fromuid-1.html
- " target="_blank">体验手机上论坛的乐趣</a></li><li><a href="https://www.discuz.1314study.com/thread-10391-1-1.html" target="_blank">1314学习网管理规定(试行)</a></li><li><a href="https://www.discuz.1314study.com/thread-10613-1-1.html" target="_blank">本站域名公告</a></li><li><a href="https://www.discuz.1314study.com/thread-6995-1-1.html" target="_blank">【论坛帖图新手必看】</a></li><li><a href="https://www.discuz.1314study.com/thread-10614-1-1.html" target="_blank">发帖标题、内容注意事项</a></li><li><a href="https://www.discuz.1314study.com/thread-32-1-1.html" target="_blank">帖子精华、推荐、置顶等标准</a></li><li><a href="https://www.discuz.1314study.com/thread-27-1-1.html" target="_blank">论坛现招版主</a></li></ul></div>
- <SCRIPT>
- <!-- //新闻滚动JS代码
- function startmarquee(lh,speed,delay,index){
- var t;
- var p=false;
- var o=document.getElementById("gundongnews"+index);
- o.innerHTML+=o.innerHTML;
- o.onmouseover=function(){p=true}
- o.onmouseout=function(){p=false}
- o.scrollTop = 0;
- function start(){
- t=setInterval(scrolling,speed);
- if(!p) o.scrollTop += 2;
- }
- function scrolling(){
- if(o.scrollTop%lh!=0){
- o.scrollTop += 2;
- if(o.scrollTop>=o.scrollHeight/2) o.scrollTop = 0;
- }
- else{
- clearInterval(t);
- setTimeout(start,delay);
- }
- }
- setTimeout(start,delay);
- }
- startmarquee(18,80,3000,0); /*(一次滚动高度,速度,停留时间,图层标记)*/
- //-->
- </SCRIPT>
- <DIV class=logo> </A></DIV>
- <DIV class=menu><IMG src="https://www.discuz.1314study.com/dingbu/dingbu/ico01.gif" width=11> <A
- href="javascript:window.external.AddFavorite('https://www.discuz.1314study.com/',%20'1314学习网)"><FONT
- color=#ff0000>点击加入收藏夹</FONT></A> | <A
- href="http://so.3qq.cc/" target=_top>1314搜索</A> | <IMG
- src="https://www.discuz.1314study.com/dingbu/dingbu/msnminiico.gif" width=15><A
- href="https://www.discuz.1314study.com/news/" target=_top>1314资讯</A> | <IMG
- src="https://www.discuz.1314study.com/dingbu/dingbu/tvminiico.gif" width=16><A href="https://www.discuz.1314study.com/news/sgsp/"
- target=_top>上高视频</A> | <A
- href="http://blog.3qq.cc/" target=_top>找朋友</A>
- </DIV></DIV>
复制代码
|