|
|
TrunMenu("video-photo","active","li","vidoeorPhoto");
|
|
|
|
|
|
$(function(){
|
|
|
|
|
|
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":9999
|
|
|
});
|
|
|
},function(){TSuuseridwin= setTimeout("$('.moreInfo').hide()" ,300)});
|
|
|
|
|
|
uuseridwinPIE.hover(function(){if(TSuuseridwin)clearTimeout(TSuuseridwin);$(this).show();},function(){$(this).hide();});//
|
|
|
});
|
|
|
|
|
|
function preloadImages(json) {
|
|
|
for(var i=0;i<json.length;i++) {
|
|
|
$('<img />').attr('src', json[i]);
|
|
|
}
|
|
|
}
|
|
|
$(document).ready(function(){
|
|
|
imagePreview();
|
|
|
});
|
|
|
|
|
|
|
|
|
function showstf(){
|
|
|
$("#stf").show();
|
|
|
}
|
|
|
function hidestf(){
|
|
|
$("#stf").hide();
|
|
|
}
|
|
|
function preloadImages(json) {
|
|
|
for(var i=0;i<json.length;i++) {
|
|
|
$('<img />').attr('src', json[i]);
|
|
|
}
|
|
|
}
|
|
|
$(document).ready(function(){
|
|
|
imagePreview();
|
|
|
});
|
|
|
|
|
|
|
|
|
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();
|
|
|
});
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ύ<EFBFBD><E1BDBB>ַ
|
|
|
$("#Q_URL").val(location.href);
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
{
|
|
|
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+", ";
|
|
|
}
|
|
|
document.toursearchpanelform.city.value=sc;
|
|
|
}*/
|
|
|
$(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;
|
|
|
} |