PageSourceSearch

https://sarnam.com/js/06_slideshow.js

js sarnam.com collected 2026-10-02 14:21:06 UTC 2,625 bytes, 78 lines download raw bytes

1/* 
2 * Programing: AIT
3 * 
4 */
5
6var imgheight = 243;
7function showImg(slide)
8{
9	jQuery.easing.def = 'easeOutBounce';
10	var html = '<img src="" alt="slide-aft" class="slide-aft" height="100%"/>';
11	jQuery("#homeslide-anime img:first").before(html);
12	jQuery("#homeslide-anime img:first").hide();
13	jQuery("#homeslide-anime img:first").attr('src',jQuery('#homeslide-'+slide+' .picture img').attr('src'));
14	jQuery("#homeslide-anime img:first").css('width','100%');
15	jQuery("#homeslide-anime img").css('height',imgheight+'px');
16	jQuery("#homeslide-anime img:first").slideDown(900, function(){jQuery.easing.def = 'jswing';});
17	jQuery('#homeslide-anime .picture').scrollTo(imgheight,800);
18}
19
20	
21function newslide(slide)
22{
23	showImg(slide);
24}
25
26function recursionAnimate(slide)
27{
28	newslide(slide);
29	slide = slide+1;
30	if ((document.getElementById('homeslide-'+slide) != null)) setTimeout("recursionAnimate("+slide+")",6000);
31	else setTimeout("recursionAnimate(0)",6000);
32}
33
34jQuery(function(){
35	var i=0;
36	if ((document.getElementById('homeslide-0') != null))
37	{
38		var animeslide = '<div class="slider" id="homeslide-anime"></div>';
39		
40		jQuery("#homeslide-0").before(animeslide);
41		jQuery("#homeslide-anime").html(jQuery("#homeslide-0").html());
42		jQuery("#homeslide-0").hide();
43		//jQuery("#homeslide-anime").show();
44		jQuery("#homeslide-anime").css('display','block');
45
46	
47		if ((document.getElementById('homeslide-1') != null))
48		{
49			var animeimg = '<img src="" class="img2" />';
50			jQuery("#homeslide-anime .picture .tm").css('min-height',(imgheight*2)+'px');
51			//jQuery("#homeslide-anime .picture .tm").css('height','480px');
52			
53			jQuery("#homeslide-anime img.slidepic").before(animeimg);
54			jQuery("#homeslide-anime img.img2").attr('src',jQuery("#homeslide-1 img.slidepic").attr('src'));
55			
56			jQuery('#homeslide-anime .picture img.slidepic').css('width','100%');
57
58			jQuery('#homeslide-anime .picture img.img2').css('width','100%');
59		
60			jQuery('#homeslide-anime .picture').css('height',imgheight+'px');
61			jQuery('#homeslide-anime .picture').css('overflow','hidden');
62			jQuery('#homeslide-anime .picture img.img2').show();
63			jQuery("#homeslide-anime .picture img").css('display','block');
64			jQuery("#homeslide-anime .picture img").css('visibility','visible');
65			jQuery("#homeslide-anime .picture img").css('height',imgheight+'px');
66
67			setTimeout("jQuery('#homeslide-anime .picture').scrollTop("+imgheight+");",40);
68			if ((document.getElementById('homeslide-2') != null))
69				setTimeout("recursionAnimate(2);",6000);
70			else
71				setTimeout("recursionAnimate(0);",6000);
72				
73		} 
74
75	} 
76	//jQuery.easing.def = 'jswing';
77});
78

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.