Show Content Snippets


jQuery code example to show content based on select option.

07 September, 2017   

CSS Code for Common Unicode Icons

The Gmail Bookmarklet will add a unique string to the email signature to prevent Gmail from trimming the content.

05 February, 2014   

We created a slide show that allowed the user to move through an array of images.

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

Make a MySQL Database called "db" with a table named "variables" with three rows ("id", "title", and "content"). Insert your data. Then call the page by going variables.php?id=1 etc.

If a string is contained in another string and you need to search for it, this is a very clever way to do it:

09 May, 2011   

This is a general code to use when selecting an item from a MySQL database. This code isn't considered definitive and can be written in many varied ways. Note: This code requires you to connect to the MySQL database to work. Also, all field and table names need to be set up to match. This MYSQL Code using in PHP

11 April, 2013   

Pull external HTML code from a file right into your webpage

07 March, 2011   

Shows how to create a simple file download by using PHP. The content could also be dynamically generated)

09 July, 2013   

Show user's IP Address using a few lines of code, Place the code where you want the IP address to appear:

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.

15 June, 2011   

This code will show IPhone UIActionSheet

13 August, 2011   

Although there really isn't any foolproof way to protect your web page content, this JavaScript will discourage the more novice Internet users from copying your content. An alert box will appear displaying your copyright information when the right mouse button is clicked. However, this script will not completely protect your content from more...

Two simple functions to read an write tab seperated files (like CSV files, etc).

An example of Strict Textmate Template

30 April, 2011   

This allows you to redirect the page using meta tag. Setting content to 0 for immediate redirect.

A simple and practical way to show the format of the IEEE standard for binary floating-point numbers (IEEE 754) is to use a union, as shown in the following example:

31 May, 2012   

iPhone code snippet to show a series of images

16 October, 2014   

When hover your mouse over a link, a small box containing contents from another page comes up. This will show the iframe with scrollbars if content (target page) is too big.