Change Graphic Snippets

02 April, 2012   

Delphi code example for Grayscaling A Bitmap


01 March, 2011   

Mouse Move Paint . A simple program for drawing using mouse move event in 2005 version... This code is compatible with : VB 2005, VB 2008, VB 2010 Steps For Creation:- --------------------------- 1. Change the background color of the form1 as white. 2. Then, double click the form and change the event as mouse move click event. 3. Now,...

02 February, 2011   

The set height and width ensure only a portion of the sprite.png graphic is shown. The rollover shifts the position of the background image, revealing a different area of the graphic.

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

03 August, 2013   

Example shows bash code to change CWD to file's directory

01 February, 2011   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible, because...

Change Date from dd/mm/yyyy to yyyy-dd-mm

07 April, 2012   

CSS code to change Text Selection Color

16 March, 2013   

CSS code example to change Text Selection Color

21 February, 2011   

Change Text Selection Color

jQuery code example to show content based on select option.

When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on. This is very useful when working with a number of projects at a time.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

03 January, 2013   

Choose a color scheme as found in the Display control panel applet

15 December, 2011   

Here shown Java code example - The protected keyword

The mysql_fetch_assoc "converts" a row from a table into an associative array. The mysql_insert_array "converts" an associative array into a row in a table.

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:

Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).

21 January, 2011   

Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. If your server thought it was 12 midnight, but it was really 7 pm, this will roll the $today variable back five hours to be correct.

Change Graphics Based on Season