PageSourceSearch

https://www.drp.ne.jp/wp-content/themes/drp/js/slider.js

js drp.ne.jp collected 2026-10-02 11:06:28 UTC 1,010 bytes, 35 lines download raw bytes

1$(function(){
2//(1)ページの概念・初期ページを設定
3var page=0;
4//(2)イメージの数を最後のページ数として変数化
5var lastPage =parseInt($("ul.slider_list li").length-1);
6//(3)最初に全部のイメージを一旦非表示にします
7$("ul.slider_list li").css("display","none");
8//(4)初期ページを表示
9$("ul.slider_list li").eq(page).css("display","block");
10//(5)ページ切換用、自作関数作成
11function changePage(){
12$("ul.slider_list li").fadeOut(1000);
13$("ul.slider_list li").eq(page).fadeIn(900);
14};
15//(6)~秒間隔でイメージ切換の発火設定
16var Timer;
17function startTimer(){
18Timer =setInterval(function(){
19if(page === lastPage){
20page = 0;
21changePage();
22}else{
23page ++;
24changePage();
25};
26},5000);
27}
28//(7)~秒間隔でイメージ切換の停止設定
29function stopTimer(){
30clearInterval(Timer);
31}
32//(8)タイマースタート
33startTimer();
34/*オプションを足す場合はここへ記載*/
35});

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.