| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 679 人关注过本帖
标题:2处JS错误,谁帮我修正一下?多谢了!
只看楼主 加入收藏
Littlebird
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-12-15
收藏
 问题点数:0 回复次数:5 
2处JS错误,谁帮我修正一下?多谢了!

第1处错误
行:106
字符:5
错误:缺少';'
代码:0

第2处错误
行:40
字符:1
错误:缺少对象
代码:0

源代码如下:
<HTML> <HEAD>
<TITLE> ★♂♀Storm Studio♂♀★</TITLE>
<META content="★♂♀Storm Studio♂♀★ " name=author>
<META
name=description>
<META
name=keywords>
<META
name=classification>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK

type=text/css rel=stylesheet>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: "宋体";
font-size: 12px;
}
.style2 {color: #FFFFFF}
.style3 {color: #99CC00}
.style4 {color: #FF0000}
.style5 {color: #000000}
-->
</style>
</HEAD>
<BODY leftMargin=0 topMargin=0 onload=javascript:close_open();>
<div id="Layer1" style="position:absolute; left:220; top:562; width:556; height:64; z-index:1">
<p class="style1"> <span class="style2"> --<font color="#99CC00">
</font> </span> <span class="style3"> <span lang="en-us">
</span> W<span lang="en-us"> eb
Master</span> : <a href="mailto:chenstorm@163.com"> <span lang="en-us"> c</span> </a> <span lang="en-us"> <a href="mailto:chenstorm@163.com"> henstorm</a> </span> >> QQ:<span lang="en-us"> 249207136</span> >>
<span lang="en-us"> Tel</span> :<span lang="en-us"> 020-</span> </span> <font color="#99CC00"> 34074412

</font>
<span class="style2"> <font color="#99CC00"> -</font> </span> <span class="style3">    
  Address:No.40,Haizhu District,Guangzhou </span>
<a href="#">
<span class="style5"> <font color="#99CC00"> <a href="javascript:window.external.AddFavorite('http://chenstorm.tengyi.cn','Storm Hut')"> Add Favorite</a> </font> </span> <font color="#99CC00">
</font> </a> <font color="#99CC00"> </font> </span> <span lang="en-us"> <span class="style4"> <a href="#"> <font color="#99CC00"> <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage

('http://chenstorm.tengyi.cn');" href="http://chenstorm.tengyi.cn"> Set Homepage</a> </font> </a> </span> </span> </span> <font color="#99CC00">

</font> <span class="style3"> <span lang="en-us">
</span> <span lang="en-us">
</span> Copyright<span lang="en-us">
</span> 2005 ★♂♀<span lang="en-us"> Storm
Studio</span> ♂♀★</span> </p>
<p class="style1"> <span class="style4"> <font color="#99CC00"> </font> </span> </p>
</div>
<div id="Layer2" style="position:absolute; left:144px; top:122px; width:652px; height:117px; z-index:2">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="709" height="409">
<param name="movie" value="images/pu.swf">
<param name="quality" value="High">
<param name="wmode" value="Transparent">
<param name="_cx" value="16484">
<param name="_cy" value="10583">
<param name="FlashVars" value>
<param name="Src" value="images/pu.swf">
<param name="Play" value="0">
<param name="Loop" value="-1">
<param name="SAlign" value>
<param name="Menu" value="-1">
<param name="Base" value>
<param name="AllowScriptAccess" value>
<param name="Scale" value="ShowAll">
<param name="DeviceFont" value="0">
<param name="EmbedMovie" value="0">
<param name="BGColor" value>
<param name="SWRemote" value>
<param name="MovieData" value>
<param name="SeamlessTabbing" value="1">
<param name="Profile" value="0">
<param name="ProfileAddress" value>
<param name="ProfilePort" value="0">
<embed src="images/pu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="623" height="400"> </embed> </object>
</div>
<TABLE height=394 cellSpacing=0 cellPadding=0 width=466 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top width=49 height=10> <IMG
src="images/in_1.jpg" width="1000" height="196"> </TD>
</TR>
<TR>
<TD height="74" vAlign=top>
<TABLE height=48 cellSpacing=0 cellPadding=0 width=722 border=0>
<TBODY>
<TR vAlign=top>
<TD width=378> <IMG
src="images/in_2.jpg" width="375" height="74"> </TD>
<TD width=89> <a href="main.htm">
<IMG
src="images/in_3.jpg" border="0" style="CURSOR: hand"
onclick=javascript:close_open(); onfocus=this:blur(); width="204" height="74"> </a> </TD>
<TD width=255> <IMG
src="images/in_4.jpg" width="421" height="74"> </TD>
</TR> </TBODY> </TABLE> </TD> </TR>
<TR>
<TD height="124" vAlign=top background="images/in_5.jpg"> <p> <span class="style4"> <font color="#99CC00">
<a href="mailto:chenstorm@163.com">
<img border="0" src="images/mail.gif" width="52" height="36"> </a> </font> </span> </p>

搜索更多相关主题的帖子: META 源代码 LINK name Studio 
2005-12-15 11:34
linuxpluto
Rank: 4
等 级:贵宾
威 望:13
帖 子:889
专家分:23
注 册:2005-8-14
收藏
得分:0 
HTML> <HEAD>
<TITLE> ★♂♀Storm Studio♂♀★</TITLE>
<META content="★♂♀Storm Studio♂♀★ " name=author>
<META
name=description>
<META
name=keywords>
<META
name=classification>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK

type=text/css rel=stylesheet>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: "宋体";
font-size: 12px;
}
.style2 {color: #FFFFFF}
.style3 {color: #99CC00}
.style4 {color: #FF0000}
.style5 {color: #000000}
-->
</style>
</HEAD>
<BODY leftMargin=0 topMargin=0 onload=javascript:close_open();>
<div id="Layer1" style="position:absolute; left:220; top:562; width:556; height:64; z-index:1">
<p class="style1"> <span class="style2"> --<font color="#99CC00">
</font> </span> <span class="style3"> <span lang="en-us">
</span> W<span lang="en-us"> eb
Master</span> : <a href="mailto:chenstorm@163.com"> <span lang="en-us"> c</span> </a> <span lang="en-us"> <a href="mailto:chenstorm@163.com"> henstorm</a> </span> >> QQ:<span lang="en-us"> 249207136</span> >>
<span lang="en-us"> Tel</span> :<span lang="en-us"> 020-</span> </span> <font color="#99CC00"> 34074412

</font>
<span class="style2"> <font color="#99CC00"> -</font> </span> <span class="style3">    
  Address:No.40,Haizhu District,Guangzhou </span>
<a href="#">
<span class="style5"> <font color="#99CC00"> <a href="javascript:window.external.AddFavorite('http://chenstorm.tengyi.cn','Storm Hut')"> Add Favorite</a> </font> </span> <font color="#99CC00">
</font> </a> <font color="#99CC00"> </font> </span> <span lang="en-us"> <span class="style4"> <a href="#"> <font color="#99CC00"> <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage

('http://chenstorm.tengyi.cn');" href="http://chenstorm.tengyi.cn"> Set Homepage</a> </font> </a> </span> </span> </span> <font color="#99CC00">

</font> <span class="style3"> <span lang="en-us">
</span> <span lang="en-us">
</span> Copyright<span lang="en-us">
</span> 2005 ★♂♀<span lang="en-us"> Storm
Studio</span> ♂♀★</span> </p>
<p class="style1"> <span class="style4"> <font color="#99CC00"> </font> </span> </p>
</div>
<div id="Layer2" style="position:absolute; left:144px; top:122px; width:652px; height:117px; z-index:2">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="709" height="409">
<param name="movie" value="images/pu.swf">
<param name="quality" value="High">
<param name="wmode" value="Transparent">
<param name="_cx" value="16484">
<param name="_cy" value="10583">
<param name="FlashVars" value>
<param name="Src" value="images/pu.swf">
<param name="Play" value="0">
<param name="Loop" value="-1">
<param name="SAlign" value>
<param name="Menu" value="-1">
<param name="Base" value>
<param name="AllowScriptAccess" value>
<param name="Scale" value="ShowAll">
<param name="DeviceFont" value="0">
<param name="EmbedMovie" value="0">
<param name="BGColor" value>
<param name="SWRemote" value>
<param name="MovieData" value>
<param name="SeamlessTabbing" value="1">
<param name="Profile" value="0">
<param name="ProfileAddress" value>
<param name="ProfilePort" value="0">
<embed src="images/pu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="623" height="400"> </embed> </object>
</div>
<TABLE height=394 cellSpacing=0 cellPadding=0 width=466 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top width=49 height=10> <IMG
src="images/in_1.jpg" width="1000" height="196"> </TD>
</TR>
<TR>
<TD height="74" vAlign=top>
<TABLE height=48 cellSpacing=0 cellPadding=0 width=722 border=0>
<TBODY>
<TR vAlign=top>
<TD width=378> <IMG
src="images/in_2.jpg" width="375" height="74"> </TD>
<TD width=89> <a href="main.htm">
<IMG
src="images/in_3.jpg" border="0" style="CURSOR: hand"
onclick=javascript:close_open(); onfocus=this:blur(); width="204" height="74"> </a> </TD>
<TD width=255> <IMG
src="images/in_4.jpg" width="421" height="74"> </TD>
</TR> </TBODY> </TABLE> </TD> </TR>
<TR>
<TD height="124" vAlign=top background="images/in_5.jpg"> <p> <span class="style4"> <font color="#99CC00">
<a href="mailto:chenstorm@163.com">
<img border="0" src="images/mail.gif" width="52" height="36"> </a> </font> </span> </p> <--update by lyx 20051209 增加签名及精华说明--><--end-->
语法错误最好自己找

吃的比猪还差,干的比驴还累,起的比鸡还早,睡得比小姐还晚,挣得比民工还少,看起来比谁都好——苦命的人.人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己
2005-12-16 09:33
Littlebird
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-12-15
收藏
得分:0 

楼上的大哥,我自己实在是找不出错误所在,才来向高手们求救的.本人的的确确的菜鸟,大哥你就伸伸援手吧,多谢了,多谢了,多谢了!!!

2005-12-16 15:45
linuxpluto
Rank: 4
等 级:贵宾
威 望:13
帖 子:889
专家分:23
注 册:2005-8-14
收藏
得分:0 

你的代码帖出来找不到具体的位置
红字部分,是因为没有this:blur()的写法,所以没的对象,应该是this.blur()


吃的比猪还差,干的比驴还累,起的比鸡还早,睡得比小姐还晚,挣得比民工还少,看起来比谁都好——苦命的人.人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己
2005-12-16 16:34
Littlebird
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-12-15
收藏
得分:0 

I 服了you!这么细小的错误都被你查到了,的确是这个标点符号错误,第一处错误也就解决了,太谢谢了!第二处错误的位置我找到了(在如下代码中的最后一行),但还是不知道怎么改正,还得麻烦大哥了,再次多谢!

<HTML><HEAD>
<script Language="JavaScript">

var msg="Welcome to Storm Hut";

var interval = 100;

var spacelen = 120;

var space10=" ";

var seq=0;

function Scroll() {

len = msg.length;

window.status = msg.substring(0, seq+1);

seq++;

if ( seq >= len ) {

seq = spacelen;

window.setTimeout("Scroll2();", interval );

}

else

window.setTimeout("Scroll();", interval );

}

function Scroll2() {

var out="";

for (i=1; i<=spacelen/space10.length; i++) out +=

space10;

out = out + msg;

len=out.length;

window.status=out.substring(seq, len);

seq++;

if ( seq >= len ) { seq = 0; };

window.setTimeout("Scroll2();", interval );

}

Scroll();

</script>
<TITLE>★♂♀Storm Studio♂♀★</TITLE>
<META content="★♂♀Storm Studio♂♀★ " name=author>
<META
name=description>
<META
name=keywords>
<META
name=classification>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK

type=text/css rel=stylesheet>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: "宋体";
font-size: 12px;
}
.style2 {color: #FFFFFF}
.style3 {color: #99CC00}
.style4 {color: #FF0000}
.style5 {color: #000000}
-->
</style>
</HEAD>
<BODY leftMargin=0 topMargin=0 onload=javascript:close_open();>

2005-12-17 00:43
linuxpluto
Rank: 4
等 级:贵宾
威 望:13
帖 子:889
专家分:23
注 册:2005-8-14
收藏
得分:0 
一点标准的观念都没的啊,属性值全部都要加引号,看看关于网页标准的东西吧
onload="javascript:close_open()">

吃的比猪还差,干的比驴还累,起的比鸡还早,睡得比小姐还晚,挣得比民工还少,看起来比谁都好——苦命的人.人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己
2005-12-17 10:39
快速回复:2处JS错误,谁帮我修正一下?多谢了!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.072577 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved