发新话题
打印

再来个小建议。。麻烦了!

再来个小建议。。麻烦了!

  可否在主页两侧做一个浮动广告!

TOP

目前可自行在DP后台选项的“底部HTML”加入广告代码
DiY-Page作者
如有问题请发帖 勿发短消息
中国人民大学 知行二楼

TOP

可否固定在主页两侧空白处.加入图片在上下滑动

TOP

引用:
原帖由 tigerdong 于 2006-4-7 21:40 发表
可否固定在主页两侧空白处.加入图片在上下滑动
这个用JS很容易实现的
DiY-Page作者
如有问题请发帖 勿发短消息
中国人民大学 知行二楼

TOP

大佬我对编程不太懂.不知道怎么做。不过我在网上搜了句代码。不知道怎么用。你能帮忙看看。如何在代码里加入图片。以什么形式加入。最好给个例子。谢谢了。
复制内容到剪贴板
代码:
<script language=javascript>function close163news(){searchspe.style.visibility='hidden';searchspe2.style.visibility='hidden';} var specialcode="<DIV id=searchspe style='Z-INDEX: 100; right: 1px; POSITION: absolute; TOP: 30px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'><TR bgcolor=#C54A00><TD height=20>&nbsp;推荐↓</TD><TD style='CURSOR: hand' onclick='close163news()' width=30>关 闭</TD></TR></TABLE>广告内容</DIV>";document.write(specialcode);lastScrollX=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollX);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollX=lastScrollX+percent;}window.setInterval("heartBeat0()",1);var specialcode2="<DIV id=searchspe2 style='Z-INDEX: 100; left: 1px; POSITION: absolute; TOP: 30px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'><TR bgcolor=#12BDFF><TD height=20>&nbsp;推荐↓</TD><TD style='CURSOR: hand' onclick='close163news()' width=30>关 闭</TD></TR></TABLE>广告内容</DIV>";document.write(specialcode2);lastScrollY=0;function heartBeat1(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe2.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat1()",1);</script>

TOP

嗯,有空帮看看
DiY-Page作者
如有问题请发帖 勿发短消息
中国人民大学 知行二楼

TOP

发新话题