Get the Page Title Description and Url
JQuery version: <script type="text/javascript"> $(document).ready(function () { var pageTitle = $(document).attr('title'); var pageHref = $(location).attr('href'); var pageDescription =...
View ArticlejQuery Add and Remove stylesheets
If your looking to enhance the experience of your visitors by offering them the ability of changing the layout and or colours on your webpage then this jQuery snippet could be handy for you. With the...
View ArticleLocalStorage Background Colour Changer
Just a couple of examples of how to use HTML5 LocalStorage feature as a background colour changer. Example 1 the simpler example takes the value of whatever you type in the box and stores that in...
View ArticleLet your users toggle your Adverts with an advert switch!
Using HTML5 localStorage and a little JQuery we can make an advert switch giving our visitors the option to turn our adverts on and off. Simply save the JQuery script below in your scripts folder and...
View ArticleAlert User When Clicking On 3rd Party Link
Recently i was asked to come up with a script to alert the End User when they were leaving a website when they clicked on an external link and this is what i came up with after finding a similar script...
View ArticlejQuery append, prepend and remove
Simple job list using the jQuery append, prepend and remove methods For the purpose of this demo i describe the methods in how they are used for the job list. append – add new job to the end of the...
View ArticleAdd StyleSheet from Drop Down Menu with jQuery and PHP
Following on from the Snippet add and remove stylesheets with jquery I now show you how to list all the stylesheets from a folder into a drop down menu and append the selected one to the head. Yea...
View ArticleAjax link tracker
Q. How can i record all the external links clicked on my site so i can see where they are when they click on the link, where they came from before and where there going? A. Add the script below to your...
View ArticleDynamically load Scripts that are self finding
Q. I’m making a widget and i want the end user to only have to insert 1 line into the webpage and my script to do the rest. A. OK well as a demonstration were going to create a simple widget (Not a...
View Article
More Pages to Explore .....