PageSourceSearch

http://www.rockronnie.it/script/bacheca_jav.js

js rockronnie.it collected 2026-10-09 02:45:48 UTC 2,553 bytes, 78 lines download raw bytes

1
2	/************************************************************************************************************
3	(C) www.dhtmlgoodies.com, November 2005
4	
5	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	
6	
7	Terms of use:
8	You are free to use this script as long as the copyright message is kept intact. However, you may not
9	redistribute, sell or repost it without our permission.
10	
11	Thank you!
12	
13	www.dhtmlgoodies.com
14	Alf Magne Kalleland
15	
16	************************************************************************************************************/
17		
18	var slideTimeBetweenSteps = 30;	// General speed variable (Lower = slower)
19	
20	
21	var scrollingContainer = false;
22	var scrollingContent = false;
23	var containerHeight;
24	var contentHeight;	
25	
26	var contentObjects = new Array();
27	var originalslideSpeed = false;
28	function slideContent(containerId)
29	{
30		var topPos = contentObjects[containerId]['objRef'].style.top.replace(/[^\-0-9]/g,'');
31		topPos = topPos - contentObjects[containerId]['slideSpeed'];
32		if(topPos/1 + contentObjects[containerId]['contentHeight']/1<0)topPos = contentObjects[containerId]['containerHeight'];
33		contentObjects[containerId]['objRef'].style.top = topPos + 'px';
34		setTimeout('slideContent("' + containerId + '")',slideTimeBetweenSteps);
35		
36	}
37	
38	function stopSliding()
39	{
40		var containerId = this.id;
41		contentObjects[containerId]['slideSpeed'] = 0;	
42	}
43	
44	function restartSliding()
45	{
46		var containerId = this.id;
47		contentObjects[containerId]['slideSpeed'] = contentObjects[containerId]['originalSpeed'];
48		
49	}
50	function initSlidingContent(containerId,slideSpeed)
51	{
52		scrollingContainer = document.getElementById(containerId);
53		scrollingContent = scrollingContainer.getElementsByTagName('DIV')[0];
54		
55		scrollingContainer.style.position = 'relative';
56		scrollingContainer.style.overflow = 'hidden';
57		scrollingContent.style.position = 'relative';
58		
59		scrollingContainer.onmouseover = stopSliding;
60		scrollingContainer.onmouseout = restartSliding;
61		
62		originalslideSpeed = slideSpeed;
63		
64		scrollingContent.style.top = '0px';
65		
66		contentObjects[containerId] = new Array();
67		contentObjects[containerId]['objRef'] = scrollingContent;
68		contentObjects[containerId]['contentHeight'] = scrollingContent.offsetHeight;
69		contentObjects[containerId]['containerHeight'] = scrollingContainer.clientHeight;
70		contentObjects[containerId]['slideSpeed'] = slideSpeed;
71		contentObjects[containerId]['originalSpeed'] = slideSpeed;
72		
73		slideContent(containerId);
74		
75	}
76	
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.