JavaScript kódovanie UTF-8?
Johny26
17. 4. 2011 14:42:34
";
document.getElementById('counter_index_div_'+pro_id).innerHTML = "-- : -- : --";
}
else
{
document.getElementById('bid_btn_'+pro_id).innerHTML = "
";
document.getElementById('counter_index_div_'+pro_id).innerHTML = "PAUSE";
}
}
else
{
var diff =parseInt(arraylist);
Extend_timer=diff;
if(diff>0)
{
if(l==0)
All_String=pro_id+"**E**"+arraylist;
else
All_String=All_String+"|@|"+pro_id+"**E**"+arraylist;
document.getElementById('bid_btn_'+pro_id).innerHTML = arraylist;
if(pro_id==product_id)
document.getElementById('flashing_index_div_'+pro_id).innerHTML = arraylist;
}
else
{
if(arraylist=='S')
{
if(pro_id==product_id)
document.getElementById('bid_btn_'+pro_id).innerHTML = "
";
else
document.getElementById('bid_btn_'+pro_id).innerHTML = "
";
document.getElementById('counter_index_div_'+pro_id).innerHTML = "VYHRAL";
}
else
{
if(pro_id==product_id)
document.getElementById('bid_btn_'+pro_id).innerHTML = "";
else
document.getElementById('bid_btn_'+pro_id).innerHTML = "";
document.getElementById('counter_index_div_'+pro_id).innerHTML = "OVERUJEM";
Expire_extend_bid(pro_id,product_id);
}
}
}
}
else if(arraylist=="NP")
{
if(pro_id==product_id)
{
document.getElementById('bid_btn_'+pro_id).innerHTML = "
";
document.getElementById('counter_index_div_'+pro_id).innerHTML = "-- : -- : --";
}
else
{
document.getElementById('bid_btn_'+pro_id).innerHTML = "
";
document.getElementById('counter_index_div_'+pro_id).innerHTML = "PAUSE";
}
}
else if(arraylist=="NN")
{
var diff =parseInt(arraylist);
Extend_timer=diff;
if(l==0)
All_String=pro_id+"**N";
else
All_String=All_String+"|@|"+pro_id+"**N";
document.getElementById('bid_btn_'+pro_id).innerHTML = arraylist;
}
if(pro_id==product_id)
{
var arraylist3=arraylist2.split("*@*");
if(arraylist3=="L")
{
document.getElementById('place_bid_div_'+pro_id).innerHTML = arraylist3;
if(arraylist3!="I")
document.getElementById("bid_from").value = arraylist3;
if(arraylist3!="R")
Update_bid_table(pro_id);
}
else
{
if(arraylist3!="R")
Update_bid_table(pro_id);
}
document.getElementById('price_index1_div_'+pro_id).innerHTML = arraylist3;
document.getElementById('price_save_div_'+pro_id).innerHTML = arraylist3;
}
}
if(All_String!="")
{
All_product=arraylist2;
Update_bidder_timer(All_String,1,Pagename,arraylist2,product_id);
}
}
}
}
};
if(All_product!=0)
Runngin_list=All_product;
setTimeout('Get_Bidder_list("'+Runngin_list+'","'+Pagename+'","'+product_id+'")', 10000);
doc.send(null);
}
function Update_bidder_timer(All_String,Timer,Pagename,Runngin_list,product_id)
{
var arraylist1=All_String.split("|@|");
for(l=0;l
";
else
document.getElementById('bid_btn_'+pro_id).innerHTML = "
";
setTimeout('Update_bid_auction()', 5000);
if(pro_id==product_id)
Congratulation_auction(pro_id);
}
}
else
{
setTimeout('Expire_extend_bid('+pro_id+','+product_id+');',10000);
}
}
}
doc.send(null);
}
function Start_auction() {
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location1.php?section=start_auction", false);
doc.send(null);
}
}
function add_to_watchlist(item_id){
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location1.php?section=add_to_watchlist&item_id=" + item_id, false);
doc.send(null);
if(doc.responseText==1)
alert("This product to be add in your watchlist successfully.");
}
}
function calc_counter_from_time(diff)
{
if (diff > 0) {
days=Math.floor(diff / (3600*24))
hours=Math.floor((diff / 3600)-(days*24))
minutes=Math.floor((diff / 3600 - hours -(days*24)) * 60)
seconds=Math.round((((diff / 3600 - hours-(days*24)) * 60) - minutes) * 60)
} else {
days=0;
hours = 0;
minutes = 0;
seconds = 0;
}
if (seconds == 60) {
seconds = 0;
}
if (minutes < 10) {
if (minutes < 0) {
minutes = 0;
}
minutes = '0' + minutes;
}
if (seconds < 10) {
if (seconds < 0) {
seconds = 0;
}
seconds = '0' + seconds;
}
if (hours < 10) {
if (hours < 0) {
hours = 0;
}
hours = '0' + hours;
}
return hours + " : " + minutes + " : " + seconds;
}
function calc_counter_from_time_short(diff) {
if (diff > 0) {
hours=Math.floor(diff / 3600)
minutes=Math.floor((diff / 3600 - hours) * 60)
seconds=Math.round((((diff / 3600 - hours) * 60) - minutes) * 60)
} else {
hours = 0;
minutes = 0;
seconds = 0;
}
if (seconds == 60) {
seconds = 0;
}
if (minutes < 10) {
if (minutes < 0) {
minutes = 0;
}
minutes = '0' + minutes;
}
if (seconds < 10) {
if (seconds < 0) {
seconds = 0;
}
seconds = '0' + seconds;
}
if (hours < 10) {
if (hours < 0) {
hours = 0;
}
hours = '0' + hours;
}
return minutes + " : " + seconds;
}
function Add_bid(pro_id) {
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location.php?section=add_bid&pro_id="+pro_id, false);
doc.send(null);
if(parseInt(doc.responseText)==99999)
document.location="index.php?show=login";
else
{
var mainarraylist=doc.responseText.split("**");
if(mainarraylist.length>1)
{
document.getElementById('price_index_div_'+parseInt(pro_id)).innerHTML = mainarraylist;
document.getElementById('winner_index_div_'+parseInt(pro_id)).innerHTML = mainarraylist;
document.getElementById('div_blance').innerHTML = mainarraylist;
}
else
alert(doc.responseText);
}
}
}
function check_bid(pro_id,Ptype,Pagename) {
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location.php?section=check_bid&pro_id="+pro_id+"&Pagename="+Pagename+"&Ptype="+Ptype, false);
doc.send(null);
if(parseInt(doc.responseText)==99999)
document.location="index.php?show=login";
else
{
var mainarraylist=doc.responseText.split("***");
if(mainarraylist==1)
{
window.open(mainarraylist,'subwindow','toolbar=no, location=no, directories=no, status=no, top=200, left=350, scrollbars=yes, menubar=no, resizable=no, maximize=no, width=300, height=160');
}
else
alert(doc.responseText);
}
}
}
function showdisplay(item_id){
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location1.php?section=show_detail&item_id=" + item_id, false);
doc.send(null);
//alert(doc.responseText);
document.getElementById('auction_detail_'+parseInt(item_id)).innerHTML = doc.responseText;
}
}
function hidedisplay(item_id){
document.getElementById('auction_detail_'+parseInt(item_id)).innerHTML = '';
}
function Congratulation_auction(item_id)
{
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location.php?section=congratulation_auction&item_id="+item_id, false);
doc.send(null);
document.getElementById('congratulation_auction_div_'+parseInt(item_id)).innerHTML = doc.responseText;
}
}
function showzoomdisplay(item_id){
ajax();
// Load the result from the response page
// ** As far a I know firefox will only load a document on the SAME domain!!
if (doc){
doc.open("GET", "./location1.php?section=showzoomdisplay&item_id=" + item_id, false);
doc.send(null);
//alert(doc.responseText);
document.getElementById('zoom_img_'+parseInt(item_id)).innerHTML = doc.responseText;
}
}
function hidezoomdisplay(item_id){
document.getElementById('zoom_img_'+parseInt(item_id)).innerHTML = '';
}
17. 4. 2011 14:42:34
ccboy
17. 4. 2011 18:32:51
17. 4. 2011 18:32:51
hm
17. 4. 2011 18:35:20
17. 4. 2011 18:35:20
Johny26
17. 4. 2011 19:07:54
17. 4. 2011 19:07:54
Prodej
Více
Pacamls.cz – ultraprémiová přírodní krmiva pro psy a kočky
20 000 Kč
0 příhozů
Ziskový jednoproduktový e-shop. Ideální na Vánoční sezónu.
49 000 Kč
0 příhozů
BUVU – balík 26 evropských domén + ochranná známka EUIPO
1 Kč
0 příhozů
RájZvířátek | Virtuální Hřbitov | Plný Skript
4 900 Kč
0 příhozů
🎬PartyVideo.cz – ideální start do sezóny večírků a plesů!
9 900 Kč
0 příhozů