Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////
- //The functional design
- //Author: ShineKami
- //Web-site: http://WebGod-Studio.ru/
- //////////////////////////////////////
- function rotate(){
- var first = $('#slideSelect');
- $('.slider #'+$('#slideSelect').removeAttr("id").attr('class')).animate({opacity:'0'},"slow").hide("slow");
- if(!first.next().attr('class'))
- $('.slider #'+$('.slider .selSlide li:eq(0)').attr('id', 'slideSelect').attr('class')).show().animate({opacity:'1'},"slow");
- else
- $('.slider #'+first.next().attr('id', 'slideSelect').attr('class')).show().animate({opacity:'1'},"slow");
- }
- function theRotator() {
- setInterval('rotate()',10000);
- }
- $(document).ready(function() {
- ///////Слайдер///////
- $('.slider #'+$('#slideSelect').attr('class')).show().animate({opacity:'1'},"slow");
- $(".slider li").click(function(){
- if(!$(this).attr('id'))
- {
- $('.slider #'+$('#slideSelect').removeAttr("id").attr('class')).animate({opacity:'0'},"slow").hide("slow");
- $('.slider #'+$(this).attr('id', 'slideSelect').attr('class')).show().animate({opacity:'1'},"slow");
- }
- });
- if($(".slider .selSlide li").length>1) theRotator();
- ////////BB-Codes////////
- //hint
- $(".RaspFullBlock .p2").hover(
- function(){
- $("#hovWin", this).delay(500).show('slow');
- },
- function(){
- $("#hovWin", this).stop(true, true).hide('slow');
- }
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement