Useful Tricks

This section contains some useful programming tricks.
Back To Top on Webpage

1.html <div id=”toTop” style=”display:none”>Back to Top</div> 2. JS<script language=”javascript”>jQuery(function() {    jQuery(window).scroll(function() {        if(jQuery(this).scrollTop() != 0) {            jQuery(‘#toTop’).fadeIn();  …

Magento : Import Gmail Contact

1. Define a link in any phtml file as<?php    $client_id=  ”;                       $redirect_uri=’test/test/gooledata’;     $scope = “https://www.google.com/m8/feeds/”; //google scope to…

1 41 42