PageSourceSearch

https://rrjc.com/statics/js/index/main.js?id=20150611&20180204

js rrjc.com collected 2026-10-08 14:59:50 UTC 19,231 bytes, 699 lines download raw bytes

1//banner轮播
2(function (){
3    var i, t;
4    i = 0;
5    t = null;
6    autoRoll();
7    function autoRoll(){
8        if(i >= $('#banner > li').length){
9            i = 0;
10        }
11        $('#line > li:eq('+ i +')').addClass('cur').siblings().removeClass();
12        $('#banner > li:eq('+ i +')').fadeIn(1000).siblings().fadeOut(1000);
13        $('#banner').css({'background' : $('#banner > li:eq('+ i +')').attr('data-bg')});
14        i++;
15    }
16    t = setInterval(autoRoll , 5000);
17    $('#banner,#line').mouseover(function (){
18        clearInterval(t);
19    }).mouseout(function (){
20        t = setInterval(autoRoll , 5000);
21    });
22    $('#line>li').mouseover(function (){
23        $(this).addClass('cur').siblings().removeClass();
24        $('#banner > li:eq('+ $(this).index() +')').fadeIn(1000).siblings().fadeOut(1000);
25        $('#banner').css({'background' : $('#banner > li:eq(' + $(this).index() + ')').attr('data-bg')});
26    });
27})();
28
29//新闻鼠标划过变色
30$('.news-list').find('a').hover(function () {
31    $(this).find('strong,span').css('color','#a97433');
32}, function () {
33    $(this).find('strong').css('color','#333');
34    $(this).find('span').css('color','#999');
35});
36
37$('.info').find('a').hover(function () {
38    $(this).find('p,span').css('color','#a97433');
39}, function () {
40    $(this).find('p').css('color','#333');
41    $(this).find('span').css('color','#999');
42});
43$('#newslist').find('a').hover(function () {
44    $(this).find('strong').css('color','#a97433');
45    $(this).find('span').css('color','#a97433');
46}, function () {
47    $(this).find('strong').css('color','#333');
48    $(this).find('span').css('color','#999');
49});
50
51//新手标 and 体验金
52$('#xsb').mouseenter(function () {
53    $(this).find('b,span').fadeIn();
54});
55$('#tyj').mouseenter(function () {
56    $(this).find('b,span,.times').fadeIn();
57});
58
59//新手标 and 体验金
60(function () {
61    var timer = null;
62    $('#xszq').mouseenter(function () {
63        $('#xszq01').animate({
64            left : 471
65        });
66        $('#xszq').animate({
67            "background-position-x" : 110
68        });
69        $('#xszq02').animate({
70            left : 110
71        });
72        $(this).siblings('.mask').animate({
73            right : 0
74        });
75    });
76
77    $('#xszq02').mouseenter(function () {
78        clearTimeout(timer);
79        $('#xszq,#xszq01,#xszq02').stop(true,false);
80        $(this).siblings('.mask').stop(true,false);
81    });
82
83    $('#xszq,#xszq02').mouseleave(function () {
84        $('#xszq,#xszq01,#xszq02').stop(true,false);
85        $(this).siblings('.mask').stop(true,false);
86        timer = setTimeout(function () {
87            $('#xszq').animate({
88                "background-position-x" : 39
89            });
90            $('#xszq01').animate({
91                left : 110
92            });
93            $('#xszq02').animate({
94                left : -251
95            });
96            $('#xszq').siblings('.mask').animate({
97                right : -180
98            });
99        },50);
100    });
101})();
102
103//特卖
104(function () {
105    var timer = null;
106    $('#tm').mouseenter(function () {
107        $('#tm01').animate({
108            left : 473
109        });
110        $('#tm').animate({
111            'background-position-x' : 110
112        });
113        $('#tm02').animate({
114            left : 110
115        });
116        $(this).siblings('.mask').animate({
117            right : 0
118        });
119    });
120
121    $('#tm02').mouseenter(function () {
122        clearTimeout(timer);
123        $('#tm,#tm01,#tm02').stop(true,false);
124        $(this).siblings('.mask').stop(true,false);
125    });
126
127    $('#tm,#tm02').mouseleave(function () {
128        $('#tm,#tm01,#tm02').stop(true,false);
129        $(this).siblings('.mask').stop(true,false);
130        timer = setTimeout(function () {
131            $('#tm').animate({
132                "background-position-x" : 57
133            });
134            $('#tm01').animate({
135                left : 110
136            });
137            $('#tm02').animate({
138                left : -251
139            });
140            $('#tm').siblings('.mask').animate({
141                right : -180
142            });
143        },50);
144    });
145})();
146
147//V专享
148(function () {
149    var timer = null;
150    $('#vzx').mouseenter(function () {
151        $('#vzx01').animate({
152            left : 473
153        });
154        $('#vzx').animate({
155            'background-position-x' : 110
156        });
157        $('#vzx02').animate({
158            left : 110
159        });
160        $(this).siblings('.mask').animate({
161            right : 0
162        });
163    });
164
165    $('#vzx02').mouseenter(function () {
166        clearTimeout(timer);
167        $('#vzx,#vzx01,#vzx02').stop(true,false);
168        $(this).siblings('.mask').stop(true,false);
169    });
170
171    $('#vzx,#vzx02').mouseleave(function () {
172        $('#vzx,#vzx01,#vzx02').stop(true,false);
173        $(this).siblings('.mask').stop(true,false);
174        timer = setTimeout(function () {
175            $('#vzx').animate({
176                "background-position-x" : 39
177            });
178            $('#vzx01').animate({
179                left : 110
180            });
181            $('#vzx02').animate({
182                left : -251
183            });
184            $('#vzx').siblings('.mask').animate({
185                right : -180
186            });
187        },50);
188    });
189})();
190
191//定投宝
192(function () {
193    var timer = null;
194    $('#dtb').mouseenter(function () {
195        $('#dtb01').animate({
196            left : 473
197        });
198        $('#dtb').animate({
199            "background-position-x" : 110
200        });
201        $('#dtb02').animate({
202            left : 110
203        });
204    });
205
206    $('#dtb02').mouseenter(function () {
207        clearTimeout(timer);
208        $('#dtb,#dtb01,#dtb02').stop(true,false);
209        $(this).siblings('.mask').stop(true,false);
210    });
211
212    $('#dtb,#dtb02').mouseleave(function () {
213        $('#dtb,#dtb01,#dtb02').stop(true,false);
214        $(this).siblings('.mask').stop(true,false);
215        timer = setTimeout(function () {
216            $('#dtb').animate({
217                "background-position-x" : 33
218            });
219            $('#dtb01').animate({
220                left : 110
221            });
222            $('#dtb02').animate({
223                left : -251
224            });
225        },50);
226    });
227})();
228
229//月月赚
230(function () {
231    var timer = null;
232    $('#yyz').mouseenter(function () {
233        $('#yyz').animate({
234            "background-position-x" : "110px"
235        });
236        $('#yyz01').animate({
237            left : 471
238        });
239        $('#yyz02').animate({
240            left : 110
241        });
242        $(this).siblings('.mask').animate({
243            right : 0
244        });
245    });
246    $('#yyz02').mouseenter(function () {
247        clearTimeout(timer);
248        $('#yyz,#yyz01,#yyz02').stop(true,false);
249        $(this).siblings('.mask').stop(true,false);
250    });
251    $('#yyz,#yyz02').mouseleave(function () {
252        $('#yyz,#yyz01,#yyz02').stop(true,false);
253        $(this).siblings('.mask').stop(true,false);
254        timer = setTimeout(function () {
255            $('#yyz01').animate({
256                'left' : 110
257            });
258            $('#yyz').animate({
259                "background-position-x" : 39
260            });
261            $('#yyz02').animate({
262                'left' : -251
263            });
264            $('#yyz').siblings('.mask').animate({
265                right : -180
266            });
267        },50);
268    });
269})();
270
271//债权转让
272(function () {
273    var timer = null;
274    $('#zqzr').mouseenter(function () {
275        $('#zqzr').animate({
276            "background-position-x" : 110
277        });
278        $('#zqzr01').animate({
279            'left' : 471
280        });
281        $('#zqzr02').animate({
282            'left' : 110
283        });
284        $(this).siblings('.mask').animate({
285            right : 0
286        });
287    });
288    $('#zqzr02').mouseenter(function () {
289        clearTimeout(timer);
290        $('#zqzr,#zqzr01,#zqzr02').stop(true,false);
291        $(this).siblings('.mask').stop(true,false);
292    });
293    $('#zqzr,#zqzr02').mouseleave(function () {
294        $('#zqzr,#zqzr01,#zqzr02').stop(true,false);
295        $(this).siblings('.mask').stop(true,false);
296        timer = setTimeout(function () {
297            $('#zqzr').animate({
298                "background-position-x" : 39
299            });
300            $('#zqzr01').animate({
301                'left' : 110
302            });
303            $('#zqzr02').animate({
304                'left' : -251
305            });
306            $('#zqzr').siblings('.mask').animate({
307                right : -180
308            });
309        },50);
310    });
311})();
312
313
314//注册、登录 抖动
315$('#pcenter,#regist').animate({
316    'top' : '+=30'
317},2200,function (){
318    $(this).animate({
319        'top' : '-=30'
320    },2200,function (){
321        $(this).animate({
322            'top' : '+=20'
323        },2000)
324    });
325});
326
327//隐藏显示余额
328$('#showye').click(function () {
329    $(this).hide();
330    $('#nowye').show();
331    return false;
332});
333$('#aToggle').click(function () {
334    $('#showye').show();
335    $('#nowye').hide();
336    return false;
337});
338
339
340$('#regist').hover(function (){
341    $(this).find('.abtn').html('注册即送2888元礼包');
342},function (){
343    $(this).find('.abtn').html('立即注册');
344}).click(function (){
345	location.href = 'toNoviceRegistered.do';
346	return false;
347});
348
349//鼠标划过表格变色
350$('#zqzr01').find('tr').mouseover(function (){
351    $(this).css('background' , '#f5f5f5');
352}).mouseout(function (){
353    $(this).css('background' , 'white');
354});
355
356//新闻轮播
357(function (){
358    var i, t1;
359    i = 0;
360    function autoRoll(){
361        if(i >= $('#news > li').length){
362            i = 0;
363        }
364        $('#news > li:eq('+ i +')').fadeIn(1000).siblings().fadeOut(1000);
365        i++;
366    }
367    t1 = setInterval(autoRoll , 5000);
368    $('#news').mouseenter(function (){
369        if(!$(this).find('img').is(':animated')){
370            $(this).find('img').animate({
371                'width' : 280,
372                'height' : 280
373            });
374        }
375        $('#arrow1,#arrow2').show();
376        clearInterval(t1);
377    }).mouseleave(function (){
378        $(this).find('img').animate({
379            'width' : 268,
380            'height' : 268
381        });
382        t1 = setInterval(autoRoll , 5000);
383        $('#arrow1,#arrow2').hide();
384    });
385
386    $('#arrow1,#arrow2').mouseenter(function () {
387        $('#arrow1,#arrow2').show();
388        clearTimeout(t1);
389    });
390
391    $('#arrow1').click(function () {
392        var i = 0;
393        var len = $('#news').find('li').length;
394        $('#news').find('li').each(function () {
395            if(!$(this).is(':hidden')){
396                i = $(this).index();
397            }
398        });
399        if(i){
400            $('#news > li:eq('+ (i-1) +')').fadeIn(1000).siblings().fadeOut(1000);
401        }else{
402            $('#news > li:eq('+ (len-1) +')').fadeIn(1000).siblings().fadeOut(1000);
403        }
404    });
405
406    $('#arrow2').click(function () {
407        var i = 0;
408        var len = $('#news').find('li').length;
409        $('#news').find('li').each(function () {
410            if(!$(this).is(':hidden')){
411                i = $(this).index();
412            }
413        });
414        if(i ==  len - 1){
415            $('#news > li:eq(0)').fadeIn(1000).siblings().fadeOut(1000);
416        }else{
417            $('#news > li:eq('+ (i + 1) +')').fadeIn(1000).siblings().fadeOut(1000);
418        }
419    });
420})();
421
422
423$('#meAcount').hover(function (){
424    $(this).html('进入我的账户');
425},function (){
426    $(this).html('我的账户');
427});
428
429//跳转圆圈
430(function (){
431    var w, h, h1, h2, h3, h4, h6, s;
432    w = $(window).width();
433    h = $(window).height();
434    if($('.item1').offset()==null||$('.item2').offset()==null)
435    {
436    	return;
437    }
438    h1 = $('.item1').offset().top;
439    h2 = $('.item2').offset().top;
440    h3 = $('.item3').offset().top;
441    h4 = $('.item4').offset().top;
442    //h5 = $('.item5').offset().top;
443    h6 = $('.item6').offset().top;
444
445    if(w <= 1200){
446        $('#circle').hide();
447    };
448
449    $(window).resize(function () {
450        w = $(window).width();
451        if(w <= 1200){
452            $('#circle').hide();
453        }else{
454            if(s > 395){
455                $('#circle').show();
456            }
457
458        };
459
460        $('#circle').css({
461            right : (w - 1200)/2 + 1250,
462            top : (h - $('#circle').height())/2
463        });
464    });
465
466    $('#circle').css({
467        right : (w - 1200)/2 + 1250,
468        top : (h - $('#circle').height())/2
469    });
470
471    $(window).scroll(function (){
472        s = $(window).scrollTop();
473        hh = h1 - s;
474        if(s > 395){
475            $('#top').parent().show();
476        }else{
477            $('#top').parent().hide();
478        }
479
480        if(h/2 > h1 - s){
481            $('#circle').show();
482        }else{
483            $('#circle').hide();
484        }
485
486        if(s >= h4){
487            $('#circle').hide();
488        }
489        if(h/2 > h1 - s){
490            $('#circle').find('li:eq(0)').find('a').addClass('cur').parent().siblings().find('a').removeClass();
491        }
492        if(h/2 > h6 - s){
493            $('#circle').find('li:eq(1)').find('a').addClass('cur').parent().siblings().find('a').removeClass();
494        }
495        if(h/2 > h2 - s){
496            $('#circle').find('li:eq(2)').find('a').addClass('cur').parent().siblings().find('a').removeClass();
497        }
498        if(h/2 > h3 - s){
499            $('#circle').find('li:eq(3)').find('a').addClass('cur').parent().siblings().find('a').removeClass();
500        }
501        if(h/2 > h4 - s){
502            $('#circle').find('li:eq(4)').find('a').addClass('cur').parent().siblings().find('a').removeClass();
503        }
504        /*if(h/2 > h4 - s){
505            $('#circle').find('li:eq(5)').find('a').addClass('cur').parent().siblings().find('a').removeClass();
506        }*/
507    });
508
509    $('#circle').find('li').click(function (){
510        var index = $(this).index();
511        if(index == 0){
512            $('html , body').animate({
513                'scrollTop' : h1 -  parseInt(((h - $('.item1').height()) / 2))
514            },500);
515        }
516        if(index == 1){
517            $('html , body').animate({
518                'scrollTop' : h6 -  parseInt(((h - $('.item6').height()) / 2))
519            },500);
520        }
521        if(index == 2){
522            $('html , body').animate({
523                'scrollTop' : h2 -  parseInt(((h - $('.item2').height()) / 2))
524            },500);
525        }
526        if(index == 3){
527            $('html , body').animate({
528                'scrollTop' : h3 -  parseInt(((h - $('.item3').height()) / 2))
529            },500);
530        }
531        if(index == 4){
532            $('html , body').animate({
533                'scrollTop' : h4 -  parseInt(((h - $('.item4').height()) / 2))
534            },500);
535        }
536        /*if(index == 5){
537            $('html , body').animate({
538                'scrollTop' : h4 -  parseInt(((h - $('.item4').height()) / 2))
539            },500);
540        }*/
541    });
542
543
544})();
545
546//调用数字滚动方法
547(function (){
548    var number = $('span[data-num="number"]');
549    number.t = setInterval(function (){
550        numRoll(number,20);
551    },10);
552})();
553
554//数字滚动
555function numRoll(obj,num){
556    obj.each(function (i,d){
557        if(parseInt($(d).html()) < parseInt($(d).attr('data-val'))){
558            $(d).html(parseInt($(d).html()) + num);
559        }else{
560            obj.each(function (i,d){
561                $(d).html($(d).attr('data-val'));
562            })
563            clearInterval(obj.t);
564        }
565    })
566};
567//补位
568function fill(num){
569    if(num >= 0 && num <= 9){
570        return '0' + num;
571    }else{
572        return num;
573    }
574}
575//运营时间顺计时
576(function (){
577    var nowDate, endDate, remain, year, day, hour, min, sec;
578    endDate = new Date(2011,5,4,12,5,6);
579    runDjs(endDate);
580    setInterval(function (){
581        runDjs(endDate);
582    } , 1000);
583    function runDjs(date){
584        nowDate = new Date();
585        remain = ((nowDate.getTime() - date.getTime())/1000);
586        year = parseInt(remain / 31536000);
587        remain %= 31536000;
588        day = parseInt(remain / 86400);
589        remain %= 86400;
590        hour = fill(parseInt(remain / 3600));
591        remain %= 3600;
592        min = fill(parseInt(remain / 60));
593        remain %= 60;
594        sec = fill(parseInt((remain)));
595
596        $('#year1').html(year);
597        $('#day1').html(day);
598        $('#hour1').html(hour);
599        $('#min1').html(min);
600        $('#sec1').html(sec);
601    };
602})();
603
604
605//倒计时
606//当前时间
607//var nd = getServeTime().getTime()/1000;
608
609var nd = parseInt($('#nowTime').val())/1000;
610function djs(date, y){
611    var remain, year, day, hour, min, sec;
612    remain = date.getTime()/1000 - nd;
613    if(remain > 0){
614        year = parseInt(remain / 31536000);
615        remain %= 31536000;
616        day = parseInt(remain / 86400);
617        remain %= 86400;
618        hour = fill(parseInt(remain / 3600));
619        remain %= 3600;
620        min = fill(parseInt(remain / 60));
621        remain %= 60;
622        sec = fill(parseInt((remain)));
623    }else{
624        year = day = hour = min = sec = '00';
625    }
626    y.html(min +'分'+ sec + '秒');
627   
628};
629
630//调用倒计时
631(function (){
632    var d2 = new Date(parseInt($('#publishtime_borrow').val()));
633    var planNew = new Date(parseInt($('#publishtimeNew').val()));
634    var plan_vzx = new Date(parseInt($('#publishtimeV_1').val()));
635    var plan_tmc = new Date(parseInt($('#publishtimeTMC').val()));
636    var plan_lhb = new Date(parseInt($('#publishtimeL_1').val()));
637    
638    
639    var plan_1 = new Date(parseInt($('#publishtime_1').val()));
640    var plan_2 = new Date(parseInt($('#publishtime_2').val()));
641    var plan_3 = new Date(parseInt($('#publishtime_3').val()));
642    
643    if($("#dtbsy").length>0){djs(planNew,$('#dtbsy'))}
644    if($("#vzx_1").length>0){djs(plan_vzx,$('#vzx_1'))}
645    if($("#lhb_1").length>0){djs(plan_lhb,$('#lhb_1'))}
646    if($("#tmc_1").length>0){djs(plan_tmc,$('#tmc_1'))}
647    if($("#dtbsy_1").length>0){djs(plan_1,$('#dtbsy_1'))}
648    if($("#dtbsy_2").length>0){djs(plan_2,$('#dtbsy_2'))}
649    if($("#dtbsy_3").length>0){djs(plan_3,$('#dtbsy_3'))}
650    if($("#min2").length>0){djs(d2,$('#min2'))};
651
652    setInterval(function (){
653    	nd++;    	
654    	if($("#dtbsy").length>0){djs(planNew,$('#dtbsy'))}
655    	if($("#vzx_1").length>0){djs(plan_vzx,$('#vzx_1'))}
656    	if($("#lhb_1").length>0){djs(plan_lhb,$('#lhb_1'))}
657    	if($("#tmc_1").length>0){djs(plan_tmc,$('#tmc_1'))}
658        if($("#dtbsy_1").length>0){djs(plan_1,$('#dtbsy_1'))}
659        if($("#dtbsy_2").length>0){djs(plan_2,$('#dtbsy_2'))}
660        if($("#dtbsy_3").length>0){djs(plan_3,$('#dtbsy_3'))}
661        if($("#min2").length>0){djs(d2,$('#min2'))};        
662     },1000);
663})();
664
665
666function getServeTime(){
667    var xmlHttp, servertime;
668    xmlHttp = new XMLHttpRequest();
669    xmlHttp.open("GET", location.href, false);
670    xmlHttp.setRequestHeader("Range", "bytes=-1");
671    xmlHttp.send(null);
672    servertime = new Date(xmlHttp.getResponseHeader("Date"));
673    return servertime;
674}
675
676
677
678function strNum(obj,num){
679    obj.each(function (){
680        if($.trim($(this).html()).length > num){
681            $(this).html($.trim($(this).html()).substr(0,num) + '...');
682        }
683    })
684};
685
686strNum($('[data-text="p1"]'),50);
687strNum($('[data-text="p2"]'),10);
688strNum($('[data-text="p3"]'),18);
689strNum($('[data-text="p4"]'),8);
690strNum($('[data-text="p5"]'),36);
691strNum($('[data-text="p6"]'),18);
692strNum($('[data-text="p7"]'),18);
693
694
695
696
697
698
699

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.