jquery smooth scrolling of internal anchor links <script> jQuery(document).ready(function(){ jQuery(‘a[href^=”#”]’).on(‘click’,function (s) { s.preventDefault(); var smarttarget = this.hash, $smarttarget = jQuery(smarttarget); jQuery(‘html, body’).stop().animate({ ‘scrollTop’: $target.offset().top }, 900, ‘swing’, function () { window.location.hash = smarttarget; }); }); }); </script> <ul> <li><h1>Contents</h1></li> <li> 1. <a class=”msection” style=”color:#1155CC” href=”#section_1″>Tes1</a></li> <li> 2. <a class=”msection” style=”color:#1155CC” href=”#section_2″>Test 2</a></li> </ul> <a id=”section_1″…
Tag: web tips
Tweet share Button with custom Icon
Tweet share or send to Button with custom Icon We can use custom images in Tweet button. <script type=”text/javascript” src=”//platform.twitter.com/widgets.js”></script> <a href=”https://twitter.com/intent/tweet?text=Find me in Unii.com”> <img src=”<?php echo $this->baseurl(‘images/smarttips-twitter.png’); ?>” width=”203″ height=”78″ border=”0″></a>
TinyMCE editor with file Upload and ajaxfilemanager plugin
TinyMCE editor with file Upload and ajaxfilemanager plugin TinyMCE is a common editor used in php applications. It includes all common features of editors like fck editor,ck editor..etc. One thing is missing in TinyMCE is file uploading. This editor requires extra plugin for getting file upload feature. Steps for implementing TinyMce photo upload feature is…
How to use custom font in css or in website
Website user interface has a major role in frontend interaction . Web designer Styling the website page by writing styles and save in a file with extension CSS . CSS is the short form of Cascade Style Sheet. For making web page more interesting designers using external fonts. They use the css rule @font-face for adding custom font. Steps: 1.Download the font…
Export WordPress blog or backup your wordpress blog
WordPress have a option to take backup of your blog . It is very important to keep a hard copy of your blog. There is always a chance to loose data online. No need to take any risk for your valuable post. 1. Goto wp-admin from Left side menu ->Tools 2. Choose the export option…