<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><!-- saved from url=(0037)http://www.dfhyey.com/CYZS_13717.html --><HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE></TITLE><META name=description content=""><META name=keywords content=""><META name=GENERATOR content="MSHTML 8.00.7600.16853"><META content="text/html; charset=gb2312" http-equiv=Content-Type><META content=IE=EmulateIE7 http-equiv=X-UA-Compatible><LINK rel=stylesheet type=text/css href="/5.7/templets/p2/CYZS_files//style.css"><SCRIPT type=text/javascript src="/5.7/templets/p2/CYZS_files//activeX.js"></SCRIPT></HEAD><BODY><FORM id=aspnetForm method=post name=aspnetForm action=CYZS.aspx?albumid=13717><DIV><INPUT id=__VIEWSTATE value=/wEPDwUIODgzOTI5ODNkZALQJlK9U3L9Mw1FdkjJr6614M2/ type=hidden name=__VIEWSTATE> </DIV>
<DIV id=content><SCRIPT language=javascript type=text/javascript src="/5.7/templets/p2/CYZS_files//jquery-1.2.6.pack.js"></SCRIPT><SCRIPT language=javascript type=text/javascript> function ShowMaxImg(imgUrl,title,index) { document.getElementById("showImg").src=imgUrl; document.getElementById("showTitle").innerHTML=title; document.getElementById("showImg").currentid=index; } function ImgLeft() { var imgList=document.getElementById("ImgList"); var li=imgList.getElementsByTagName("li"); var firstIndex; var maxIndex; if(li.length<=6) { return; } firstIndex=parseInt(li[0].id.replace("li","")); maxIndex=parseInt(li[li.length-firstIndex].id.replace("li","")); if(maxIndex-firstIndex>6) { var i=0; while(i<6) { imgList.appendChild(li[0]); i++; } } else { alert("己到最右边了"); } updateImgStatu(); } function ImgRight() { var imgList=document.getElementById("ImgList"); var li=imgList.getElementsByTagName("li"); var firstIndex; var maxIndex; if(li.length<=6) { return; } firstIndex=parseInt(li[0].id.replace("li","")); maxIndex=parseInt(li[li.length-firstIndex].id.replace("li","")); if(firstIndex>6) { var i=0; while(i<6) { imgList.insertBefore(li[li.length-1],li[0]); i++; } } else { alert("己到最左边了"); } updateImgStatu(); } function updateImgStatu() { var imgList=document.getElementById("ImgList"); var li=imgList.getElementsByTagName("li"); var firstIndex; var maxIndex; firstIndex=parseInt(li[0].id.replace("li","")); maxIndex=parseInt(li[li.length-firstIndex].id.replace("li","")); if(firstIndex>1) { document.getElementById("imgRight").src="http://webstatic.zgyey.com/Themes/K4091M37/images/picpage_bt01-2.gif"; } else { document.getElementById("imgRight").src="http://webstatic.zgyey.com/Themes/K4091M37/images/picpage_bt01-1.gif"; } if((firstIndex+6)>maxIndex) { document.getElementById("imgLeft").src="http://webstatic.zgyey.com/Themes/K4091M37/images/picpage_bt02-1.gif"; } else { document.getElementById("imgLeft").src="http://webstatic.zgyey.com/Themes/K4091M37/images/picpage_bt02-2.gif"; } } function showNext() { var index=$("#showImg").attr("currentid"); var currentIndex=parseInt(index)+1; var imgList=document.getElementById("ImgList"); var img=imgList.getElementsByTagName("img"); var imgcount=img.length; if(index>=imgcount) { if(confirm("己到最后一张,是否转到第一张?")==true) { var li=imgList.getElementsByTagName("li"); var i=0; while(i<(li.length-6)) { imgList.insertBefore(li[li.length-1],li[0]); i++; } updateImgStatu(); document.getElementById("showImg").src=$("#img1").attr("maxurl"); document.getElementById("showImg").currentid="1"; return; } else { return; } } if(index%6==0) { ImgLeft(); } var maxUrl=$("#img"+currentIndex).attr("maxurl"); document.getElementById("showImg").src=maxUrl; document.getElementById("showImg").currentid=currentIndex; } $(document).ready ( function() { /* var imgList=document.getElementById("ImgList"); var img=imgList.getElementsByTagName("img"); for(var i=0;i<img.length;i++) { $("#"+img[i].id).fadeTo("normal",0.5); $("#"+img[i].id).mouseover(function (){$(this).fadeTo("normal",1);}); $("#"+img[i].id).mouseout(function (){$(this).fadeTo("normal",0.5);}); } */ } );</SCRIPT><DIV class=about><DIV id=balloon></DIV><!--随页面滚动--><DIV style="Z-INDEX: 5; POSITION: absolute" id=divMenu><IMG src="/5.7/templets/p2/CYZS_files//ren2.gif" width=73 height=217></DIV><SCRIPT type=text/javascript src="/5.7/templets/p2/CYZS_files//gd.js"></SCRIPT><!--end--><UL> <LI class=top> <P class=exhibition_title></P> <LI class=bg> <DIV class=text> <DIV class=piclbox> <UL> <LI><IMG style="CURSOR: hand" id=imgRight onclick=ImgRight(); src="/5.7/templets/p2/CYZS_files//picpage_bt01-1.gif"> </LI> <LI> <DIV class=picsingle> <UL style="WIDTH: 690px; HEIGHT: 100px; OVERFLOW: hidden" id=ImgList> <LI id=li33><IMG style="CURSOR: hand" id=img33 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J8.jpg',''图片测试2','33');" src="/5.7/uploads/allimg/110904/1-110Z4160J8.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J8.jpg " style="cursor:hand;"/></LI><LI id=li34><IMG style="CURSOR: hand" id=img34 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9.jpg',''图片测试2','34');" src="/5.7/uploads/allimg/110904/1-110Z4160J9.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9.jpg " style="cursor:hand;"/></LI><LI id=li35><IMG style="CURSOR: hand" id=img35 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9-50.jpg',''图片测试2','35');" src="/5.7/uploads/allimg/110904/1-110Z4160J9-50.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9-50.jpg " style="cursor:hand;"/></LI><LI id=li36><IMG style="CURSOR: hand" id=img36 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9-51.jpg',''图片测试2','36');" src="/5.7/uploads/allimg/110904/1-110Z4160J9-51.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9-51.jpg " style="cursor:hand;"/></LI><LI id=li37><IMG style="CURSOR: hand" id=img37 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9-52.jpg',''图片测试2','37');" src="/5.7/uploads/allimg/110904/1-110Z4160J9-52.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9-52.jpg " style="cursor:hand;"/></LI><LI id=li38><IMG style="CURSOR: hand" id=img38 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160K0.jpg',''图片测试2','38');" src="/5.7/uploads/allimg/110904/1-110Z4160K0.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160K0.jpg " style="cursor:hand;"/></LI><LI id=li39><IMG style="CURSOR: hand" id=img39 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160K0-50.jpg',''图片测试2','39');" src="/5.7/uploads/allimg/110904/1-110Z4160K0-50.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160K0-50.jpg " style="cursor:hand;"/></LI><LI id=li40><IMG style="CURSOR: hand" id=img40 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160K1.jpg',''图片测试2','40');" src="/5.7/uploads/allimg/110904/1-110Z4160K1.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160K1.jpg " style="cursor:hand;"/></LI> </UL></DIV></LI> <LI><IMG style="CURSOR: hand" id=imgLeft onclick=ImgLeft(); src="/5.7/templets/p2/CYZS_files//picpage_bt02-2.gif"> </LI></UL></DIV> <DIV class=clear></DIV> <DIV class=picbig><IMG style="CURSOR: hand" id=showImg title=点击进入下一张 onclick=showNext() src="/5.7/uploads/allimg/110904/1-110Z4160J8.jpg" width=650 height=480 currentid="33"> <P style="LINE-HEIGHT: 30px; HEIGHT: 30px" id=showTitle></P></DIV></DIV> </FORM></BODY></HTML>
自己先在FF下用Firebug调下吧~~
这是dede的模版文件.我生成以后测试过.
主要是下面这段内容不知道错在哪,3L说的加引号的什么的应该没什么关系吧,加了仍然不能正常工作
<UL style="WIDTH: 690px; HEIGHT: 100px; OVERFLOW: hidden" id=ImgList><LI id=li33><IMG style="CURSOR: hand" id=img33 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J8.jpg',''图片测试2','33');" src="/5.7/uploads/allimg/110904/1-110Z4160J8.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J8.jpg " style="cursor:hand;"/></LI><LI id=li34><IMG style="CURSOR: hand" id=img34 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9.jpg',''图片测试2','34');" src="/5.7/uploads/allimg/110904/1-110Z4160J9.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9.jpg " style="cursor:hand;"/></LI><LI id=li35><IMG style="CURSOR: hand" id=img35 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9-50.jpg',''图片测试2','35');" src="/5.7/uploads/allimg/110904/1-110Z4160J9-50.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9-50.jpg " style="cursor:hand;"/></LI><LI id=li36><IMG style="CURSOR: hand" id=img36 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9-51.jpg',''图片测试2','36');" src="/5.7/uploads/allimg/110904/1-110Z4160J9-51.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9-51.jpg " style="cursor:hand;"/></LI><LI id=li37><IMG style="CURSOR: hand" id=img37 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160J9-52.jpg',''图片测试2','37');" src="/5.7/uploads/allimg/110904/1-110Z4160J9-52.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160J9-52.jpg " style="cursor:hand;"/></LI><LI id=li38><IMG style="CURSOR: hand" id=img38 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160K0.jpg',''图片测试2','38');" src="/5.7/uploads/allimg/110904/1-110Z4160K0.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160K0.jpg " style="cursor:hand;"/></LI><LI id=li39><IMG style="CURSOR: hand" id=img39 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160K0-50.jpg',''图片测试2','39');" src="/5.7/uploads/allimg/110904/1-110Z4160K0-50.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160K0-50.jpg " style="cursor:hand;"/></LI><LI id=li40><IMG style="CURSOR: hand" id=img40 onclick="ShowMaxImg('/5.7/uploads/allimg/110904/1-110Z4160K1.jpg',''图片测试2','40');" src="/5.7/uploads/allimg/110904/1-110Z4160K1.jpg" maxurl="/5.7/uploads/allimg/110904/1-110Z4160K1.jpg " style="cursor:hand;"/></LI> </UL></DIV></LI
多了个引号