Snippets

Add and Remove stylesheets with jquery

Posted By: Ian on Jan 24, 2012 in JavaScript, Snippets

Remove stylesheet To remove a stylesheet simply give it an id <link href=”cssFolder/sheet2.css” rel=”stylesheet” type=”text/css” id=”sheet2″> And insert the following script just before </body> tag     Add stylesheet To Add a stylesheet insert the following script just before </body> tag   Although i have used document ready in the snippets above i have used …

Read more

Passing Arguments to a Function

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Read more

Get the Page Title Description and Url

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Read more

Split String

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Read more

Image Swapper

Posted By: Ian on Mar 09, 2011 in JavaScript, Snippets
Read more

Hide and Show

Posted By: Ian on Mar 07, 2011 in JavaScript, Snippets

Often you want to hide or show an image or one or more tags on your page and using this reusable script you can do just that.No code to edit and it also changes (Toggles) the button value. You just have to insert 4 variables whenever you want to call the script <input type="button" onclick="toggleItem(’1′,this.id,’3′,’4′);" …

Read more

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

Contact Form

captcha

-
blank1
blank2
blank3
blank4
blank5
blank6
blank7
blank8
blank9
blank10
blank11
blank12
blank13
blank14
blank15