I have an autobidder on my site and when someone places a bid the autobidder immediatly places a bid over that bid. I would like to have it bid with 1-5 seconds before the timer expires than right away.
Thanks for the help.
Rob
12 2873
You could check the expiration time and use PHP to set a scheduled task (windows) or CRON job (unix) to run the autobidder a few seconds before the timer expires. You'd need to have permission to run shell_exec() commands, though.
Thanks for the reply. We have a dedicated server so I do have permission to run shell.exec()commands. And we do run CRON jobs scheduled at one minute intervals.
I have a completely different auction script that I would like to switch to but can't get the countdown timers to work. You wouldn't be interested in fixing this for us would you? We would pay. We do have a list of things that we need addressed but the timers are the biggest. Need done ASAP. you can see the timer issue here pennytarget.com/pennytarget_oldsite
Let me know if you want to make some money.
Thanks,
Rob
Oh one more thing. The timer actually goes back up to to 30 seconds and starts counting down again when a bid is placed.
I appreciate the offer but I don't do programming for money. I tried it a few times and it didn't work out for me or my clients. I program because I love it and it's fun. Doing it for money, for some reason, makes it less fun and I lose my motivation.
As for the timer, all I see in the example on the old site is that it doesn't count down, and the first item pauses itself shortly after I load the page. That just looks like the Javascript has an error in it that's stopping execution. I had that issue with a countdown timer I wrote for my site. Just debug the Javascript.
And I am sorry, I wish I could help more, but like I said, it's never worked out for me or my clients when I try to take on programming jobs.
Do you have a link to where I could get another timer? Here is what the timer code looks like. Sorry if this is long. - <?
-
session_start();
-
include("config/connect.php");
-
include("functions.php");
-
$uid = $_SESSION["userid"];
-
-
$ipaddress = $_SERVER['REMOTE_ADDR'];
-
-
if($_SESSION["ipid"]=="" && $_SESSION["login_logout"]=="")
-
{
-
$qryipins = "Insert into login_logout (ipaddress,load_time) values('".$ipaddress."',NOW())";
-
mysql_query($qryipins) or die(mysql_error());
-
$ipid = mysql_insert_id();
-
-
$qryipsel = "select * from login_logout where id='$ipid'";
-
$rsip = mysql_query($qryipsel);
-
$obj = mysql_fetch_object($rsip);
-
$_SESSION["ipid"] = $obj->load_time;
-
$_SESSION["ipaddress"] = $ipaddress;
-
}
-
-
$qryauc = "select *, p.productID as pid,p.".$lng_prefix."name as name,".$lng_prefix."short_desc as short_desc from auction a left join products p on a.productID=p.productID left join auc_due_table adt on a.auctionID=adt.auction_id where adt.auc_due_time!=0 and a.auc_status='2' and featured_flag='0' order by adt.auc_due_time limit 0,6";
-
$resauc = mysql_query($qryauc);
-
$totalauc = mysql_num_rows($resauc);
-
?>
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=<?=$lng_characset;?>" />
-
<title><?=$AllPageTitle;?></title>
-
<link href="css/style_youbid.css" rel="stylesheet" type="text/css" />
-
<link href="css/menu.css" rel="stylesheet" type="text/css" />
-
<!--[if lte IE 6]>
-
<link href="css/menu_ie.css" rel="stylesheet" type="text/css" />
-
<![endif]-->
-
<script language="javascript" src="jquery.js"></script>
-
<script language="javascript" src="effect.js"></script>
-
<script language="javascript" src="default.js"></script>
-
<script language="javascript" src="jqModal.js"></script>
-
<script language="javascript" src="function.js"></script>
-
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
-
</head>
-
-
-
<body onload="OnloadPage();">
-
<div id="main_div">
-
<?
-
include("header.php");
-
?>
-
-
<div class="flash_img"><div style="float: left; width: 305px;"><img src="<?=$lng_imagepath;?>registerbgsnap1.gif" id="Image1" usemap="#Map1" border="0" /></div>
-
<div style="float: left">
-
<script type="text/javascript">
-
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','653','height','173','src','images/demo','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/demo' ); //end AC code
-
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="653" height="173">
-
<param name="movie" value="http://bytes.com/images/demo.swf" />
-
<param name="quality" value="high" />
-
<embed src="http://bytes.com/images/demo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="653" height="173"></embed>
-
</object>
-
</noscript></div></div>
-
-
<div id="middle_div">
-
<div class="openAuction_bar_mainDIV">
-
<div class="openAction_bar-left"></div>
-
<div class="openAction_bar-middle"><div class="page_title_font"><?=$lng_openauction;?></div></div>
-
<div class="openAction_bar-right"></div>
-
</div>
-
<div class="openAuction_bar_mainDIV2" <? if($totalauc>3){?> style="height: 470px;" <? } else { ?> style="height: 220px;" <? } ?>>
-
<div id="Auction_boxes">
-
<?
-
if($totalauc>0){
-
$a = 1;
-
while($objauc=mysql_fetch_array($resauc))
-
{
-
if($a==1 && $objauc["auc_status"]==2)
-
{
-
$co = "'".$objauc["auctionID"]."'";
-
$arr = $objauc["auctionID"];
-
$prr = $objauc["auc_due_price"];
-
}
-
elseif($objauc["auc_status"]==2)
-
{
-
$co .= ",'".$objauc["auctionID"]."'";
-
$arr .= ",".$objauc["auctionID"];
-
$prr .= ",".$objauc["auc_due_price"];
-
}
-
?>
-
<div class="auction-item" style="display: none" title="<?=$objauc["auctionID"];?>" id="auction_<?=$objauc["auctionID"];?>"></div>
-
<div class="openAuction_box">
-
<div id="openAuction_box_containt">
-
<div class="openAuction_itemname"><a href="auction_<?=str_replace(" ","_",strtolower(stripslashes($objauc["name"])));?>_<?=$objauc["auctionID"];?>.html"><?=stripslashes($objauc["name"]);?></a></div>
-
<div id="openAuction_box_containt_left">
-
<div class="openAuction_product_img"><a href="auction_<?=str_replace(" ","_",strtolower(stripslashes($objauc["name"])));?>_<?=$objauc["auctionID"];?>.html"><img src="uploads/products/thumbs_big/thumbbig_<?=$objauc["picture1"];?>" border="0" /></a></div>
-
</div>
-
<div id="openAuction_box_containt_right">
-
<div class="openAuction_timer">
-
<span id="counter_index_page_<?=$objauc["auctionID"];?>">
-
<?
-
echo "<script language='javascript' type='text/javascript'>
-
document.getElementById('counter_index_page_".$objauc["auctionID"]."').innerHTML = calc_counter_from_time('".$objauc["auc_due_time"]."');
-
</script>";
-
?>
-
</span>
-
</div>
-
<div class="openAuction_product_price">
-
<span class="price" id="currencysymbol_<?=$objauc["auctionID"];?>"></span><span class="price" id="price_index_page_<?=$objauc["auctionID"];?>">---</span>
-
</div>
-
<div class="openAuction_bidder_name"><?=$lng_bidder;?>: <span id="product_bidder_<?=$objauc["auctionID"];?>">---</span></div>
-
</div>
-
<div class="openAuction_Bid_button">
-
<? if($uid==""){ ?>
-
<img src="<?=$lng_imagepath;?>BID_btn.png" border="0" alt="BID" onmouseover="this.src='<?=$lng_imagepath;?>LOGIN_btn-2.png'" onmouseout="this.src='<?=$lng_imagepath;?>BID_btn.png'" onclick="javascript: window.location.href='login.html'" id="image_main_<?=$objauc["auctionID"];?>" style="cursor: pointer"/>
-
<? } else { ?>
-
<img src="<?=$lng_imagepath;?>BID_btn.png" border="0" class="bid-button-link" name="getbid.php?prid=<?=$objauc["productID"];?>&aid=<?=$objauc["auctionID"];?>&uid=<?=$uid;?>" alt="BID" onmouseover="this.src='<?=$lng_imagepath;?>BID_btn_hover.png'" onmouseout="this.src='<?=$lng_imagepath;?>BID_btn.png'" id="image_main_<?=$objauc["auctionID"];?>" style="cursor: pointer"/>
-
<? } ?>
-
</div>
-
<div class="openAuction_itemvalue"><?=$lng_itemvalue;?><?=$Currency.number_format($objauc["price"],2);?></div>
-
</div>
-
</div>
-
<?
-
$a++;
-
}
-
}
-
else
-
{
-
?>
-
<div style="height: 10px;"> </div>
-
<div class="noauction_message"><? echo $lng_noliveauction; ?></div>
-
<?
-
}
-
?>
-
-
</div>
-
</div>
-
<div id="cleaner"></div>
-
<div class="openAuction_bar_bottom">
-
<div class="openAuction_leftcorner"></div>
-
<div class="openAuction_bar_middle"></div>
-
<div class="openAuction_rightcorner"></div>
-
</div>
-
<div id="cleaner"></div>
-
<?
-
if($co!="")
-
{
-
$qryauc2 = "select *, p.productID as pid, p.".$lng_prefix."name as name,".$lng_prefix."short_desc as short_desc from auction a left join products p on a.productID=p.productID left join auc_due_table adt on a.auctionID=adt.auction_id where a.auctionID not in(".$co.") and adt.auc_due_time!=0 and a.auc_status=2 order by adt.auc_due_time limit 0,10";
-
$resauc2 = mysql_query($qryauc2);
-
$totalauc2 = mysql_num_rows($resauc2);
-
}
-
if($totalauc2>0)
-
{
-
?>
-
<div class="openAuction_bar_mainDIV">
-
<div class="openAction_bar-left"></div>
-
<div class="openAction_bar-middle"><div class="page_title_font"><?=$lng_moreliveauction;?></div></div>
-
<div class="openAction_bar-right"></div>
-
</div>
-
<div class="openAuction_bar_mainDIV2">
-
<div style="height: 15px;"> </div>
-
<div class="H_beit">
-
<div class="h_beit_image"><?=$lng_image;?></div>
-
<div class="h_beit_desc"><?=$lng_description;?></div>
-
<div class="h_beit_price"><?=$lng_price;?></div>
-
<div class="h_beit_bidder"><?=$lng_bidder;?></div>
-
<div class="h_beit_countdown"><?=$lng_countdown;?></div>
-
</div>
-
<?
-
while($objauc2 = mysql_fetch_array($resauc2))
-
{
-
$arr .= ",".$objauc2["auctionID"];
-
$prr .= ",".$objauc2["auc_due_price"];
-
?>
-
<div class="auction-item" style="display: none" title="<?=$objauc2["auctionID"];?>" id="auction_<?=$objauc2["auctionID"];?>"></div>
-
<div class="descripton_box">
-
<div class="decription">
-
<div class="body_inner_img"><a href="auction_<?=str_replace(" ","_",strtolower(stripslashes($objauc2["name"])));?>_<?=$objauc2["auctionID"];?>.html"><img src="uploads/products/thumbs_big/thumbbig_<?=$objauc2["picture1"];?>" border="0" /></a></div>
-
<div class="auction_decri"><span style="font-size:12px; color:#000000;"><a href="auction_<?=str_replace(" ","_",strtolower($objauc2["name"]));?>_<?=$objauc2["auctionID"];?>.html" class="black_link"><?=stripslashes($objauc2["name"]);?></a></span><br />
-
<br />
-
<? echo stripslashes(choose_short_desc($objauc2["short_desc"],165));?><a href="auction_<?=str_replace(" ","_",strtolower(stripslashes($objauc2["name"])));?>_<?=$objauc2["auctionID"];?>.html" class="black_link"><?=$lng_linkmore;?></a>
-
</div>
-
<div class="auction_price"><span class="body_inner_box_price">
-
<span style="font-size:16px; font-weight: bold;"><span class="price" id="currencysymbol_<?=$objauc2["auctionID"];?>"></span><span class="price" id="price_index_page_<?=$objauc2["auctionID"];?>">---</span>
-
</span>
-
<br />
-
<?=$lng_insteadof;?><?=$Currency;?><?=$objauc2["price"];?>)</span></div>
-
<div class="auction_bidder">
-
<span id="product_bidder_<?=$objauc2["auctionID"];?>">---</span>
-
</div>
-
<div class="auction_countdown">
-
<span class="body_inner_box_price_heading" id="counter_index_page_<?=$objauc2["auctionID"];?>">
-
<?
-
echo "<script language='javascript' type='text/javascript'>
-
document.getElementById('counter_index_page_".$objauc2["auctionID"]."').innerHTML = calc_counter_from_time('".$objauc2["auc_due_time"]."');
-
</script>";
-
?>
-
</span><br />
-
<? if($uid==""){ ?>
-
<img src="<?=$lng_imagepath;?>BID_btn2.png" border="0" alt="BID" onmouseover="this.src='<?=$lng_imagepath;?>login_btn3.png'" onmouseout="this.src='<?=$lng_imagepath;?>BID_btn2.png'" onclick="javascript: window.location.href='login.html'" id="image_main_<?=$objauc2["auctionID"];?>" style="cursor: pointer; padding-left: 7px;"/>
-
<? } else { ?>
-
<img src="<?=$lng_imagepath;?>BID_btn2.png" border="0" class="bid-button-link" name="getbid.php?prid=<?=$objauc2["productID"];?>&aid=<?=$objauc2["auctionID"];?>&uid=<?=$uid;?>" alt="BID" onmouseover="this.src='<?=$lng_imagepath;?>BID_btn_hover2.png'" onmouseout="this.src='<?=$lng_imagepath;?>BID_btn2.png'" id="image_main_<?=$objauc2["auctionID"];?>" style="cursor: pointer;padding-left: 7px;"/>
-
<? } ?>
-
</div>
-
</div>
-
</div>
-
<?
-
}
-
?>
-
</div>
-
<div class="openAuction_bar_bottom">
-
<div class="openAuction_leftcorner"></div>
-
<div class="openAuction_bar_middle"></div>
-
<div class="openAuction_rightcorner"></div>
-
</div>
-
<?
-
}
-
?>
-
<?
-
include("footer.php");
-
?>
-
<span style="display: none;" class="firstimagebold" id="firstimage_bold"><?=$totalauc;?></span>
-
</div>
-
<map name="Map1"><area shape="rect" coords="97,165,210,135" href="registration.html" title="Register"></map>
-
</body>
-
</html>
This is another one thats on this script: - <?
-
include("config/connect.php");
-
include("functions.php");
-
-
$qrysel = "select * from auc_due_table adt left join auction a on a.auctionID=adt.auction_id where auc_due_time!=0 and a.pause_status='0' and auction_id='77' order by auction_id";
-
$ressel = mysql_query($qrysel);
-
$obj = mysql_fetch_array($ressel);
-
$total = mysql_num_rows($ressel);
-
-
$auctiondueprice = GetAuctionMinPrice($obj["auctionID"]);
-
-
echo "Auction Minimum Price:".$obj["auction_min_price"]."<br>";
-
echo "Auction DuePrice:".$auctiondueprice;
-
-
if($obj["auction_min_price"]!="0.00" && $auctiondueprice<$obj["auction_min_price"])
-
{
-
// PlaceSystemBid($obj["auctionID"]);
-
echo "<br/>Condition is true";
-
}
-
-
?>
- //v1.7
-
-
// Flash Player Version Detection
-
-
// Detect Client Browser type
-
-
// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved.
-
-
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
-
-
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
-
-
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
-
-
-
-
function ControlVersion()
-
-
{
-
-
var version;
-
-
var axo;
-
-
var e;
-
-
-
-
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
-
-
-
-
try {
-
-
// version will be set for 7.X or greater players
-
-
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
-
-
version = axo.GetVariable("$version");
-
-
} catch (e) {
-
-
}
-
-
-
-
if (!version)
-
-
{
-
-
try {
-
-
// version will be set for 6.X players only
-
-
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
-
-
-
-
// installed player is some revision of 6.0
-
-
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
-
-
// so we have to be careful.
-
-
-
-
// default to the first public version
-
-
version = "WIN 6,0,21,0";
-
-
-
-
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
-
-
axo.AllowScriptAccess = "always";
-
-
-
-
// safe to call for 6.0r47 or greater
-
-
version = axo.GetVariable("$version");
-
-
-
-
} catch (e) {
-
-
}
-
-
}
-
-
-
-
if (!version)
-
-
{
-
-
try {
-
-
// version will be set for 4.X or 5.X player
-
-
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
-
-
version = axo.GetVariable("$version");
-
-
} catch (e) {
-
-
}
-
-
}
-
-
-
-
if (!version)
-
-
{
-
-
try {
-
-
// version will be set for 3.X player
-
-
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
-
-
version = "WIN 3,0,18,0";
-
-
} catch (e) {
-
-
}
-
-
}
-
-
-
-
if (!version)
-
-
{
-
-
try {
-
-
// version will be set for 2.X player
-
-
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
-
-
version = "WIN 2,0,0,11";
-
-
} catch (e) {
-
-
version = -1;
-
-
}
-
-
}
-
-
-
-
return version;
-
-
}
-
-
-
-
// JavaScript helper required to detect Flash Player PlugIn version information
-
-
function GetSwfVer(){
-
-
// NS/Opera version >= 3 check for Flash plugin in plugin array
-
-
var flashVer = -1;
-
-
-
-
if (navigator.plugins != null && navigator.plugins.length > 0) {
-
-
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
-
-
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
-
-
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
-
-
var descArray = flashDescription.split(" ");
-
-
var tempArrayMajor = descArray[2].split(".");
-
-
var versionMajor = tempArrayMajor[0];
-
-
var versionMinor = tempArrayMajor[1];
-
-
var versionRevision = descArray[3];
-
-
if (versionRevision == "") {
-
-
versionRevision = descArray[4];
-
-
}
-
-
if (versionRevision[0] == "d") {
-
-
versionRevision = versionRevision.substring(1);
-
-
} else if (versionRevision[0] == "r") {
-
-
versionRevision = versionRevision.substring(1);
-
-
if (versionRevision.indexOf("d") > 0) {
-
-
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
-
-
}
-
-
}
-
-
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
-
-
}
-
-
}
-
-
// MSN/WebTV 2.6 supports Flash 4
-
-
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
-
-
// WebTV 2.5 supports Flash 3
-
-
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
-
-
// older WebTV supports Flash 2
-
-
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
-
-
else if ( isIE && isWin && !isOpera ) {
-
-
flashVer = ControlVersion();
-
-
}
-
-
return flashVer;
-
-
}
-
-
-
-
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
-
-
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
-
-
{
-
-
versionStr = GetSwfVer();
-
-
if (versionStr == -1 ) {
-
-
return false;
-
-
} else if (versionStr != 0) {
-
-
if(isIE && isWin && !isOpera) {
-
-
// Given "WIN 2,0,0,11"
-
-
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
-
-
tempString = tempArray[1]; // "2,0,0,11"
-
-
versionArray = tempString.split(","); // ['2', '0', '0', '11']
-
-
} else {
-
-
versionArray = versionStr.split(".");
-
-
}
-
-
var versionMajor = versionArray[0];
-
-
var versionMinor = versionArray[1];
-
-
var versionRevision = versionArray[2];
-
-
-
-
// is the major.revision >= requested major.revision AND the minor version >= requested minor
-
-
if (versionMajor > parseFloat(reqMajorVer)) {
-
-
return true;
-
-
} else if (versionMajor == parseFloat(reqMajorVer)) {
-
-
if (versionMinor > parseFloat(reqMinorVer))
-
-
return true;
-
-
else if (versionMinor == parseFloat(reqMinorVer)) {
-
-
if (versionRevision >= parseFloat(reqRevision))
-
-
return true;
-
-
}
-
-
}
-
-
return false;
-
-
}
-
-
}
-
-
-
-
function AC_AddExtension(src, ext)
-
-
{
-
-
if (src.indexOf('?') != -1)
-
-
return src.replace(/\?/, ext+'?');
-
-
else
-
-
return src + ext;
-
-
}
-
-
-
-
function AC_Generateobj(objAttrs, params, embedAttrs)
-
-
{
-
-
var str = '';
-
-
if (isIE && isWin && !isOpera)
-
-
{
-
-
str += '<object ';
-
-
for (var i in objAttrs)
-
-
{
-
-
str += i + '="' + objAttrs[i] + '" ';
-
-
}
-
-
str += '>';
-
-
for (var i in params)
-
-
{
-
-
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
-
-
}
-
-
str += '</object>';
-
-
}
-
-
else
-
-
{
-
-
str += '<embed ';
-
-
for (var i in embedAttrs)
-
-
{
-
-
str += i + '="' + embedAttrs[i] + '" ';
-
-
}
-
-
str += '> </embed>';
-
-
}
-
-
-
-
document.write(str);
-
-
}
-
-
-
-
function AC_FL_RunContent(){
-
-
var ret =
-
-
AC_GetArgs
-
-
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
-
-
, "application/x-shockwave-flash"
-
-
);
-
-
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
-
-
}
-
-
-
-
function AC_SW_RunContent(){
-
-
var ret =
-
-
AC_GetArgs
-
-
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
-
-
, null
-
-
);
-
-
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
-
-
}
-
-
-
-
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
-
-
var ret = new Object();
-
-
ret.embedAttrs = new Object();
-
-
ret.params = new Object();
-
-
ret.objAttrs = new Object();
-
-
for (var i=0; i < args.length; i=i+2){
-
-
var currArg = args[i].toLowerCase();
-
-
-
-
switch (currArg){
-
-
case "classid":
-
-
break;
-
-
case "pluginspage":
-
-
ret.embedAttrs[args[i]] = args[i+1];
-
-
break;
-
-
case "src":
-
-
case "movie":
-
-
args[i+1] = AC_AddExtension(args[i+1], ext);
-
-
ret.embedAttrs["src"] = args[i+1];
-
-
ret.params[srcParamName] = args[i+1];
-
-
break;
-
-
case "onafterupdate":
-
-
case "onbeforeupdate":
-
-
case "onblur":
-
-
case "oncellchange":
-
-
case "onclick":
-
-
case "ondblClick":
-
-
case "ondrag":
-
-
case "ondragend":
-
-
case "ondragenter":
-
-
case "ondragleave":
-
-
case "ondragover":
-
-
case "ondrop":
-
-
case "onfinish":
-
-
case "onfocus":
-
-
case "onhelp":
-
-
case "onmousedown":
-
-
case "onmouseup":
-
-
case "onmouseover":
-
-
case "onmousemove":
-
-
case "onmouseout":
-
-
case "onkeypress":
-
-
case "onkeydown":
-
-
case "onkeyup":
-
-
case "onload":
-
-
case "onlosecapture":
-
-
case "onpropertychange":
-
-
case "onreadystatechange":
-
-
case "onrowsdelete":
-
-
case "onrowenter":
-
-
case "onrowexit":
-
-
case "onrowsinserted":
-
-
case "onstart":
-
-
case "onscroll":
-
-
case "onbeforeeditfocus":
-
-
case "onactivate":
-
-
case "onbeforedeactivate":
-
-
case "ondeactivate":
-
-
case "type":
-
-
case "codebase":
-
-
case "id":
-
-
ret.objAttrs[args[i]] = args[i+1];
-
-
break;
-
-
case "width":
-
-
case "height":
-
-
case "align":
-
-
case "vspace":
-
-
case "hspace":
-
-
case "class":
-
-
case "title":
-
-
case "accesskey":
-
-
case "name":
-
-
case "tabindex":
-
-
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
-
-
break;
-
-
default:
-
-
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
-
-
}
-
-
}
-
-
ret.objAttrs["classid"] = classid;
-
-
if (mimeType) ret.embedAttrs["type"] = mimeType;
-
-
return ret;
-
-
}
I can post more if it will help
Thanks
Rob
-------------------
Edit Sorry about that
Please edit your post and use code tags:
[code]CODE GOES HERE[/code]
I'll be more willing to help after you do that.
Sorry, I edited it and forgot the / in [/code]
All I can say is that the javascript function that handles displaying the time needs to be told to run once every 1000 milliseconds, so you'll need a setTimeout() somewhere in there. I'm sorry I can't be of more help, but this is a Javascript issue and I haven't done any serious Javascript in years. We're aso getting off topic, back to my original reply, I'drecommend simply assigning a new CRON job to place a bid a few seconds before the timer expires. Make sure you check to see if a CRON already exists for that auction though, you don't want multiple CRONs posting multiple bids on the same item.
Also, are you doing this so that you can always outbid your users so you don't have to actually give anything away? I don't want to assume that, but it really looks that way. That's really dishonest and a great way to get yourself a very bad reputation, and possibly in a lot of trouble.
Okay, thanks for your time and help. Your the best!!!!
You never answered my last question... If this is your site and you're tryin to automatically outbid your own users so you don't have to actually give anything away, that's really really dishonest, especially if your users atually pay the pennies before they win the auctions, because then you're stealing their money.
Just please, tell me this isn't the case.
Oh no thats not it Halo,
I was actually talking about two seperate issues. Heres the 2 problems I was talking about.
Issue 1 - My original question:
Our current script has an auto bidder that a user can set. Unlike Ebay where the timer ticks down to zero and the auction is over our type of auction adds time to the clock to allow other people the chance to bid. It wont add time unless the countdown timer goes below a predetermined time. So if we set an auction with a 20 second timer if a bid is placed at 5 seconds left the timer will start at 20 seconds and tick down again. If no bids are placed when it reaches zero then the auction is over. Our autobidder is set by the user and it allows him to make sure hes the highest bidder. The problem though is If the person sets it with 2 hours remainding in the auction it will still outbid everyone. We want it to wait until the timer falls below lets say 1 minute before it bids so the person isn't wasting their bids.
Issue 2
The other script I have I like a lot more but we cant get the timers to work at all. There are 3 test auctions posted and one says Paused and the other two aren't ticking down. If we can get the timer issue fixed then we would switch to that script.
And NO we don't bid on our own site. Thats a big no no in the industry. And we do good without cheating. Thanks again for all your help.
You don't know where I would stick that SetTimeout function do?
Ok, thank you for explaining that. I'm sorry I sounded accusatory, I've had a rough few days. Just got fired from my job, trying to stay positive but it's not easy.
The setTimeout() should go at the end of the function that handles the timer. Here's a simple countdown code that I didn't test at all before typing: - var seconds = 60;
-
-
function countDown() {
-
seconds--;
-
document.getElementById('some_div').innerHTML = seconds;
-
setTimeout(countDown(), 1000);
-
}
What that does is takes the initial value of seconds, subtracts one, sets the innerHTML of a div with id "some_div" to the value of seconds, then runs the countdown again.
Keep in mind this is a very simple example, it has no way of knowing if the valu of seconds is less than 0 so it will continue to count down past 0. It's just an example to show you how to use setTimeout().
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tom |
last post by:
Hi,
I have the following problem. I analyse data from a file. When I am done
analysing all the data that was in that file, I want to let my program
wait until this specific file has changed...
|
by: MLH |
last post by:
Best way to make Access 2.0 code wait 10 seconds before processing the
next line???
For i=1 to whatever : next i
is just too processor intensive.
Isn't there something less taxing
I can...
|
by: TJS |
last post by:
in a script, a stored procedure is called. I want to verify the procedure
is complete before proceeding ahead.
How can I have the script wait until a stored procedure is verified as
complete...
|
by: bigpoppa |
last post by:
Hey I need help (doesn't everyone?) on a script. The script functions like this:
Please wait X seconds for download (for example x=15 seconds)
Please wait 14 seconds for download (and then a second...
|
by: Eddie |
last post by:
I am opening a windows (well, technically a greybox() call GB_show()
which shows a nicer window than normal), and want to wait until that
window is closed before moving to the next command. ...
| |
by: shawn gong |
last post by:
hi all,
I have a popup dialog using GTK, which allows user to select "Yes" or "No".
Then the program flows depending on the selected answer.
The problem is that func() doesn't not wait for...
|
by: Neekos |
last post by:
I'm programatically opening IE and i need my code to wait until the browser is finished loading before continuing. How do i make it wait?
i tried:
Do
DoEvents
Loop Until webBrowser1.Busy =...
|
by: Luke Bailey |
last post by:
I'm trying to complete some changes to a database that I have created and I need to finish it by tomorrow morning!
Here's the situation:
I have a form where people can order a number of...
|
by: raghudr |
last post by:
Hi all,
I have created lot of controls on a form
what i want to do is for wait until handles are created.
how can we do this??
say rag=new label();
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |