PageSourceSearch

https://hardrock100.com/js/image-fader.js

js hardrock100.com collected 2026-10-02 05:50:38 UTC 1,074 bytes, 34 lines download raw bytes

1function theRotator() {
2	//Set the opacity of all images to 0
3	$('div#rotator ul li').css({opacity: 0.0});
4	
5	//Get the first image and display it (gets set to full opacity)
6	$('div#rotator ul li:first').css({opacity: 1.0});
7		
8	//Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds
9	setInterval('rotate()',6000);
10	
11}
12
13function rotate() {	
14	//Get the first image
15	var current = ($('div#rotator ul li.show')?  $('div#rotator ul li.show') : $('div#rotator ul li:first'));
16
17	//Get next image, when it reaches the end, rotate it back to the first image
18	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first'));	
19	
20	//Set the fade in effect for the next image, the show class has higher z-index
21	next.css({opacity: 0.0})
22	.addClass('show')
23	.animate({opacity: 1.0}, 1000);
24
25	//Hide the current image
26	current.animate({opacity: 0.0}, 1000)
27	.removeClass('show');
28	
29};
30
31$(document).ready(function() {		
32	//Load the slideshow
33	theRotator();
34});

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.