1/** 2 * Image horizontal reel scroll slideshow 3 * Copyright (C) 2011 - 2023 www.gopiplus.com 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19var copyspeed = IHRSS_SPEED; 20IHRSS_SLIDESRARRAY='<nobr>'+IHRSS_SLIDESRARRAY.join(IHRSS_IMGGAP)+'</nobr>'; 21IHRSS_SLIDESRARRAY1='<nobr>'+IHRSS_SLIDESRARRAY1.join(IHRSS_IMGGAP)+'</nobr>'; 22var iedom = document.all||document.getElementById; 23if (iedom)
24document.write('<span id="temp" style="visibility:hidden;top:-100px;left:-9000px;width:98%;">'+IHRSS_SLIDESRARRAY1+'</span>'); 25var actualwidth = ''; 26var cross_slide, ns_slide; 27 28function fillup() { 29 if (iedom) { 30 cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; 31 cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; 32 cross_slide.innerHTML=cross_slide2.innerHTML=IHRSS_SLIDESRARRAY; 33 actualwidth = document.all ? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; 34 35 //Comment the below 3 line if any problem in the reel 36 if( cross_slide.offsetWidth > actualwidth) { 37 actualwidth = cross_slide.offsetWidth; 38 } 39 cross_slide2.style.left = actualwidth + IHRSS_PIXELGAP + "px"; 40 } 41 else if (document.layers) { 42 ns_slide=document.ns_slidemenu.document.ns_slidemenu2; 43 ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; 44 ns_slide.document.write(IHRSS_SLIDESRARRAY); 45 ns_slide.document.close(); 46 actualwidth=ns_slide.document.width; 47 ns_slide2.left=actualwidth+IHRSS_PIXELGAP; 48 ns_slide2.document.write(IHRSS_SLIDESRARRAY); 49 ns_slide2.document.close(); 50 } 51 lefttime=setInterval("slideleft()",30); 52} 53window.onload=fillup 54 55function slideleft(){ 56 if (iedom){ 57 if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) 58 cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; 59 else 60 cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+IHRSS_PIXELGAP+"px"; 61 62 if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) 63 cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; 64 else 65 cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+IHRSS_PIXELGAP+"px"; 66 } 67 else if (document.layers){ 68 if (ns_slide.left>(actualwidth*(-1)+8)) 69 ns_slide.left-=copyspeed; 70 else 71 ns_slide.left=ns_slide2.left+actualwidth+IHRSS_PIXELGAP; 72 73 if (ns_slide2.left>(actualwidth*(-1)+8)) 74 ns_slide2.left-=copyspeed; 75 else 76 ns_slide2.left=ns_slide.left+actualwidth+IHRSS_PIXELGAP; 77 } 78} 79 80if (iedom||document.layers) { 81 with (document) {
82 //document.write('<table border="0" cellspacing="0" cellpadding="0"><td>'); 83 if (iedom) { 84 write('<div style="position:relative;width:'+IHRSS_WIDTH+';height:'+IHRSS_HEIGHT+';overflow:hidden">'); 85 write('<div style="position:absolute;width:'+IHRSS_WIDTH+';height:'+IHRSS_HEIGHT+';background-color:'+IHRSS_BGCOLOR+'" onMouseover="copyspeed=0" onMouseout="copyspeed=IHRSS_SPEED">'); 86 write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>'); 87 write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>'); 88 write('</div></div>') 89 } 90 else if (document.layers){ 91 write('<ilayer width='+IHRSS_WIDTH+' height='+IHRSS_HEIGHT+' name="ns_slidemenu" bgColor='+IHRSS_BGCOLOR+'>'); 92 write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=IHRSS_SPEED"></layer>'); 93 write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=IHRSS_SPEED"></layer>'); 94 write('</ilayer>'); 95 } 96 //document.write('</td></table>'); 97 } 98}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.