下面的脚本,方里面就出错。就是有> 和 <的地方都出错
<script language="javascript">
var picN=-1
function first(){
picN=0
showPict();
}
function back(){
picN--
if(picN<0) picN=0;
document.albumlist.albumtitle.selectedIndex=picN+2;
showPict();
}
function forw(){
picN++
if(picN>0) picN=0
document.albumlist.albumtitle.selectedIndex=picN+2;
showPict();
}
function last(){
picN=sum_photo
showPict();
}
function showPict(){
switch (picN) {
case 0: CardCode="1099276339.jpg"; break;
}
document.cardpict.src="http://loveimg.163.com/myphotoes/78/50/yangming_8888/"+CardCode;
}
function showALBUM() {
if (document.albumlist.albumtitle.selectedIndex>=2){
picN = document.albumlist.albumtitle.selectedIndex-2;
showPict();
}
}
function openPict()
{
if (picN==-1) { document.albumlist.albumtitle.selectedIndex=2;showALBUM();}
switch (picN) {
case 0: CardCode="1099276339.jpg"; break;
}
srcIMG="http://loveimg.163.com/myphotoes/78/50/yangming_8888/"+CardCode;
var newWin=window.open(srcIMG,"myalbum","status=no,scrollbars=1,resizable=1,width=800,height=600");
}