You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB
JavaScript

var sd = 0;
var ed = 100;
var sprice = 0;
var eprice = 100000;
var dsprice = 0;
var deprice = 100000;
var asprice = 0;
var aeprice = 100000;
var dtheme = "All";
var zShowMessages, resultcountE, rctSE, LineTypeDiv;
var totaladdons = 0,
totaltour = 0,
totaldaytrip = 0;
function fdt(n, o) {
dtheme = $(o).text();
//alert(dtheme ); //左侧导行 Essence
$("#daytriptheme").children().attr("class", "");
$("#daytriptheme2").children().attr("class", "");
$(o).addClass("itemSelected");
cc = 0;
$(".tourList").each(function() {
var tmpe = $(o).text().replace(/(^\s*)|(\s*$)/g, "");
var list_tmpe = $(this).find("li:first").text().replace(/(^\s*)|(\s*$)/g, "");
//alert(ppp); //$86
//alert($(this).find("li:first").text().replace(/(^\s*)|(\s*$)/g, "")); //列表里的 Culture Experience
//dtheme == tmpe
var reg = new RegExp(tmpe,"i");
//if (reg.test(list_tmpe) == true)
// alert(list_tmpe)
//if ($(this).find("li:first").text().replace(/(^\s*)|(\s*$)/g, "") == tmpe) {
if (reg.test(list_tmpe)){
$(this).show();
cc++;
} else {
if (tmpe == "All") {
$(this).show();
cc++;
} else {
$(this).hide();
}
}
});
//FadeCount(cc);
}