Tag Archives

Archive of posts published in the category: Singapore
Apr
5

Singapore No.1 Car Site for New Car & Used Cars

spacer




spacer


spacer


spacer


spacer

function forumSearch(){ var search_cat = jQuery('#alltab_search').val(); var search_val = encodeURIComponent(jQuery('#home_forumsearch2').val()); var redirectLink = 'https://www.mycarforum.com/index.php?app=core&module=search&controller=search&type=forums_topic&search_content=titles&search_and_or=or&sortby=relevancy&q='+search_val.replace('%20','+'); if(search_cat=='forum') window.open(redirectLink, "_blank"); else document.commonSearch.submit(); } var slider_interval; jQuery(document).ready(function(e) { jQuery("#splittereffect").find('a').click(function() { var this_id = this.id; var new_id = this_id.replace("link","tab"); var arrow_id = this_id.replace("link","arrow"); var array = ["alltab","newcarstab","usedcarstab","mdtab","articlestab","accessoriestab","forumtab"]; for(var i=0;i<7;i++){ var id = array[i]; var link = id.replace("tab","link"); var arrow = id.replace("tab","arrow"); if(jQuery("#"+id).is(':visible') && id != new_id){ jQuery("#"+id).hide(); } jQuery("#"+link).attr("class","tabunselected"); jQuery("#"+arrow).css("display","none"); } jQuery("#"+new_id).show(); jQuery("#"+this_id).attr("class","tabselected"); jQuery("#"+arrow_id).css("display","block"); }); clearInterval(slider_interval); slider_interval=setInterval("slider();",4000); var A=jQuery(".sliderbuttons li a:eq("+current+")").parents("li").offset().top+arrow_top(); jQuery("#items_arrow").stop().animate({top:A},200); jQuery(".sliderbuttons").find('a').hover( function(){ var arrow_position = jQuery("#items_arrow").css('top'); var id = this.id; jQuery(".sliderbuttons li a").removeClass("active"); var now=jQuery(this).parents("li").index(); var top_value = 0; var li_height = jQuery(this).parents("li").height(); var li_gap = parseInt(jQuery(this).parents("li").css("margin-bottom").replace("px","")); if(now>0){ top_value = (now+0.5)*li_height + li_gap*now; }else{ top_value = li_height*0.5; } jQuery("#items_arrow").stop().animate({top:top_value}); jQuery(this).addClass("active"); if(current!=now){ jQuery(".items .item").hide(); jQuery(".items .item:eq("+now+")").show(); current=now; } showCoverStory(); clearInterval(slider_interval) }, function(){ var B=jQuery(".items .item").length; if(current=B-1){ current=-1 } jQuery(".items .item").stop(); clearInterval(slider_interval); slider_interval=setInterval("slider();",4000); showCoverStory(); } );

jQuery(".items .item").hover( function(){ clearInterval(slider_interval) }, function(){ clearInterval(slider_interval); slider_interval=setInterval("slider();",4000) } );

//Request remove by Vivienne, 04/08/2017 /* jQuery("#contain li:gt(0)").hide();

setInterval(function() { jQuery('#contain li:first') .fadeOut(1000) .next() .fadeIn(1000) .end() .appendTo('#contain'); },4000); */ gAddLoadEvent(function() { gCloselink(); });

randNum = Math.floor(Math.random() * jQuery('#newcar_launch .coverstory').length + 1); jQuery('#coverstory' + randNum).css('display', 'block'); jQuery("#roadtax_calculator_icon").colorbox({iframe:true, innerWidth:555, innerHeight:560}); jQuery("#roadtax_calculator").colorbox({iframe:true, innerWidth:555, innerHeight:560}); jQuery("#home_allsearch").autocomplete("/autocomplete/ajax_autocompleter.php",{ width:400, minChars:2, extraParams:{s:'all'} }); jQuery("#home_newcarsearch").autocomplete("/autocomplete/ajax_autocompleter.php",{ width:386, minChars:2, extraParams:{s:'newcar'} }); jQuery("#home_newcarsearch2").autocomplete("/autocomplete/ajax_autocompleter.php",{ width:400, minChars:2, extraParams:{s:'newcar'} }); jQuery("#home_usedcarsearch").autocomplete("/autocomplete/ajax_autocompleter.php",{ width:239, minChars:2, extraParams:{s:'usedcar'} }); jQuery("#home_usedcarsearch2").autocomplete("/autocomplete/ajax_autocompleter.php",{ width:400, minChars:2, extraParams:{s:'usedcar'} }); jQuery("#home_directorysearch").autocomplete( "/autocomplete/ajax_autocompleter.php", { width:294, minChars:2, extraParams:{s:'directory'}, formatItem:function(row,i,max){ var color = row[1]=='Company'?'#1a9bff':(row[1]=='Brand'?'#35ab30':'#ff8827'); var item = "

"+row[0]+" "+row[1]+"

"; return item; }, highlight: function(value, term) { var arr = value.split('

'); var result = arr[0].replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([^$()[]{}*.+?|\])/gi, "\$1") + ")(?![^]*)(?![^&;]+;)", "gi"), "$1"); return result + '

' + arr[1] + '

' + arr[2]; } } ); jQuery("#home_motordirectorysearch2").autocomplete( "/autocomplete/ajax_autocompleter.php", { width:400, minChars:2, extraParams:{s:'directory'}, formatItem:function(row,i,max){ var color = row[1]=='Company'?'#1a9bff':(row[1]=='Brand'?'#35ab30':'#ff8827'); var item = "

"+row[0]+" "+row[1]+"

"; return item; }, highlight: function(value, term) { var arr = value.split('

'); var result = arr[0].replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([^$()[]{}*.+?|\])/gi, "\$1") + ")(?![^]*)(?![^&;]+;)", "gi"), "$1"); return result + '

' + arr[1] + '

' + arr[2]; } } ); jQuery("#home_accessoriessearch").autocomplete( "/autocomplete/ajax_autocompleter.php", { width:320, minChars:2, extraParams:{s:'products'}, …