1/** 2 * PhotoVanilla Album Script 3 */ 4/* slide show */ 5var pics = new Array("IMG_3498","IMG_3501","IMG_3502","IMG_3510","IMG_3525","IMG_3527","IMG_3530","IMG_3540","IMG_3541","IMG_3441","IMG_3546","IMG_3548","IMG_3551","IMG_3552","IMG_3554","IMG_3555","IMG_3556","IMG_3562","IMG_3567","IMG_3570","IMG_3573","IMG_3576","IMG_3585","IMG_3588","IMG_3504","IMG_3590","IMG_3597","IMG_3598","IMG_3602","IMG_3613","IMG_3616","IMG_4347","IMG_4351","IMG_4355","IMG_4358"); 6var i = 0; 7var tid = 0; 8var delay = 8000; 9var showOn = false; 10var iThumb = 0; 11var iPic = 1; 12var selectedThumb = null; 13 14if (window.location.href.substring(0, 5) == "file:") delay = delay - 3000; 15 16function startShow() { 17 if (selectedThumb != null) 18 i = pics.indexOf(selectedThumb.id); 19 i--; 20 tid = setTimeout("showNextPic()", 1); 21 showOn = true; 22} 23function stopShow() { 24var oTd; 25 frames[iThumb].setFocusTo(pics[i], iThumb); 26 if (tid) clearTimeout(tid); 27 showOn = false; 28 oTd = frames[iPic].document.getElementById("showStat"); 29 oTd.innerHTML = ""; 30} 31function showNextPicNoDelay() 32{ 33 i++; 34 if (i >= pics.length) 35 i = 0; 36 frames[iPic].location = 'pages/' + pics[i] + '.htm'; 37 frames[iThumb].setFocusTo(pics[i], iThumb); 38 showSelectedThumb(pics[i]); 39} 40function showPrevPicNoDelay() 41{ 42 i--; 43 if (i < 0) 44 i = pics.length - 1; 45 frames[iPic].location = 'pages/' + pics[i] + '.htm'; 46 frames[iThumb].setFocusTo(pics[i], iThumb); 47 showSelectedThumb(pics[i]); 48} 49function showNextPic() { 50 showNextPicNoDelay(); 51 tid = setTimeout("showNextPic()", delay); 52} 53function showPic(k) { 54 leftAr = 37; 55 rightAr = 39; 56 upAr = 38; 57 downAr = 40; 58 if (k == rightAr) 59 showNextPicNoDelay(); 60 if (k == leftAr) 61 showPrevPicNoDelay(); 62} 63function showSelectedThumb(id) 64{ 65 if (selectedThumb != null) 66 selectedThumb.className = "border-not-selected-thumb"; 67 selectedThumb = frames[iThumb].document.getElementById(id); 68 selectedThumb.className = "border-selected-thumb"; 69}
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.