I am using this lovely jquery plugin
http://www.gayadesign.com/diy/queryloader2-preload-your-images-with-ease/
It loads your whole website including images before displaying it. It works perfectly well. What I wanted to do was add a small skip button which would skip the script and jump to the page without preloading for people who are too impatient.
//create the skip button
this.skipbutton = $("<div id='skip'><a href='#' id='skipbut'>SKIP</a></div>").css({
height: 20 + "px",
marginTop: "-" + (this.parent.options.barHeight / 2) + "px",
Color: this.parent.options.barColor,
width: "0%",
position: "absolute",
top: "70%",
left: "50%"
}).appendTo(this.container);
I wanted to now know how to skip it ..I didnt think stop() function would work for this?
//skip function
$("#skipbut").click(function(){
//insert code here
});
SO Any help in the right direction would be highly appreciated. Thank you so much in advance :-)