$(document).ready( function(){
sImageLoc = 'http://qualitysalesleads.ms/resources/images/';
preload_img = new Image();
var img_url = {
lead:sImageLoc+'call.jpg',
seo:sImageLoc+'call.jpg',
cons:sImageLoc+'cons.jpg',
ad:sImageLoc+'ad.jpg',
biz:sImageLoc+'biz.jpg'
};
var url = {
lead:'link lead',
seo:'link seo',
cons:'link cons',
ad:'link ad',
biz:'link biz',
};
var content = {
lead:'lead Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras interdum. Integer ac lacus non purus congue condimentum. ',
seo:'Search Engine Optimization
Search engine optimization is the process of augmenting the ranking of organic results displayed by search engines such as Google, MSN, Yahoo and Ask. There are two primary elements that play a role in SEO, on-site optimization and off-site optimization (link building).',
cons:'cons Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras interdum. Integer ac lacus non purus congue condimentum. ',
ad:'ad Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras interdum. Integer ac lacus non purus congue condimentum. ',
biz:'biz Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras interdum. Integer ac lacus non purus congue condimentum. jpg'
};
jQuery.each(img_url, function() {
preload_img = this;
});
$('.index_left').hover(
function(){
if ( this.title == 'cons' || this.title == 'biz' ){
$(this).css('cursor','pointer');
}
else{
return false;
}
},
function(){
$(this).css('cursor','arrow');
}
);
$('.index_left').bind('click', function(){
var key = this.title
var $img_src = $('#img_quick_search');
var $url_link = $('#index_left_link');
var $content = $('#index_left_content');
$img_src.fadeOut(
'normal',
function(){
$img_src.attr("src",img_url[key]).fadeIn('normal');
}
);
$content.fadeOut(
'normal',
function(){
$('#index_left_content').html(content[key]).fadeIn('normal');
}
);
$('#index_left_link').attr('href',url[key]);
return false;
});
// $('.index_left a').click(
// function(){
// alert( this.id );
// $obj.fadeOut(
// 'slow',
// function(){
// $obj.attr("src",img_url[0]).fadeIn('slow');
// }
// );
// }
// );
});