Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- //<![CDATA[
- jQuery(document).ready(function($){
- $('a.lightbox').lightBox();
- theRotator();
- $('div.rotator').fadeIn(1000);
- $('div.rotator ul li').fadeIn(1000); // tweek for IE
- faroeReplace();
- (function($) {
- $(function() { //on DOM ready
- $('#scroller').simplyScroll({
- speed: 5
- });
- });
- })(jQuery);
- });
- function faroeReplace() {
- var fhr = $('.heading_home');
- fhr.html(fhr.html().replace(/Faroe/ig, '<img src="/wp-content/themes/faroe/images/logo_faroe_header.png" />'));
- }
- function theRotator() {
- $('div.rotator ul li').css({opacity: 0.0});
- $('div.rotator ul li:first').css({opacity: 1.0});
- setInterval('rotate()',10000);
- }
- function rotate() {
- var current = ($('div.rotator ul li.show')? $('div.rotator ul li.show') : $('div.rotator ul li:first'));
- if ( current.length == 0 ) current = $('div.rotator ul li:first');
- var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div.rotator ul li:first') :current.next()) : $('div.rotator ul li:first'));
- next.css({opacity: 0.0})
- .addClass('show')
- .animate({opacity: 1.0}, 1000);
- current.animate({opacity: 0.0}, 1000)
- .removeClass('show');
- };
- //]]>
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement