$(document).ready(>
$(document).ready(unction() {
//catch the right-click context menu
$(document).bind("contextmenu",function(e) {
//warning prompt - optional<.pert.>
//delete the default context menu
return false;
});
});
$(document).ready(>
$(document).ready(unction() {
//find the current font size var originalFontSize = $('html').css('font-size');
//Increase the text size
$(".increaseFont").click(function() {
var currentFontSize = $('html').css('font-size'); var currentFontSizeNumber = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNumber*1.2;
$('html').css('font-size', newFontSize);
return false
//Decrease the Text Size
$(".decreaseFont").click(function() {
var currentFontSize = $('html').css('font-size');
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*0.8;
$('html').css('font-size', newFontSize);
return false
// Reset Font Size
$(".resetFont").click(function(){ $('html').css('font-size', originalFontSize);
} );
});
//display the x and y axis values inside the P elue.
$(document).ready(function() {$(document).ready(function() {$ ().mousemove(function(e){ $('# MouseCoordinates ').html("X Axis Position = " e.pageX " and Y Axis Position = " e.pageY); });
jQuery.preloadImagesInWebWebPage = functionInWeb 🎜> for(var ctr = 0; ctr
{
jQuery("").attr("src", arguments[ctr]);
}
}
To use the above method, you can use the following piece of code:
$.preloadImages("image1.gif", "image2.gif", "image3.gif");
To checkeckether an image has been loaded, you can use the following piece of code:
$('#imageObject').attr('src', 'image1.gif').load(function() {
alert( 'The image 有 been loaded…');
});