PageSourceSearch

https://shop.mdnkids.com/products_info/1911020145/scripts/fadeBanner/fadeBanner.js

js mdnkids.com collected 2026-09-24 09:20:56 UTC 2,233 bytes, 50 lines download raw bytes

1$(function(){
2  var top_banner_speed = $("#top_banner").val();  
3  if($('.headerTopimg').length){
4    $('.headerTopimg').each(function(){
5      if($(this).children().length>1){
6        $(this).children(':eq(0)').addClass('fadeBannerIn').siblings().addClass('fadeBannerOut').parent().addClass('setAinmation');
7      }
8    });
9    if($('.setAinmation').length){
10      setInterval(function(){
11        $('.headerTopimg').each(function(){
12          var total=$(this).children().length-1;
13          var now=$(this).children('.fadeBannerIn').index();
14          if((now+1)>total){
15            $(this).children('.fadeBannerIn').removeClass('fadeBannerIn').addClass('fadeBannerOut');
16            $(this).children(':eq(0)').removeClass('fadeBannerOut').addClass('fadeBannerIn');
17          }else{
18            $(this).children('.fadeBannerIn').removeClass('fadeBannerIn').addClass('fadeBannerOut').next().removeClass('fadeBannerOut').addClass('fadeBannerIn');
19          }
20        });
21      }, top_banner_speed);
22    }
23	$('.headerTopimg').height($('.headerTopimg a:eq(0) img').height());
24	$(window).resize(function(){
25		$('.headerTopimg').height($('.headerTopimg a:eq(0) img').height());
26	});
27  }
28  var right_banner_speed = $("#right_banner").val();
29  if($('.drift_right').length){
30    $('.drift_right').each(function(){
31      if($(this).children().length>1){
32        $(this).children(':eq(0)').addClass('fadeBannerIn').siblings().addClass('fadeBannerOut').parent().addClass('setAinmation');
33      }
34    });
35    if($('.setAinmation').length){
36      setInterval(function(){
37        $('.drift_right').each(function(){
38          var total=$(this).children().length-1;
39          var now=$(this).children('.fadeBannerIn').index();
40          if((now+1)>total){
41            $(this).children('.fadeBannerIn').removeClass('fadeBannerIn').addClass('fadeBannerOut');
42            $(this).children(':eq(0)').removeClass('fadeBannerOut').addClass('fadeBannerIn');
43          }else{
44            $(this).children('.fadeBannerIn').removeClass('fadeBannerIn').addClass('fadeBannerOut').next().removeClass('fadeBannerOut').addClass('fadeBannerIn');
45          }
46        });
47      }, right_banner_speed);
48    }
49  }
50});

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.