Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Fade in and out animation on hove buttons - meteo, and slide pagination balls
- $(window).load(function() {
- $("ul.slidebtns li a").hover(function() {
- divW = ($(this).next("div").width() / 2) - ($(this).outerWidth() / 2);
- $(this).next("div").css({marginLeft: -divW }).animate({ opacity: "show" }, "fast");
- }, function() {
- $(this).next("div").animate({opacity: "hide"}, "fast");
- });
- $("#tempicon img").hover(function() {
- var $img = $(this);
- var $labelDiv = $img.next("div");
- var halfOfLabelDivsWidth = $labelDiv.width() / 2;
- var imgMiddle = $img.position().left + ($img.width() / 2);
- $labelDiv
- .css({
- left: imgMiddle - halfOfLabelDivsWidth
- })
- .animate({ opacity: "show" }, "fast");
- }, function() {
- $(this).next("div").animate({opacity: "hide"}, "fast");
- });
- });
- $(window).load(function() {
- jQuery(window).load(function() {
- $("ul.slidebtns li a").hover(function() {
- jQuery("ul.slidebtns li a").hover(function() {
- (function ($) {
- ...all your code here...
- }(jQuery));
- jQuery(document).ready(function ($) {
- ...code...
- });
- jQuery(function ($) {
- ...code...
- });
Add Comment
Please, Sign In to add comment