Apply Class Snippets

13 April, 2013   

Load and store classes for easy use and re-usability using advanced PHP object storing.

Take array and create multiple columns, define divisible by value ($divis) from total results then use modulus within the loop. This example shows multiple columns for unordered list items.

10 June, 2013   

A function that returns an array of elements based on DOM element, tag, and class name. For instance, getElementsByClassName(document, 'tr', 'info') will return an array of all "tr" tags under the document node having the "info" class.

17 January, 2013   

Showing very simple code using classes by C++ program

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

09 November, 2011   

Here an example how to set the width of the four borders

19 January, 2012   

CSS Code example - how to control the letters in a text

16 May, 2016   

Example source code Friend Function

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

An example C++ code for using the same variable name in different scopes by Ali Murad

jQuery example code to add image to browser cache

Copy the declarations and code below and paste directly into your VB project.

Python has no equivalent to Java's "super" keyword (so that some part of a method can be delegated to the superclass), but it's easy to get similar convenience despite Python's multiple-inheritance generality.

13 April, 2014   

CSS code to center image in div with overflow hidden

Two objects are included here, a reader and a parser. All you need to do is instantiate the xmlParser object and let it do the job for you. nextToken() will return the next token, which can be a tag or the text between 2 tags. the isTag() will determine if this is a tag so you can do something smart with it. Lastly you can jumpTo($tagname) if...

21 December, 2013   

Great page for testing the style guide for a website.

Asp.Net code snippet for Database Query Within WebServices

24 November, 2011   

Advanced background example by CSS

13 February, 2013   

Place line numbers in text output format using CSS and PHP

03 April, 2013   

Nice little search form snippet using HTML and CSS