谁帮我把这段用JS改写,给50分,如果不够,再++,我JS实在是太烂了

helva 2007-05-14 10:05:48
<TABLE cellSpacing=0 cellPadding=0 width=810 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD width=15> </TD>
<TD><BR></TD>
<TD width=15> </TD></TR>
<TR>
<TD height="61"> </TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR bgColor=#fab056>
<TD colSpan=3 height=25>
<DIV class=white_link_9
align=center><STRONG>其他相同类型教员信息及推荐教员信息</STRONG></DIV></TD></TR>
<TR bgColor=#ffffff>
<TD colSpan=3 height=1></TD></TR>
<TR>
<TD vAlign=top width="49%" height=35>
<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD width="27%" height=10></TD></TR></TBODY></TABLE>




<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

<TBODY>
<TR onMouseOver="this.style.background='#C4F1FF'"
onmouseout="this.style.background='#FfFfFf'">
<TD width=33 height=24>
<DIV align=center><IMG height=14
src="../../../images/te5.gif"
width=15></DIV></TD>
<TD vAlign=bottom width=36>
<DIV align=left>DOK$TeacherID$</DIV></TD>
<TD vAlign=bottom width=49>
<DIV align=left>$FirstName$</DIV></TD>
<TD vAlign=bottom width=114>
<DIV align=center>$Indentity$ </DIV></TD>
<TD vAlign=bottom width=72>
<DIV align=left>$LoginTime$</DIV></TD>
<TD vAlign=bottom width=78>
<DIV align=left><A class=buleo2_link_9 href="teacher_info.asp?TeacherID=$TeacherID$">查看简历</A></DIV></TD></TR>
<TR>
<TD background=../../../images/broken_line_2.gif
colSpan=7></TD></TR></TBODY></TABLE>
</TD>
<TD vAlign=center>
<TABLE height=100% cellSpacing=0 cellPadding=0 width=1 align=center
bgColor=#cccccc border=0>
<TBODY>
<TR>
<TD height="34"></TD>
</TR></TBODY></TABLE></TD>
<TD vAlign=top width="49%" height=35>
<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD width="27%" height=10></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR onMouseOver="this.style.background='#C4F1FF'"
onmouseout="this.style.background='#FfFfFf'">
<TD width=31 height=24>
<DIV align=center><IMG height=14
src="../../../images/te5.gif"
width=15></DIV></TD>
<TD vAlign=bottom width=44>
<DIV align=left>DOK$TeacherID$ </DIV></TD>
<TD vAlign=bottom width=50>
<DIV align=left>$RealName$ </DIV></TD>
<TD vAlign=bottom width=96>   $Indentity$ </TD>
<TD vAlign=bottom width=75>
<DIV align=left>$LoginTime$ </DIV></TD>
<TD vAlign=bottom width=86>
<DIV align=left><A class=buleo2_link_9
href="teacher_info.asp?TeacherID=$TeacherID$">查看简历</A></DIV></TD></TR>
<TR>
<TD height=1></TD>
<TD background=../../../images/broken_line_2.gif
colSpan=7></TD></TR></TBODY></TABLE>
</TD>
</TR></TBODY></TABLE></TD>
<TD> </TD></TR></TBODY></TABLE>
...全文
371 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
xt_yxl 2007-05-16
  • 打赏
  • 举报
回复
http://www.hao123.com/haoserver/jstohtm.htm
xt_yxl 2007-05-16
  • 打赏
  • 举报
