jquery on hover change css another element

jquery on hover change or add css of another element and remove

JQuery on hover changing CSS of another element - div or class - and remove the CSS when mouse left the element - simple code

     <script>
            $(document).ready(function () {
                $('.manage').hover(function () {
                    $('.topdes1').css('top', '0px');
                }, function () {
                    $('.topdes1').css('top', '140px');
                });
            });
    </script>


Option 2 : Avoid the repeating of hover when you have more than one div tags in same name.

TAG : jquery outer div hover change css in inner div


    <script>
            $(document).ready(function () {
                $('.manage',this).hover(function () {
                    $('.topdes1',this).css('top', '0px');
                }, function () {
                    $('.topdes1').css('top', '140px');
                });
            });
    </script>

Smooth Scrolling on A Name tags in one page web site

JQuery Smooth Scrolling on A Name tags in one page web site. You can add the link to navigate between DIV sections in single page web site.

Link :

<li data-slide="4"><a href="index.html#slide4" >About</a></li>

Target ( on same page) :

<div class="slide" id="slide4" data-slide="4" data-stellar-background-ratio="0.5">
</div>

Code ( on header section ) :
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script>
$(function() {
  $('a[href*=#]:not([href=#])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html,body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
});
</script>

CSS Transition code for All Properties

Here is the default CSS3 Transition properties to animate the div elements ot the images ( with cross browser prefix ) this will apply to all attributes ( Background, color, with, height, whatever...)

.effect {
-moz-transition: all 0.2s ease; /* FF3.7+ */
-o-transition: all 0.2s ease; /* Opera 10.5 */
-webkit-transition: all 0.2s ease; /* Saf3.2+, Chrome */
transition: all 0.2s ease;
}

How to add a CSS 3 Preloader to your Web site

How to add a CSS 3 Preloader to your Web site  on 4 Steps - Copy and Paste code


1. Loading JQuery

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>

2. Adding the function

<script type="text/javascript">// <![CDATA[
$(window).load(function() { $("#spinner").fadeOut("slow"); })
// ]]></script>


3. Writing the CSS

#spinner {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 999999999;
background: #ffcc00;
}


4. Adding the HTML (On the body of the page)

<div id="spinner"> What ever loader image </div>

CSS3 Transparency for IE 8

Transparent effect for Internet Explorer IE7, IE8 : Working

 



.css3opacity{
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

filter: alpha(opacity=50);
-moz-opacity: 0.5;
-khtml-opacity: 0.5;

 opacity: 0.5; 
}

Burgercart Free Opencart ecomerce Template






Burgercart - the Opencart template for online burgers store, you and buy burgers and order online . build on opencart version 1.5.5.1. Easy to install template. Please comment below for the support.

You can view download this template at Opencart Extentions web site : link

ecomerce psd template for opencart jewellery store

Open cart PSD Web template for online jewellery store

with white color theme with minimal design. easy implementing simple layout can be useful for magneto, prestashop, zen cart or opencart template. download link



jquery popup div onclick example

Jquery popup div onclick example for multiple div on one single page.

here is the source code to repeat one, two , three or any number of divs to pop up on click action to work in single page without repeating any java script or query code. This code is free to use. This code will also include the fading effect to the pop up dialog box - which can be a hidden div tag on your web page.

jQuery(function($) {
    var $input;
    $("[class^='topopup']").click(function() {
    console.log('foo');
     $input = jQuery(this).attr("class");
   
   
            loading();
            setTimeout(function(){
                loadPopup($input); 
            }, 500); // .5 second
    return false;
    });
   

    $("[class^='close']").hover(
                    function() {
                        $('span.ecs_tooltip').show();
                    },
                    function () {
                        $('span.ecs_tooltip').hide();
                      }
                );
   
   
    $("[class^='close']").click(function() {
   
   
        disablePopup(); 
    });

   
   
    $(this).keyup(function(event) {
        if (event.which == 27) {
            disablePopup(); 
        }     
    });
   
   
    $("div#backgroundPopup").click(function() {
        disablePopup(); 
    });
   
    function loading() {
        $("div.loader").show(); 
    }
    function closeloading() {
        $("div.loader").fadeOut('normal'); 
    }
   
    var popupStatus = 0;
   
    function loadPopup($name) {
    console.log($name);
   
        if(popupStatus == 0) {
            closeloading();
            $("#"+$name.substring(0,2)+"P"+$name.substr(3,$name.length-1)).fadeIn(0500);
            $("#backgroundPopup").css("opacity", "0.7");
            $("#backgroundPopup").fadeIn(0001);
            popupStatus = 1;
        }   
    }
       
    function disablePopup() {
   
        if(popupStatus == 1) {
            $("#"+$input.substring(0,2)+"P"+$input.substr(3,$input.length-1)).fadeOut("normal"); 
            $("#backgroundPopup").fadeOut("normal"); 
            popupStatus = 0; 
        }
    }
}); 

High quality PSD seals for next project

High quality PSD seals for next project

6 PSD Seal badges to display your special offers in six different color themes , deal or the discount in a special way in you next design with a nice font style, Photoshop layer styles have used to design these seals. And the file is is separate layer format so easy to use like drag and drop.

 

High quality PSD seals for next project
High quality PSD seals for next project

 Download Link

Freelance web design and development sri lanka

Freelance web design and development sri lanka

Freelance Web design and Development in Sri lanka

  • Web Design and Development
  • Online store
  • Mobile web sites
  • Search engine optimization
  • Social media integration
  • Online branding
Professional business web site Starter package 12500/= only with free promotion (no hidden charges)