Page Template Snippets


Makes it extremely easy to integrate code igniter and smarty as well as provide layout capabilites.

03 August, 2011   

By the below template we can make for-loop using xslt.

01 January, 2013   

This is the general page template. It has all of the essentials (along with a favicon link - not essential).

05 December, 2016   

Stop IE Page Load Flicker Html code Snippet by Chris Coyier

09 April, 2011   

On form, insert a Page Break after the first group of fields. This creates two "pages" in the form, which can be toggled using a command button on each.

Removes an item from the page, without affecting page flow or causing scrollbars. Much better than display: none; or even visibility: hidden;

Place the following code where you would like the button to appear.

09 November, 2013   

Just like your browser's back button, the following script allows the user to press a button to returns the user to the previous page. Paste the following code where you want the button to appear on your page:

PHP & Mysql based code to Print table with client-side sorting function.

09 July, 2011   

How to sort array in smarty template? Create sort modifier file and save it in smarty / plugins with modifier.sortby.php name use this modifier in smarty template like... {foreach item=item key=key from=$users|@sortby:"firstname"} {$item.id}-{$item.firstname} {/foreach}

Normally index.html or index.php is the default page a server serves up when visiting a directory without specifying a file name. You can change this with .htaccess:

18 September, 2012   

Get the current title of the page using javascript and store it into a variable

01 January, 2013   

Basic template for xhtml transitional

16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

09 March, 2011   

Default XHTML start code for designing a layout or template for your website. Great for working on several clients/projects and do not want to retype this code over and over again.

11 February, 2011   

Center DIV with Dynamic Height

21 February, 2011   

Centering a Website

You may create a back button like your browser has. The following script allows the visitor to press a button and returns the him to the previous page.

A Template for building OpenGL applications using GLUT.

17 April, 2013   

This code only works in Firefox and Chrome