回复
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=810 align=center bgColor=#ffffff ");
document.writeln("border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD width=15> <\/TD>");
document.writeln(" <TD><BR><\/TD>");
document.writeln(" <TD width=15> <\/TD><\/TR>");
document.writeln(" <TR>");
document.writeln(" <TD height=\"61\"> <\/TD>");
document.writeln(" <TD>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR bgColor=#fab056>");
document.writeln(" <TD colSpan=3 height=25>");
document.writeln(" <DIV class=white_link_9 ");
document.writeln(" align=center><STRONG>其他相同类型教员信息及推荐教员信息<\/STRONG><\/DIV><\/TD><\/TR>");
document.writeln(" <TR bgColor=#ffffff>");
document.writeln(" <TD colSpan=3 height=1><\/TD><\/TR>");
document.writeln(" <TR>");
document.writeln(" <TD vAlign=top width=\"49%\" height=35>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"98%\" border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD width=\"27%\" height=10><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
document.writeln("");
document.writeln(" <TBODY>");
document.writeln(" <TR onMouseOver=\"this.style.background=\'#C4F1FF\'\" ");
document.writeln(" onmouseout=\"this.style.background=\'#FfFfFf\'\">");
document.writeln(" <TD width=33 height=24>");
document.writeln(" <DIV align=center><IMG height=14 ");
document.writeln(" src=\"..\/..\/..\/images\/te5.gif\" ");
document.writeln(" width=15><\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=36>");
document.writeln(" <DIV align=left>DOK$TeacherID$<\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=49>");
document.writeln(" <DIV align=left>$FirstName$<\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=114>");
document.writeln(" <DIV align=center>$Indentity$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=72>");
document.writeln(" <DIV align=left>$LoginTime$<\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=78>");
document.writeln(" <DIV align=left><A class=buleo2_link_9 href=\"teacher_info.asp?TeacherID=$TeacherID$\">查看简历<\/A><\/DIV><\/TD><\/TR> ");
document.writeln(" <TR>");
document.writeln(" <TD background=..\/..\/..\/images\/broken_line_2.gif ");
document.writeln(" colSpan=7><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("<\/TD>");
document.writeln(" <TD vAlign=center>");
document.writeln(" <TABLE height=100% cellSpacing=0 cellPadding=0 width=1 align=center ");
document.writeln(" bgColor=#cccccc border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD height=\"34\"><\/TD>");
document.writeln(" <\/TR><\/TBODY><\/TABLE><\/TD>");
document.writeln(" <TD vAlign=top width=\"49%\" height=35>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"98%\" border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD width=\"27%\" height=10><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR onMouseOver=\"this.style.background=\'#C4F1FF\'\" ");
document.writeln(" onmouseout=\"this.style.background=\'#FfFfFf\'\">");
document.writeln(" <TD width=31 height=24>");
document.writeln(" <DIV align=center><IMG height=14 ");
document.writeln(" src=\"..\/..\/..\/images\/te5.gif\" ");
document.writeln(" width=15><\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=44>");
document.writeln(" <DIV align=left>DOK$TeacherID$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=50>");
document.writeln(" <DIV align=left>$RealName$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=96>   $Indentity$ <\/TD>");
document.writeln(" <TD vAlign=bottom width=75>");
document.writeln(" <DIV align=left>$LoginTime$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=86>");
document.writeln(" <DIV align=left><A class=buleo2_link_9 ");
document.writeln(" href=\"teacher_info.asp?TeacherID=$TeacherID$\">查看简历<\/A><\/DIV><\/TD><\/TR>");
document.writeln(" <TR>");
document.writeln(" <TD height=1><\/TD>");
document.writeln(" <TD background=..\/..\/..\/images\/broken_line_2.gif ");
document.writeln(" colSpan=7><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln(" <\/TD>");
document.writeln(" <\/TR><\/TBODY><\/TABLE><\/TD>");
document.writeln(" <TD> <\/TD><\/TR><\/TBODY><\/TABLE>")
xanice 2007-05-16
  • 打赏
  • 举报
回复
呵呵,努力了
helva 2007-05-14
  • 打赏
  • 举报
回复
使用ASP生成静态HTML,然后通过JS调用,在静态HTML中,实现动态显示,登陆时间和访问统计
这样调用,那里出错了
<script type="text/javascript" src="hits.asp"></script>

其他地方都正常生成静态HTML,但这段代码,没有显示出数据来

错在那里?。
请教

这个问题在,HTML中JS调用ASP出错后,JS不报错,只是文件夹相对路径出现问题了
所以不能正常显示,浪费 了我好长时间啊
--------------------------------------------------------------------------

对于处理ASP生成HTML,在HTML中又要出现大段动态数据的情况,是用JS好呢?还是使用框架比较理想,望给予答复,谢谢
helva 2007-05-14
  • 打赏
  • 举报
回复
象这么大段的代码,用框架好呢?还是用JS调用好
helva 2007-05-14
  • 打赏
  • 举报
回复
我写2句,就出错了
总出错
请教

使用ASP生成静态HTML,然后通过JS调用,在静态HTML中,实现动态显示,登陆时间和访问统计
这样调用,那里出错了
<script type="text/javascript" src="hits.asp"></script>

其他地方都正常生成静态HTML,但这段代码,没有显示出数据来

错在那里?。
请教
wangwm 2007-05-14
  • 打赏
  • 举报
回复
Response.Write "document.write(""<html>"");"

这样修改不是很简单么?是你不会呢,还是自己怕麻烦,让别人帮你做??
helva 2007-05-14
  • 打赏
  • 举报
回复
怎么都是来混分的,晕
helva 2007-05-14
  • 打赏
  • 举报
回复
在线等,谁能帮我处理一下,谢谢
helva 2007-05-14
  • 打赏
  • 举报
回复
我把ASP生成静态页了,然后在静态页里通过JS调用ASP(也就是上面贴出来的代码),动态显示访问统计,和时间信息

wangwm 2007-05-14
  • 打赏
  • 举报
回复
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=810 align=center bgColor=#ffffff ");
document.writeln("border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD width=15> <\/TD>");
document.writeln(" <TD><BR><\/TD>");
document.writeln(" <TD width=15> <\/TD><\/TR>");
document.writeln(" <TR>");
document.writeln(" <TD height=\"61\"> <\/TD>");
document.writeln(" <TD>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR bgColor=#fab056>");
document.writeln(" <TD colSpan=3 height=25>");
document.writeln(" <DIV class=white_link_9 ");
document.writeln(" align=center><STRONG>其他相同类型教员信息及推荐教员信息<\/STRONG><\/DIV><\/TD><\/TR>");
document.writeln(" <TR bgColor=#ffffff>");
document.writeln(" <TD colSpan=3 height=1><\/TD><\/TR>");
document.writeln(" <TR>");
document.writeln(" <TD vAlign=top width=\"49%\" height=35>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"98%\" border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD width=\"27%\" height=10><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
document.writeln("");
document.writeln(" <TBODY>");
document.writeln(" <TR onMouseOver=\"this.style.background=\'#C4F1FF\'\" ");
document.writeln(" onmouseout=\"this.style.background=\'#FfFfFf\'\">");
document.writeln(" <TD width=33 height=24>");
document.writeln(" <DIV align=center><IMG height=14 ");
document.writeln(" src=\"..\/..\/..\/images\/te5.gif\" ");
document.writeln(" width=15><\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=36>");
document.writeln(" <DIV align=left>DOK$TeacherID$<\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=49>");
document.writeln(" <DIV align=left>$FirstName$<\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=114>");
document.writeln(" <DIV align=center>$Indentity$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=72>");
document.writeln(" <DIV align=left>$LoginTime$<\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=78>");
document.writeln(" <DIV align=left><A class=buleo2_link_9 href=\"teacher_info.asp?TeacherID=$TeacherID$\">查看简历<\/A><\/DIV><\/TD><\/TR> ");
document.writeln(" <TR>");
document.writeln(" <TD background=..\/..\/..\/images\/broken_line_2.gif ");
document.writeln(" colSpan=7><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("<\/TD>");
document.writeln(" <TD vAlign=center>");
document.writeln(" <TABLE height=100% cellSpacing=0 cellPadding=0 width=1 align=center ");
document.writeln(" bgColor=#cccccc border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD height=\"34\"><\/TD>");
document.writeln(" <\/TR><\/TBODY><\/TABLE><\/TD>");
document.writeln(" <TD vAlign=top width=\"49%\" height=35>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"98%\" border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR>");
document.writeln(" <TD width=\"27%\" height=10><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
document.writeln(" <TBODY>");
document.writeln(" <TR onMouseOver=\"this.style.background=\'#C4F1FF\'\" ");
document.writeln(" onmouseout=\"this.style.background=\'#FfFfFf\'\">");
document.writeln(" <TD width=31 height=24>");
document.writeln(" <DIV align=center><IMG height=14 ");
document.writeln(" src=\"..\/..\/..\/images\/te5.gif\" ");
document.writeln(" width=15><\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=44>");
document.writeln(" <DIV align=left>DOK$TeacherID$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=50>");
document.writeln(" <DIV align=left>$RealName$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=96>   $Indentity$ <\/TD>");
document.writeln(" <TD vAlign=bottom width=75>");
document.writeln(" <DIV align=left>$LoginTime$ <\/DIV><\/TD>");
document.writeln(" <TD vAlign=bottom width=86>");
document.writeln(" <DIV align=left><A class=buleo2_link_9 ");
document.writeln(" href=\"teacher_info.asp?TeacherID=$TeacherID$\">查看简历<\/A><\/DIV><\/TD><\/TR>");
document.writeln(" <TR>");
document.writeln(" <TD height=1><\/TD>");
document.writeln(" <TD background=..\/..\/..\/images\/broken_line_2.gif ");
document.writeln(" colSpan=7><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln(" <\/TD>");
document.writeln(" <\/TR><\/TBODY><\/TABLE><\/TD>");
document.writeln(" <TD> <\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("")
helva 2007-05-14
  • 打赏
  • 举报
回复
需要写成这样才行

Response.Write "document.write(""<html>"");"
bigfoot 2007-05-14
  • 打赏
  • 举报
回复
改成啥?
helva 2007-05-14
  • 打赏
  • 举报
回复
我自己解决了
本来怕自己搞不来
没想到,没有我想象的那么复杂
谢谢大家了
philcc 2007-05-14
  • 打赏
  • 举报
回复
document.write就可以了!

28,390

社区成员

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

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