Training in Web Technologies Blog

How to make Smooth Scrolling using jquery

Performs a smooth page scroll to an anchor on the same page. $(document).ready(function() { function filterPath(string) { return string .replace(/^\//,”) .replace(/(index|default).[a-zA-Z]{3,4}$/,”) .replace(/\/$/,”); } var locationPath = filterPath(location.pathname); var scrollElem = scrollableElement(‘html’, ‘body’); $(‘a[href*=#]’).each(function() {...

Top 10 Tips to a make a popular Website page

There aren’t any magic pills to create a great web page that everyone will visit again and again, but there are things you can do to help. Some key things to focus on are...

5 Useful CSS Tricks for Responsive Webpage Design

Making the design to be responsive is very easy as shown in my Responsive Design in 3 Steps tutorial, but maintaining the elements to look aesthetically balanced on all breakpoint layouts is an art. Today I’m...

How to Set iPhone Bookmark Icon

Place this in your <head> section, and set the href attribute to an image to a 57px x 57px PNG file. <link rel=”apple-touch-icon” href=”iphone-icon.png”/> To prevent the iPhone from adding it’s own gloss: <link...

How to Build a Calendar Table using PHP

<?php function build_calendar($month,$year,$dateArray) { // Create array containing abbreviations of days of week. $daysOfWeek = array(‘S’,’M’,’T’,’W’,’T’,’F’,’S’); // What is the first day of the month in question? $firstDayOfMonth = mktime(0,0,0,$month,1,$year); // How many days...

iPhone Calling and Texting Links

This is the calling one (probably more useful if the clickable text is words, as the iPhone auto-detects phone numbers and does this automatically): <a href=”tel:1-408-555-5555″>1-408-555-5555</a> This is the SMS one, which overrides the...

XHTML useful tips and tricks

The XML Declaration: An XML declaration is not required in all XHTML documents. XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the...

10 most advanced PHP Tips Revisited

Here, on the Smashing Editorial team, we always try to meet the expectations of our readers. We do our best to avoid misunderstandings, and we try to spread knowedge and present only the best...

10 essential performance tips & tricks for MySQL

From workload profiling to the three rules of indexing, these expert insights are sure to make your MySQL servers scream As with all relational databases, MySQL can prove to be a complicated beast, one...

6 important Tips for On-Site SEO on Joomla Websites

Learning how to perform some basic on-site SEO on your Joomla website is a critical skill that can dramatically help improve your website traffic and number of leads. However, unless directed on where in...

10 useful Drupal tips

Time for some random Drupal tips and tricks. Some of these are very straightforward and if you are someone who allways reads all documentation you should probably know most of them, but hey! Who...

Online Slot Booking for Aadhaar Card

What is Aadhaar? Aadhaar is a 12 digit individual identification number issued by the Unique Identification Authority of India on behalf of the Government of India. This number will serve as a proof of...

iPhone Calling and Texting Links

This is the calling one (probably more useful if the clickable text is words, as the iPhone auto-detects phone numbers and does this automatically): 1-408-555-5555 This is the SMS one, which overrides the default...

How to get content ID from page alias in CMS Made Simple

Sometimes you need the page alias AND the content id. All you need is a tiny UserDefined Tag (UDT). Create a new UDT “getpageid” and copy&paste the following code: if( !isset($params[‘alias’]) ) return; $gCms...