哪里出了错??
才开始学网页制作,现有一个小问题,网页里插入一个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]+" "
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>