中文(简体)
<html> <head> <title> 建站学院幻灯片演示效果 </title> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin //more javascript from http://www.downcodes.com var Interval = 6 ; // 旋转图像之间的延迟(以秒为单位) Interval *= 1000; var 标志时间=0; var image_index = -1;图像列表=新数组(); note_list = 新的 noteArray(10); var number_of_image = image_list.length; var timesnum=0; //下面为图片的位置 image_list[0] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b0-a.jpg"); image_list[1] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b1-a.jpg"); image_list[2] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b2-a.jpg"); image_list[3] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b3-a.jpg"); image_list[4] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b4-a.jpg"); image_list[5] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b5-a.jpg"); image_list[6] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b6-a.jpg"); image_list[7] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b7-a.jpg"); image_list[8] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b8-a.jpg"); image_list[9] = new imageItem("/u/info_img/2009-06/20/i20050429t110509b9-a.jpg"); //下面为图片的说明文字 note_list[0] = "建站学院图片展示效果说明1"; note_list[1] = "建站学院图片展示效果说明2"; note_list[2] = "建站学院图片展示效果说明3"; note_list[3] = "建站学院图片展示效果说明4"; note_list[4] = "建站学院图片展示效果说明5"; note_list[5] = "建站学院图片展示效果说明6 "; note_list[6] = "建站学院图片展示效果说明7"; note_list[7] = "建站学院图片展示效果说明8 "; note_list[8] = "建站学院图片展示效果说明9"; note_list[9] = "建站学院图片展示效果说明10 ";函数 noteArray(size) { this.length=size; for(i=1;i<=size;i++) { this[i]="" } 返回此; } 函数 counternum(){ if( timesnum < 10-1){ timesnum++; document.all.slide_ent.src="about:blank"; document.all.slide_ent.src="http://cn.biz.yahoo.com/slideshow/spaceid_slideshow.html"; } } 函数 run(obj){ 间隔=obj.options[obj.selectedIndex].value*1000;旋转图像(); } 函数停止(){ 间隔=0; } 函数上一个(){ var new_image = getPreviousImage();文档['rImage'].src = new_image; } 函数 next(){ var new_image = getNextImage();文档['rImage'].src = new_image; } 函数 imageItem(image_location) { this.image_item = new Image(); this.image_item.src = image_location; } 函数 noteItem(note) { this.note_item = new Image(); this.note_item.src = 注释; } 函数 get_ImageItemLocation(imageObj) { return(imageObj.image_item.src) } 函数 get_NoteItemLocation(noteObj) { return(noteObj.note_item.src) } 函数生成(x, y) { var range = y - x + 1; return Math.floor(Math.random() * range) + x; } 函数 getPreviousImage() { image_index = image_index-1; if (image_index < 0){ image_index=image_index+10; } var new_image = get_ImageItemLocation(image_list[image_index]); document.all.span_1.innerText=image_index+1; document.all.summary.innerText=note_list[image_index];返回(新图像); } 函数 getNextImage() { image_index = image_index+1; if (image_index >= 10){ image_index=image_index-10; } var new_image = get_ImageItemLocation(image_list[image_index]); document.all.span_1.innerText=image_index+1; document.all.summary.innerText=note_list[image_index];返回(新图像); } 函数rotateImage() { if (interval == 0){ return 1; } if (flagtime == 1){ var now = new Date(); var time1 = now.getTime();变量时间2;时间1=时间1+3000; time2=now.getTime(); while(time2 < time1){ now = new Date(); time2=now.getTime();标志时间=0; } var new_image = getNextImage();文档['rImage'].src = new_image; var recur_call = "rotateImage('"+'rImage'+"')"; setTimeout(recur_call,间隔); } // 结束 --> </script> <meta http-equiv="content-type" content="text/html; charset=gb2312"> <script type="text/javascript" src="http:// cn.yimg.com/script/hp/ygcss.js"></script> </head> <body bgColor=#ffffff topmargin=0 leftmargin=0> <iframe id="slide_ent" src="http:// cn.biz.yahoo.com/slideshow/spaceid_slideshow.html" style="display:none"></iframe> <center> <center> <table width="468" border="0" cellspacing="0" cellpadding ="0" bgcolor="#FFF2DF"> <tr> <td valign="top"align="center"> <表格宽度="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:solid 1px #766D7C;"> <tr> <td height="47"><img src="/images/logo.gif"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#9F90CC" style="border-top:solid 1px #ffffff;"> <tr> <td height= "25" valign="bottom"> <!----> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="text-缩进:5px;"></td> <td width="100%"> <table width="98%" cellspacing="0" cellpadding="0" border="0"> <tralign="center" > <td nowarp><big><b>酷图投影:</b></big></td> <td nowrap width=10%>连接</td> <td></td> <td width ="10%" nowrap >连接1</td> <td></td> <td width="10%" nowrap>连接2</td> <td></td> <td width="10% " nowrap>连接3</td> <td></td> <td width="10%" nowrap>连接4</td> <td></td> <td width="10%" nowrap>连接5</td> <td></td> <td width="14%" nowrap>连接6</td> </tr> </table> </td> <td></td> </tr > </table> <!--/--> </td> </tr> <tr> <td><img src="/u/info_img/2009-06/20/slideshow_bg.gif" width=" 468" height="3" border="0"></td> </tr> </table> <表宽度="100%" border="0" cellspacing="0" cellpadding="0"> < tr> <td height="13"></td> </tr> </table> <!--img447*333--> <table width="447" height="333" border="0" cellspacing ="0" cellpadding="0"> <tr> <tdalign="center"><img name="rImage" src=/u/info_img/2009-06/20/i20050429t110509b0-a.jpg onload="counternum ()" border="0"></td> </tr> </table> <!--/img447*333--> <!--text--> <table width="100%" border= "0" cellspacing="0" cellpadding="0"> <tr> <tdalign="center" id="summary" height="28"></td> </tr> </table> <!- -/text--> <!--bottom--> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="/ u/info_img/2009-06/20/slideshow_bg_3.gif" width="468" height="4" border="0"></td> </tr> <tr> <td bgcolor="#C9BEEB" 高度="25"> <表宽度="100%" border="0" cellspacing="0" cellpadding="1"> <表单名称=form1> <tr> <td width="80"></td> <td class="sbody"align="left"><span id=span_1>1</span>/10 <img src="/u/info_img/2009-06/20/slideshows_bottom_1 .gif" width="35" height="21"align="absmiddle" border="0" alt="开始" onclick="run(document.form1.select1)"> <img src=" /u/info_img/2009-06/20/slideshows_bottom_2.gif" width="35" height="21"align="absmiddle" border="0" alt="" onclick="stop()"> <img src="/u/info_img/2009-06/20/slideshows_bottom_3.gif" width="35" height="21"align="absmiddle" border="0" alt="前一张" onclick ="previous()"> <img src="/u/info_img/2009-06/20/slideshows_bottom_4.gif" 宽度="35" 高度="21" 对齐="absmiddle" 边框="0 " alt="后一张" onclick="next()"> 速度: <select name="select1" onchange="run(this)"> <option value="12">12 秒< /选项> <选项选择值=“6”>6秒</选项> <选项值=“3”>3秒</选项> <选项值=“9”>9秒</选项> < /select></td> </tr> </form> </table> </td> </tr> <tr> <td height="1" bgcolor="#625A68"></td> </ tr> </table> <!--/bottom--> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:solid 1px #ffffff; border-bottom:solid 1px #ffffff;"> <tr> <td bgcolor="#E2DCF5" height="28"> <table width="100%" border="0" cellspacing="0" cellpadding="0 "> <tr> <td width="10"></td> <td width="1%"></td> <td width="70" nowrap><a href="http://www. downcodes.com" target="_blank">网页制作</a></td> <td width="1%"></td> <td width="70" nowrap><a href="http:// /www.downcodes.com" target="_blank">更多精彩</a></td> <td width="1%"></td> <td width="70" nowrap><a href= "http://www.downcodes.com" target="_blank">建站学院</a></td> <td width="215"></td> </tr> </table> </td > </tr> </table> </td> </tr> </table> <!--/--></center> <脚本语言=javascript> flagtime=1;旋转图像(); Slideit() </script> </body> </html>