Skip to content
Menu
Smartttips Smartttips
  • Home
  • About Us
    • Privacy Policy
  • Web Tips
    • PHP Tips
      • CodeIgniter
      • Yii Framework
      • SocialEngine
      • zendframework
      • SQL
    • jQuery
    • CSS
    • Internet
    • Google
    • whatsApp
    • Soma Messenger
    • Useful Sites
  • General Tips
    • Top 10 Lists
    • Onam wishes and Greetings
    • Travel and Tourism
  • Free Web Tools
    • English To Malayalam Converter
    • Malayalam To English Converter
    • English To Tamil Converter
    • Manglish To Malayalam Converter
    • Other Free Web Tools
  • Jobs
  • Contact
Smartttips Smartttips

Category: javaScript

Jquery code for Animated Scroll to Top

Posted on September 21, 2015 by smarttips

Create a div with class name gotop and Simply Copy paste the jquery code in betweenfor getting a scroll top functionality in a webpage. <div class=’gotop’>Scroll To Top</div> Jquery Code jQuery(window).scroll(function(){ if(jQuery(this).scrollTop()>1){jQuery(‘.gotop’).css({bottom:”0px”})}else{jQuery(‘.gotop’).css({bottom:”-100px”})}});$(window).ready(function(){$(‘.gotop’).click(function(e){e.preventDefault();$(‘html,body’).animate({scrollTop:0},700).animate({scrollTop:60},300).animate({scrollTop:0},400)})})(jQuery); Searches related to Scroll to Top scroll to top jquery, javascript scroll to top, scroll to top bottom of the photos, scroll to…

+

How to Check Expired Sessions using jQuery Ajax and PHP

Posted on June 23, 2015 by smarttips

We can achieve using the php and ajax.The following ajax call execute in every 10 seconds to check the status of session.If it expired the user redirected to seesionout page. Ajax call in every 10 seconds   var check_current_session; function CheckForCurrentSession() { var strSession=”check_current_session=true”; jQuery.ajax({ type: “GET”, url: “check_current_session.php”, data: strSession, cache: false, success: function(result){…

+

Get URL parameters using javascript or jquery

Posted on February 12, 2015 by smarttips

Example URL https://smarttips.in?newsletter=1 <script> var queryString = (function(url) { if (url == “”) return {}; var smart = {}; for (var i = 0; i < url.length; ++i) { var pS=url[i].split(‘=’, 2); if (pS.length == 1) smart[pS[0]] = “”; else smart[pS[0]] = decodeURIComponent(pS[1].replace(/+/g, “””)); } return pS; })(window.location.search.substr(1).split(‘&’)); $(document).ready(function(){ if(queryString[“newsletter”]==1) { alert(‘Got it!!!’) } }); </script>

+

Restrict ckeditor to basic toolbar

Posted on February 11, 2015 by smarttips

We can use javascript or jquery to apply ckeditor configuration HTML <textarea id=”textarea” cols=”15″ name=”txtdesc” rows=”5″></textarea> Javascript Must be included ckeditor.js Take the instance of ckeditor and replace with new configuration <script type=”text/javascript”> var editor = CKEDITOR.instances[‘txtdesc‘]; if (editor) { editor.destroy(true); } var editorContent =CKEDITOR.replace(‘txtdesc‘, { toolbar: [ { name: ‘document’, items: [ ‘Source’, ‘-‘,…

+

copy to clipboard using jQuery

Posted on April 11, 2014 by smarttips

<a href=”javascript:void(0);” id=”userlinkId” style=”display: inline;”>http://localhost/profile/sijo</a> <script type=”text/javascript”> jQuery(document).ready(function(){   jQuery(“a#userlinkId”).zclip({       path:’js/ZeroClipboard.swf’,       copy:jQuery(‘#userlinkId’).text(),       beforeCopy:function(){           jQuery(‘#userlinkId’).hide();           jQuery(‘#copymessage’).css(‘color’,’red’);           jQuery(‘#copymessage’).html(‘Copied to clipboard’);           jQuery(‘#copymessage’).delay(2000).fadeOut(400);       },      …

+
  • 1
  • 2
  • 3
  • Next

Type to Search

Popular Posts

  • Find Vehicle ownership Details in Kerala-Through vahan Online
  • Free Online Tools for Web Statistics
  • PhpMyAdmin Login error – Login without a password is forbidden
  • Increase PHP Script Execution Time in zendframework ?
  • Umm Al Quawain Zoo-The Zoo Wildlife Park-Zoo In UAE

Categories

  • Android
  • Apple
  • Automobile
  • Banking
  • Bevco
  • BevQ App
  • Business
  • CodeIgniter
  • Computer
  • Cricket-IPL-2020
  • CSS
  • Database
  • Design
  • Digital Marketing
  • Digital marketing jobs
  • Du
  • Easy Malayalam Typing
  • Entertrainment
  • Etisalat
  • Facebook
  • Famous Birthdays
  • FIFA World Cup Live Streaming
  • Food & restaurants
  • Free Web Statistics Tools
  • G K
  • Games
  • General
  • git
  • GK
  • Google
  • Hardware
  • Health
  • Huawei
  • Instagram
  • Internet
  • iOS
  • iPad
  • iPhone
  • Java
  • javaScript
  • Jobs
  • jQuery
  • Kissan Card India
  • lifestyle
  • LiFi
  • Linux
  • Make in India
  • Mobile Phones
  • Movies
  • Ms Excel
  • Networking
  • News
  • Nodejs Framework
  • opencart
  • Opensource
  • Others
  • Outlook
  • photography
  • Photoshop Tips
  • PHP
  • PHP Project Ideas
  • phpMyadmin
  • Politics
  • PUBGMOBILE
  • SEO
  • Server
  • SMO
  • SocialEngine
  • Softwares
  • Soma Messenger
  • Sports
  • SQL
  • Technology
  • Telecom
  • Top 10 Lists
  • Travel and Tourism
  • UAE Directory
  • Uncategorized
  • Useful Sites
  • Vechicles
  • Videos
  • Web Designer
  • Web Tips
  • whatsApp
  • WiFi
  • Windows
  • windows 10
  • windows 11
  • wordpress
  • World
  • Yii Framework
  • youtube
  • zendframework

smart Tags

Android apache Baahubali baahubali releasing date cinima CodeIgniter config charset and UTF-8 Codex content css data usage edge case elementum Facebook famous birthdays Fast youTube video downloading featured image General Knowledge google Google chrome how to lose weight fast with exercise how to lose weight fast without exercise how to lose weight in 7 days HTML Color Codes iconv() detect illegal char in input image iOS iPad javascript jQuery Kerala Maecenas Microsoft Excel microsoft windows 10 Movies Mysql PHP php job vacancy php zend framework SocialEngine SQL Commands sundar pichai template ubuntu web tips zend framewrok
©2026 Smartttips | Powered by Superb Themes
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.