한국어
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http ://www.w3.org/1999/xhtml"> <head> <title></title><style type="text/css"> <!-- #f_div{width:150px; 높이:100px; 여백:0 자동; 오버플로:숨김;} #f_imgDiv{너비:100%; 높이:100px; 오버플로:숨김;} #f_img{filter:progid:DXImageTransform.Microsoft.Fade(Overlap=1.00); 테두리:0;} #f_infoDiv{너비:100%;상단:-20px !important;상단:-22px; 위치:상대적;} #f_buttonDiv{너비:100%; 여백 오른쪽:1px; 높이:21px; 오버플로:숨김; 텍스트 정렬:왼쪽;} #f_line{너비:100%;높이:1px;배경:#fff; 오버플로:숨겨짐;필터:progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, 끝X=50, 끝Y=100,style=1,opacity=0,finishOpacity=100)} #f_buttonDiv div{너비:1px ;높이:21px; 배경:#fff; float:right;} #f_buttonDiv .bg{너비:21px; 높이:21px; 배경:#fff; 플로트:오른쪽; filter:Alpha(Opacity=40);} #f_buttonDiv a{width:21px;height:15px !important;height:17px;float:right;padding-top:5px;color:#fff;font-family:Arial, Helvetica , sans-serif;font-size:10px;text-align:center;display:block;overflow:hidden;text-꾸밈:none;position:absolute;} #f_buttonDiv a:link,#f_buttonDiv a:visited,#f_buttonDiv a:활성{색상:#000;} #f_buttonDiv a:hover{배경:#FF840C;색상:#fff;} #f_buttonDiv a.on:link,#f_buttonDiv a.on:visited,#f_buttonDiv a.on:활성 ,#f_buttonDiv a.on:hover{배경:#FF840C;color:#fff;} #f_buttonDiv a.on:hover{배경:#FF6600;} #f_text{height:20px; 줄 높이:20px; 오버플로:hidden;text-align:center;} #f_text a:link,#f_text a:visited,#f_text a:active{color:#000;text-꾸밈: 없음;} #f_text a:hover{color:# FF6600;텍스트 장식: 없음;} --> </style> </head> <body> <div id="ad_pic"> <div id="f_div"> <!--图文区域--> <div id="f_imgDiv"></div> <div id="f_infoDiv"> <!--数字按钮区域--> <div id="f_buttonDiv"></div> </div> </div> <! --焦点文字区域--> <div id="f_text" class="f12b"></div> <script 언어="javascript" type="text/javascript"> <!-- //http의 추가 자바스크립트 ://www.downcodes.com function p$(string){ document.write(string); } 함수 $(id){ return document.getElementById(id); } functionchange_menu(id,content_id,num,total_ztc_menu,menu_on,menu_off){ for (var i=1;i<=total_ztc_menu;i++){ $(id+i).className=menu_off; $(content_id+i).style.display='없음'; } $(id+num).className=menu_on; $(content_id+num).style.display='차단'; } //可修改区域 var imgWidth=150; var imgHeight=100; var _timeOut_=5000; var show_text = false; //是否显示焦点文字 var timeOut=_timeOut_; var timeOut2=_timeOut_/2;//onmouseout img사용 가능 var now=0; //계속 var target="_blank"; //실행 방법 var 버튼_on ='on'; //当前焦点对应按钮의样式name var 버튼_off ='';//不当前焦点对应按钮的样式name //불가능 var imgUrl = new Array(); var imgText = 새로운 배열(); var imgLink = 새로운 배열(); var imgAlt= 새로운 배열(); var menuList = new Array();//표시 메뉴 var ver=2; //兼容浏览器版本 默认2 为不ie var firstTime=true; var n =-1; //표시 메뉴 menuList[++n]='XX'; imgUrl[n]=''; imgText[n]='<a href="#" target="_blank">저장일</a>'; imgLink[n]='http://www.downcodes.com'; imgAlt[n]='内容一'; //표시 메뉴 menuList[++n]='XX'; imgUrl[n]=''; imgText[n]='<a href="#" target="_blank">저장 두</a>'; imgLink[n]='http://www.downcodes.com'; imgAlt[n]='다음'; //표시 메뉴 menuList[++n]='XX'; imgUrl[n]=''; imgText[n]='<a href="#" target="_blank">内容三</a>'; imgLink[n]='http://www.downcodes.com'; imgAlt[n]='内容삼'; //표시 메뉴 menuList[++n]='XX'; imgUrl[n]=''; imgText[n]='<a href="#" target="_blank">内容4</a>'; imgLink[n]='http://www.downcodes.com'; imgAlt[n]='内容4'; 변수 개수=0; for (var i=0;i<imgUrl.length;i++) { if( (imgUrl[i]!="") && (imgText[i]!="")&& (imgLink[i]!="") && (imgAlt[i]!="")) { 개수++; } else { 중단; } } //중복css var Each_width=Math.ceil((imgWidth-(count-1))/count); var last_width=imgWidth-each_width*(count-1)-(count)+1; 함수 변경(){ if (ver==1){ with($('f_img').filters[0]){ 전환=1; 적용하다(); 놀다(); } } if (firstTime){ firstTime=false;timeOut=_timeOut_/1000;} else{ $('f_img').src=imgUrl[now]; $('f_img').alt=imgAlt[지금]; $('f_imgLink').href=imgLink[지금]; if (show_text) $('f_text').innerHTML=imgText[now]; for (var i=0;i<count;i++) { $('b'+i).className="버튼"; //$('f_menu'+i).className=""; } $('b'+now).className="on"; //$('f_menu'+now).className="on"; now=(now>=imgUrl.length-1)?0:now+1; timeOut=_timeOut_; } theTimer=setTimeout("change()", timeOut); } 함수 b_change(num){ window.clearInterval(theTimer); 지금=숫자; 첫 번째 시간=거짓; 변화(); } //渐变line 그리기 (即css:f_line) function draw_line(){ var div = document.createElement("div"); div.id = 'f_line'; $('f_infoDiv').insertBefore(div,$('f_infoDiv').childNodes.item(0)); } //설명 start //그림 var a = document.createElement("a"); a.id="f_imgLink"; a.target=대상; a.href=imgLink[지금]; $('f_imgDiv').appendChild(a); var img = document.createElement("img"); img.id="f_img"; img.width=imgWidth; img.height=img높이; img.src=imgUrl[지금]; img.alt=imgAlt[지금]; a.appendChild(img); //자세한 내용 for (var i=count-1;i>=0;i--){ var div_bg = document.createElement("div"); div_bg.id = 'div_bg'+i; div_bg.className='bg'; $('f_buttonDiv').appendChild(div_bg); var a = document.createElement("a"); a.id = 'b'+i; a.className = (i==now+1)?"button_on":"button_off"; a.title=imgAlt[i]; a.innerHTML=i+1; a.href='javascript:b_change('+i+')'; $('div_bg'+i).appendChild(a); var div= document.createElement("div"); $('f_buttonDiv').appendChild(div); } if (show_text) $('f_text').innerHTML = imgText[now]; //설명 end $('f_img').onmouseover=function(){window.clearInterval(theTimer);} $('f_img').onmouseout=function(){theTimer=setTimeout("change()", timeOut2 );} try{ //滤镜版本 new ActiveXObject("DXImageTransform.Microsoft.Fade"); $('f_img').filters[0].play(); 버전=1; draw_line(); } catch (e){ver=2;} var theTimer = setTimeout("change()", _timeOut_/1000); //--> </script> </div> </body> </html>