Monthly Archives: March 2011

Image Preloader

Posted By: Ian on Mar 13, 2011 in CSS, Snippets

This is the image preloader as used in 4x Random Image Viewer. Preloading images is ideal for lots of reasons like image viewers, slide shows, image roll overs and more. Some preloaders use javascript some load there images to the far left in this we just hide them. CSS Place this in your CSS file …

Continue Reading »

Accessible Contact Form in PHP

Posted By: Ian on Mar 10, 2011 in PHP, Snippets
Last modified on February 26th, 2014 at 8:44 pm,

Designed with accessibility in mind this contact form script features JavaScript with PHP validation if the client has JavaScript disabled and can only be submitted once per session to avoid people spamming. This simple 1 page script just requires you too change your email address and your done! Works well with screen readers and is …

Continue Reading »

View your ip address

Posted By: Ian on Mar 09, 2011 in PHP, Snippets
Last modified on March 28th, 2012 at 3:04 pm,

Use this php function for finding out your current ip address. View your ip address here

Continue Reading »

Automatically update copyright year

Posted By: Ian on Mar 09, 2011 in PHP, Snippets
Last modified on December 9th, 2012 at 7:52 pm,

This simple PHP function will Automatically update your web pages with the current year which means you don’t have to waste time each year doing it manually and can get on with more important things! The only thing to remember is it takes the current year from the server where your site is hosted on …

Continue Reading »

Float Images Left and Right

Posted By: Ian on Mar 09, 2011 in CSS, Snippets
Last modified on November 20th, 2013 at 10:28 am,
Continue Reading »

Transparent Image Overlay

Posted By: Ian on Mar 09, 2011 in CSS, Snippets
Continue Reading »

Passing Arguments to a Function

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Last modified on November 20th, 2013 at 10:28 am,
Continue Reading »

Get the Page Title Description and Url

Posted By: Ian on Mar 09, 2011 in JavaScript, JQuery, Snippets
Last modified on January 12th, 2013 at 3:09 pm,

JQuery version: <script type=”text/javascript”> $(document).ready(function () { var pageTitle = $(document).attr(‘title’); var pageHref = $(location).attr(‘href’); var pageDescription = $(‘meta[name=description]’).attr(“content”); $(‘#result’).html(‘<a href=”‘ + pageHref + ‘”>’ + pageTitle + ‘</a><br />’ + pageDescription + ‘<br /><span class=”green”>’ + pageHref + ‘</span>’); }); </script>   Javascript Version: <script type=”text/javascript”> var a = (document.title); var b = (document.location.href); …

Continue Reading »

Split String

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Last modified on November 7th, 2013 at 5:34 pm,

Why might you need to use the split string function? Well imagine you have a load of keywords separated by commas you want to list individually or like in the example above separate your users full name to maybe greet them by there first name then this is ideal. Do remember all this is Client …

Continue Reading »

Image Swapper

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Continue Reading »

About This Site

Dreams are built from lines of code well it's true!
If you can dream it you can usually code it.

I have learned so much from other people on the Internet and this site is for me to give back some of what i have learned and hope people can now learn from me.
Have fun and surf safely,
Ian.J.Gough

protected by copyscape duplicate content check

Categories


Powered by Banner Bar 125