Quantcast
Channel: IanJGough.com » JQuery
Browsing all 9 articles
Browse latest View live

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 Article



jQuery 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 Article

LocalStorage 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 Article

Let 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 Article

Alert 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 Article


jQuery 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 Article

Add 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 Article

Ajax 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 Article


Dynamically 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

Browsing all 9 articles
Browse latest View live




Latest Images