1var items = new Array(); 2var current = 0; 3var previous; 4var running = true; 5var myTimer; 6 7function intro() 8{ 9 // Profiler-Einträge speichern 10 items = $('#intro_bilder img'); 11 12 // Alle ausblenden, ersten einblenden 13 if ($(items).length > 1) 14 show_item(current); 15} 16 17function show_item(pID) 18{ 19 current = pID; 20 21 // Hintergrundbild in Container einsetzen 22 previous = current - 1; 23 if (previous < 0) 24 { 25 previous = items.length - 1; 26 } 27 28 // Meldungen richtig stapeln (z-index) 29 $(items).css('z-index','0'); 30 $(items[previous]).css('z-index','1'); 31 $(items[pID]).css('z-index','2'); 32 // Gewünschtes einblenden 33 $(items[pID]).css('opacity','0'); 34 $(items[pID]).animate({ 35 opacity: 1.0 36 }, 1000, function() { 37 runTimer(); 38 }); 39} 40 41function runTimer() 42{ 43 var next; 44 if (current < items.length - 1) 45 { 46 next = current + 1; 47 } 48 else 49 { 50 next = 0; 51 } 52 if (running == true) 53 { 54 myTimer = window.setTimeout('show_item(' + next + ')', 3000); 55 } 56 57} 58 59// Link zum Ein-/Ausblenden des Textes 60/* 61$(function() { 62 $('#intro_link a').click(function(event) { 63 $('#intro_text').toggleClass('aktiv'); 64 }); 65}); 66*/ 67 68function homeIntro() { 69 70 if( $( '.home .kopf_bild' ).length > 0 ) { 71 72 items = $('.home .kopf_bild img'); 73 74 // Alle ausblenden, ersten einblenden 75 if ($(items).length > 1) 76 show_item(current); 77 } 78} 79 80$(window).load(function() { 81 intro(); 82 homeIntro(); 83});
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.