关于W3C的问题

LYCJW5211 2008-11-28 10:35:48
<!--#include file="conn.asp"-->
<head>
<style type="text/css">
<!--
.STYLE1 {color: #F6CE90}
.STYLE6 {font-size: 13px}
-->
</style>
</head>

<body>
<table width="724" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><img src="images/news_l.jpg"></td>
<td valign="top" align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="26"></td>
</tr>
<tr>
<td align="left"><img src="images/news_r.jpg"/ ></td>
</tr>
</table>

</td>
</tr>
</table>
<table width="700" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding-left:30px" >
<!-- gundong -->
<div style="overflow:hidden;height:130px;line-height:30px;" id="marqueebox0"> <!--line-height:文字行距-->
<%
set rs = server.CreateObject("adodb.recordset")
sql = "select top 5 * from article_info where Nclassid=8 and flag=0 and Audit=0 order by ktime desc"
rs.open sql,conn,1,1
while not rs.eof
if instr(rs("title"),"#") then
title=split(rs("title"),"#")(0)
color=split(rs("title"),"#")(1)
else
title = rs("title")
end if
response.write "<a href='news.asp?NewsId="&rs("Unid")&"' target='_blank' title="""&title&""" style=""font-size:12px"">· <font color="""&color&""" style=""font-size:12px"">"&left(title,20)&"</font> "&rs("Intime")&"</a><br> "
rs.movenext
wend
rs.close
set rs = Nothing
%>
</div><script>
<!--
function startmarquee(lh,speed,delay,index){
var t;
var p=false;
var o=document.getElementById("marqueebox"+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(22,180,30,0);
/**startmarquee(一次滚动高度,速度,停留时间,图层标记);**/


//-->
</script><!-- end gundong-->
</td>
<td height="165" width="320" align="left">
<script type=text/javascript>
<!--

var focus_width=200
var focus_height=150
var text_height=0
var swf_height = focus_height+text_height
var pics=''
var links=''
var texts=''

pics+='images/01.jpg|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg'
links+='|'
texts+='|'

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="flash/wc_jiaodian.swf"><param name=wmode value=transparent><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="flash/playswf.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

//-->
</script>


</td>
</tr>
</table>
<table width="700" border="0">
<tr>

<td height="60" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td width="20"> </td>
<td><img src="images/jianjie.jpg" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" border="0" cellpadding="0" cellspacing="0">
<table width="650" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="165" width="166"><img src="images/jianjie_pic.jpg" /></td>
<td width="5"> </td>
<td style="line-height:23px;text-indent:2em; padding-left:5px;padding-right:5px"><span class="STYLE5">
<p>石家庄三宏达门业有限公司(又名三宏达电动卷闸厂),创立于1992年
,是全国较早、最具规模的从事各类电动卷帘门、遥控车库门、伸缩门
等生产研究的专业厂家!
我们本着“ 以质量保品牌 向规模要效益” 的宗旨,不断开拓
,不懈努力已成为一家集研制、开发、生产、销售、按装及完善的售后
维修服务为一体的新型现代化企业....</p>
</span>
<p align="right" class="STYLE6"><a href="jianjie.asp" class="STYLE1">more</a></p></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="700" border="0" cellpadding="0" cellspacing="0">
<tr>

<td align="right"><img src="images/news_l.jpg"></td>
<td align="left"><table border="0" cellpadding="0" cellspacing="0">

<tr>
<td align="left" ><img src="images/pro_r().jpg" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="100">
<table border="0">
<tr>
<td width="40"> </td>
<td>
<div id=demo1 style="overflow:hidden;width:700;" align=center>
<table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 >
<tr><td valign=top bgcolor=#000000 id=marquePic1>
<table width='100%' border='0' cellspacing='0' bgcolor="#000000">
<tr>
<%
call imgwh()
set rs = server.CreateObject("adodb.recordset")
sql = "select top 6 * from article_info where classid=49 and flag=0 and Audit=0 order by ktime desc"
rs.open sql,conn,1,1
while not rs.eof
if instr(rs("title"),"#") then
title=split(rs("title"),"#")(0)
color=split(rs("title"),"#")(1)
else
title = rs("title")
end if
response.write "<td align=center><a href='imgnews.asp?NewsId="&rs("Unid")&"'><img src=""Upfiles/"&rs("DefaultPic")&""" onload=""changeImg(this,180,140)"" border=0><br><br>"&left(title,8)&"</a></td>"
rs.movenext
wend
rs.close
set rs = Nothing
%>
</tr>
</table>
</td><td id=marquePic2 valign=top></td></tr>
</table></div>
<script type="text/javascript">
var speed=20
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo1.scrollLeft>=marquePic1.scrollWidth){
demo1.scrollLeft=0
}else{
demo1.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo1.onmouseover=function() {clearInterval(MyMar)}
demo1.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script></td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>

如果代码前加上:
<!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">
显示会很乱
...全文
33 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
LYCJW5211 2008-11-28
你帮我看下好不?
看看那段代码哪出问题了?
我这里没有那工具
回复
小逗狗 2008-11-28
w3c是一种网页标准,建议你使用微软的SharePoint Design 2007 或者Microsoft Expression Web 2 软件设计网页,直接会提示你你的网页代码是否符合w3c标准
回复
LYCJW5211 2008-11-28
呵呵,不能去掉
就是想让高手帮改改看怎么就合标准了
回复
草原可可 2008-11-28
W3C是标准啊 是不是你的网页不符合标准 那就去掉看看 一样用
回复
相关推荐
发帖
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2008-11-28 10:35
社区公告
暂无公告