关于对联问题

xadsfzp918007 2006-08-18 10:12:28
为什么我把对联加到首页 就把首页搞的变形了...我首页是用div写的..搞了一天了大哥大姐帮帮我吧
对联代码是这样的:
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 32px; POSITION: absolute; TOP: 105px;'><img src='gg/a000.gif' width='106' height='318' border='0' alt='对联广告位95x300招租'></a></DIV>"
document.write(suspendcode);
suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; LEFT: 912px; POSITION: absolute; TOP: 105px;'><img src='gg/b000.gif' width='106' height='318' border='0' alt='对联广告位95x300招租'></a></DIV>"
document.write(suspendcode);
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin1.style.pixelTop+=percent;
document.all.lovexin2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide()
{
lovexin1.style.visibility="hidden";
lovexin2.style.visibility="hidden";
}
window.setInterval("heartBeat()",1);

...全文
196 7 打赏 收藏 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
GGBOYS 2006-08-19
  • 打赏
  • 举报
回复
http://community.csdn.net/Expert/topic/4960/4960650.xml?temp=.5311701
xadsfzp918007 2006-08-18
  • 打赏
  • 举报
回复
不行啊 还是把我的首页就搞的变形了 我把这个JS放到body下面就好了 不过不能滚动啊 放到最上面可以滚动 网页就搞的变形了 谁来帮帮我啊 555555
kafly 2006-08-18
  • 打赏
  • 举报
回复
Z-INDEX: 10
改到500试试,呵呵
xadsfzp918007 2006-08-18
  • 打赏
  • 举报
回复
这句话是什么意思?visibility:visible;
为什么我的代码把网页搞的变形了 不过可以滚动的 也在左右两侧
clbaddd 2006-08-18
  • 打赏
  • 举报
回复
<SCRIPT language=JavaScript event=FSCommand() for=tomdl>
dllayer2.style.visibility='hidden';
dllayer3.style.visibility='hidden';
</SCRIPT>
<script language="javascript">
function winload()
{
dllayer2.style.top=20;
dllayer2.style.left=5;
dllayer3.style.top=20;
dllayer3.style.right=5;
}

if(document.body.offsetWidth>800){
{
document.write("<div id=dllayer2 style='position: absolute;visibility:visible;z-index:1'> <EMBED src='http://192.168.1.2:8080/images/small-flash1.swf' quality=high WIDTH=90 HEIGHT=200 TYPE='application/x-shockwave-flash' id=tomdl></EMBED> </div>"
+"<div id=dllayer3 style='position: absolute;visibility:visible;z-index:2'><EMBED src='http://192.168.1.2:8080/images/small-flash1.swf'quality=high WIDTH=90 HEIGHT=200 TYPE='application/x-shockwave-flash' id=tomdl></EMBED></div>");
}
winload()
}
</script>
hurrayboy 2006-08-18
  • 打赏
  • 举报
回复
你页面上有这样没有:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

删除!
xadsfzp918007 2006-08-18
  • 打赏
  • 举报
回复
55555555555

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