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.
164 lines
5.0 KiB
JavaScript
164 lines
5.0 KiB
JavaScript
TrunMenu("video-photo","active","li","vidoeorPhoto");
|
|
|
|
$(function(){
|
|
if($(".china-tour-list").size()<=10)
|
|
{$(".showmoreresult").hide();}
|
|
|
|
var uuseridwinPIE= $(".moreInfo"),TSuuseridwin;
|
|
// $(".valueGuarantee").css("cursor", "pointer")
|
|
uuseridwinPIE.prev().hover(function(){
|
|
|
|
var te = $(this), ps = te.position(), tp = (te.height()+ 5 + ps.top) + "px", tl = ps.left + "px";//te.height()* 2
|
|
te.next().css({
|
|
position: "absolute",
|
|
top: tp,
|
|
left: tl,
|
|
display: "block",
|
|
"background-color": "#FFF",
|
|
"z-index":1000
|
|
});
|
|
},function(){TSuuseridwin= setTimeout("$('.moreInfo').hide()" ,300)});
|
|
|
|
uuseridwinPIE.hover(function(){if(TSuuseridwin)clearTimeout(TSuuseridwin);$(this).show();},function(){$(this).hide();});//
|
|
});
|
|
|
|
function SimpleForm1submitCheck(){
|
|
var realnameI = StrIsNullOrEmpty("realname","Please fill in your full name.","","",false);
|
|
var emailI = RegCkElement("email","Please fill in a valid email address! Eg: service@chinahighlights.com","/^([a-zA-Z0-9_-_\.])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-_\.])+/","","",false);
|
|
var PhoneNoI = StrIsNullOrEmpty("PhoneNo","Please fill in your phone number","","",false);
|
|
if(realnameI&&emailI&&PhoneNoI) {return true;}else{return false;}
|
|
}
|
|
|
|
|
|
$(function(){
|
|
$("#send-button1").click(function(){
|
|
var emailI = RegCkElement("yemail","Please fill in a valid email address! Eg: service@chinahighlights.com","/^([a-zA-Z0-9_-_\.])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/","","",false);
|
|
var realnameI = StrIsNullOrEmpty("realname","Please fill in your full name.","","",false);
|
|
var AquestionI = StrIsNullOrEmpty("Aquestion","Please fill in your Question.","","",false);
|
|
if(emailI&&realnameI&&AquestionI)
|
|
$("#formquestion1").submit();
|
|
});
|
|
//±£´æÌá½»µØÖ·
|
|
$("#Q_URL").val(location.href);
|
|
});
|
|
|
|
|
|
$(function(){
|
|
|
|
var uuseridwinPIE= $(".tipInfo"),TSuuseridwin;
|
|
// $(".valueGuarantee").css("cursor", "pointer")
|
|
uuseridwinPIE.prev().hover(function(){
|
|
|
|
var te = $(this), ps = te.position(), tp = (te.height()+ 5 + ps.top) + "px", tl = ps.left + "px";//te.height()* 2
|
|
te.next().css({
|
|
position: "absolute",
|
|
top: tp,
|
|
left: tl,
|
|
display: "block",
|
|
"background-color": "#FFF",
|
|
"z-index":9999
|
|
});
|
|
},function(){TSuuseridwin= setTimeout("$('.tipInfo').hide()" ,300)});
|
|
|
|
uuseridwinPIE.hover(function(){if(TSuuseridwin)clearTimeout(TSuuseridwin);$(this).show();},function(){$(this).hide();});//
|
|
});
|
|
|
|
|
|
function selectcmp(o){
|
|
j=0;
|
|
for (i=0;i<document.form1.ccheckbox.length;i++){
|
|
if (document.form1.ccheckbox[i].checked){j++}
|
|
}
|
|
if (j>=4) {o.checked = false;alert('up to 3');}
|
|
}
|
|
|
|
function gocmp()
|
|
{
|
|
var vv = "";
|
|
var j = 0;
|
|
for (i=0;i<document.form1.ccheckbox.length;i++){
|
|
if (document.form1.ccheckbox[i].checked){
|
|
j++;
|
|
vv += document.form1.ccheckbox[i].value+",";
|
|
}
|
|
}
|
|
if(j<2) {alert('err:less than 2');return;}
|
|
location.href='/tour/tour-comparison.asp?delete_name='+vv;
|
|
//alert(vv);
|
|
}
|
|
$(function(){
|
|
checkd();
|
|
});
|
|
|
|
function checkd()
|
|
{
|
|
var obj=document.getElementsByName("sc");
|
|
var cl =obj.length;
|
|
var sc = "";
|
|
for(var ii=0;ii<cl;ii++){
|
|
if(obj[ii].checked)sc=sc+obj[ii].value+", ";
|
|
}
|
|
if ("" == sc ) {
|
|
$(".cityName input[checked=checked]").each(function(){
|
|
sc += $(this).val()+", ";
|
|
});
|
|
}
|
|
document.toursearchpanelform.city.value=sc;
|
|
}
|
|
|
|
// show more result
|
|
var curShow = 10;
|
|
var ii = 0;
|
|
function clickShow() {
|
|
if ($(".china-tour-list:eq(" + ii + ")") != "display: none;") {
|
|
curShow += 10;
|
|
}
|
|
for (ii = 10; ii < curShow; ii++) {
|
|
$(".china-tour-list:eq(" + ii + ")").show();
|
|
}
|
|
if(curShow > $(".china-tour-list").size()){
|
|
$(".showmoreresult").hide();
|
|
return;
|
|
}
|
|
curShow = curShow + 10;
|
|
}
|
|
|
|
var allDialogs = [];
|
|
var seq = 0;
|
|
var bottomclose = '<div class="boxy_bottom"><a onclick="Boxy.get(this).hide(); return false" class="close">CLOSE X</a></div>';
|
|
function iframe(url, w, h) {
|
|
return '<iframe id="Dialog-iframe" frameborder="0" src="' + url + '" style="width: ' + w + 'px; height: ' + h + 'px;"></iframe>';
|
|
}
|
|
function CreateBoxy(tit, cnt, options) {
|
|
options = $.extend({
|
|
title: tit
|
|
},
|
|
options || {});
|
|
var dialog = new Boxy(cnt, options);
|
|
allDialogs.push(dialog);
|
|
return false;
|
|
}
|
|
function ShowIFrame(title, url, w, h, closeplace) {
|
|
var options;
|
|
var cnt = iframe(url, w, h);
|
|
if (closeplace == 'top') {
|
|
options = {
|
|
fixed: false,
|
|
modal: true
|
|
}
|
|
} else if (closeplace == 'bottom') {
|
|
options = {
|
|
fixed: false,
|
|
modal: true,
|
|
closeable: false
|
|
}
|
|
cnt = cnt + bottomclose;
|
|
} else {
|
|
options = {
|
|
fixed: false,
|
|
modal: true,
|
|
closeable: false
|
|
}
|
|
}
|
|
return CreateBoxy(title, cnt, options);
|
|
} |