| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 529 人关注过本帖
标题:哪里出了错??
只看楼主 加入收藏
orangeh998
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-12-14
收藏
 问题点数:0 回复次数:2 
哪里出了错??
才开始学网页制作,现有一个小问题,网页里插入一个java小程序,怎么也运行不起来,跳出来脚本错误:(未结束的字符串常量)有哪位高手能帮忙看看哪里出错了?


<script language="JavaScript">
<!--
var sliderwidth=640
var sliderheight=100
var sliderspeed=12
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a title="剧照1"><img src="images/pic1.jpg"
border=1></a>'
leftrightslide[1]='<a title="剧照2"><img src="images/pic2.jpg"
border=1></a>'
leftrightslide[2]='<a title="剧照3"><img src="images/pic3.jpg"
border=1></a>'
leftrightslide[3]='<a title="剧照4"><img src="images/pic4.jpg"
border=1></a>'
leftrightslide[4]='<a title="剧照5"><img src="images/pic5.jpg"
border=1></a>'
leftrightslide[5]='<a title="剧照6"><img src="images/pic6.jpg"
border=1></a>'
leftrightslide[6]='<a title="剧照7"><img src="images/pic7.jpg"
border=1></a>'
leftrightslide[7]='<a title="剧照8"><img src="images/pic8.jpg"
border=1></a>'
leftrightslide[8]='<a title="剧照9"><img src="images/pic9.jpg"
border=1></a>'
var copyspeed=slidespeed
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide[i]+"&nbsp;&nbsp;"
if (document.all){
document.write('<marquee id="ieslider" scrollAmount=0
style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
ieslider.onmouseout=new Function("if (document.readyState=='complete')
ieslider.scrollAmount=slidespeed")}
function regenerate(){
window.location.reload()}
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide()}
if(document.all)
ieslider.scrollAmount=slidespeed}
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02.document.write('<nobr>'+finalslide+'</nobr>')
document.ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01.document.ns_slider02.document.width
scrollslide()}
function scrollslide(){
if (document.Ns_slider01.document.ns_slider02.left>=thelength*(-1)){
document.ns_slider01.document.ns_slider02.left-=slidespeed
setTimeout("scrollslide()",100)}
else{
document.ns_slider01.document.ns_slider02.left=sliderwidth
scrollslide()}}
window.onload=regenerate2
//-->
</script>
搜索更多相关主题的帖子: java小程序 网页制作 images border 字符串 
2005-12-14 10:05
bestlife
Rank: 1
等 级:新手上路
帖 子:484
专家分:0
注 册:2005-7-8
收藏
得分:0 
<script language="JavaScript">
<!--
var sliderwidth=640
var sliderheight=100
var sliderspeed=12
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a title="剧照1"><img src="images/pic1.jpg" border="1"></a>'
leftrightslide[1]='<a title="剧照2"><img src="images/pic2.jpg" border="1"></a>'
leftrightslide[2]='<a title="剧照3"><img src="images/pic3.jpg" border="1"></a>'
leftrightslide[3]='<a title="剧照4"><img src="images/pic4.jpg" border="1"></a>'
leftrightslide[4]='<a title="剧照5"><img src="images/pic5.jpg" border="1"></a>'
leftrightslide[5]='<a title="剧照6"><img src="images/pic6.jpg" border="1"></a>'
leftrightslide[6]='<a title="剧照7"><img src="images/pic7.jpg" border="1"></a>'
leftrightslide[7]='<a title="剧照8"><img src="images/pic8.jpg" border="1"></a>'
leftrightslide[8]='<a title="剧照9"><img src="images/pic9.jpg" border="1"></a>'
var copyspeed=sliderspeed
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide[i]+"&nbsp;&nbsp;"
if (document.all){
document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=sliderspeed")
}
function regenerate(){
window.location.reload()}
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide()}
if(document.all)
ieslider.scrollAmount=sliderspeed}
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02.document.write('<nobr>'+finalslide+'</nobr>')
document.ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01.document.ns_slider02.document.width
scrollslide()}
function scrollslide(){
if (document.Ns_slider01.document.ns_slider02.left>=thelength*(-1)){
document.ns_slider01.document.ns_slider02.left-=sliderspeed
setTimeout("scrollslide()",100)}
else{
document.ns_slider01.document.ns_slider02.left=sliderwidth
scrollslide()}}
window.onload=regenerate2
//-->
</script>

修炼修炼再修炼 成长成长再成长
2005-12-14 11:33
orangeh998
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-12-14
收藏
得分:0 
太感谢了!!!
2005-12-14 11:51
快速回复:哪里出了错??
数据加载中...
 
   



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

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