|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/kfoley/_/js/ |
Upload File : |
// remap jQuery to $
(function($){})(window.jQuery);
$.fn.preload = function() {
this.each(function(){
$('<img/>')[0].src = this;
});
}
// Usage:
$(['_/css/img/coins.png','_/css/img/mailbox.png','_/css/img/hands.png']).preload();
/* trigger when page is ready */
$(document).ready(function(){
$('#slider').bxSlider({
auto: true,
mode: 'fade',
controls: false
});
});
////////////////////////
$(document).ready(function(){
$('div.container a.trigger').click(function () {
var divname= this.name;
//Doesnot work in IE7//$("#"+divname).slideDown().siblings().slideUp();
$("#"+divname).show().siblings().hide();
$('div.container a.trigger').removeClass('selected');
$(this).addClass('selected');
return false;
});
});
/* optional triggers
$(window).load(function() {
});
$(window).resize(function() {
});
*/