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.
61 lines
1.4 KiB
JavaScript
61 lines
1.4 KiB
JavaScript
// JavaScript Document
|
|
function setPicUrl(v)
|
|
{
|
|
var result = v.split("|");
|
|
if (result[0] == "0")
|
|
{
|
|
var oldlink = $("#sublink").attr("href").split("?")[0];
|
|
$("#sublink").attr("href",oldlink + "?PicURL=//www.chinahighlights.com/" + result[1]);
|
|
//$("#PicURL").val(result[1]);
|
|
}else{
|
|
alert(result[1]);
|
|
//$("#PicURL").val("");
|
|
}
|
|
}
|
|
$(document).ready(function(){$('a[rel*=modal]').facebox();});
|
|
function gcookie(ckName){return $.cookie(ckName);}
|
|
|
|
//doWinLogin('qarightbase');
|
|
|
|
var VarLogin;
|
|
|
|
VarLogin = false;
|
|
|
|
function PostSubmit() {
|
|
|
|
VarLogin = isLogin();
|
|
|
|
if (VarLogin) {
|
|
|
|
//document.form1.submit();
|
|
|
|
}else{
|
|
|
|
doWinLogin('qarightbase');
|
|
//window.location.reload();
|
|
}
|
|
|
|
}
|
|
function postcard(url){
|
|
var temp='';
|
|
temp+='<form method="post" name="postcard" action="/cards/postcards/" id="postcard">';
|
|
temp+='<input type="hidden" value="'+url+'" name="PicURL" /></form>';
|
|
$(temp).appendTo("body");
|
|
$("#postcard").submit()
|
|
}
|
|
function viewOrderLab_r()
|
|
{
|
|
$("#pL-R").hide();
|
|
$("#pL-L").show("slow");
|
|
$(".viewOrderLab li:last").removeClass("current");
|
|
$(".viewOrderLab li:first").addClass("current");
|
|
}
|
|
function viewOrderLab_l()
|
|
{
|
|
PostSubmit();
|
|
$("#pL-L").hide();
|
|
$("#pL-R").show("slow");
|
|
$(".viewOrderLab li:first").removeClass("current");
|
|
$(".viewOrderLab li:last").addClass("current");
|
|
}
|