问题描述
<%@ControlLanguage="C#"AutoEventWireup="true"CodeFile="CatBoxList.ascx.cs"Inherits="jc_UserControls_CatBoxList"%><scriptsrc="/Scripts/jquery-1.3.2.min.js"></script><scriptsrc="/scripts/wjc.js"></script><divid="wjcdiv"style='position:absolute;z-index:10;left:0;top:10px;width:0px;height:0px;overflow:hidden;'><iframewidth='500'height='350'scrolling="no"frameborder="0"></iframe><divonclick="wjcclose()"style="width:25px;height:15px;position:absolute;z-index:11;right:10px;top:10px;cursor:pointer;color:#fff;">关闭</div></div><%foreach(System.Data.DataRowdrinCategory.Rows){%><!----------------------左侧-----------------------><divclass="columnspace20"><divclass="by"><divclass="by_a"><span><%=dr["sortname"]%></span><ahref="List-<%=dr["sortid"]%>-1-0-0.aspx"><imgsrc="images/more.gif"/></a></div><divclass="by_b"style="overflow:hidden;"><divstyle="width:830px;"><%System.Data.DataTableProList=lt.SQLServerDAL.SqlStatement.dt("selectb.idid,b.namename,b.marketpricemarketprice,b.thumbthumb,a.auctionpriceauctionprice,a.quizpricequizprice,a.minpriceminprice,a.maxpricemaxprice,a.timelimittimelimit,a.startstimestartstimefromquizcommodityajoinlt_shopbona.id=b.idandb.typeid=4andb.catidin(96)");foreach(System.Data.DataRowdrpinProList.Rows){%><divclass="n_pi_block"style="margin:027px13px0;_display:inline;"><divclass="wen"><ahref="View-<%=drp["id"]%>.aspx"target="_blank"><%=drp["name"]%></a></div><divclass="n_pitem_img"><ahref="View-<%=drp["id"]%>.aspx"target=_blank><imgsrc="<%=lt.Common.Input.isPicStr(lt.Common.Conversion.ArrayFirst(drp["thumb"].ToString(),','))%>"/></a></div><divclass="n_pi_info"><divclass="n_pi_left">市场价</div><divclass="n_pi_split">|</div><divclass="n_pi_right">¥<%=drp["marketprice"]%></div></div><divclass="n_pi_info"><divclass="n_pi_left">拍卖价</div><divclass="n_pi_split">|</div><divclass="n_pi_rightc"><%=drp["quizprice"]%></div></div><divclass="n_pi_info"><divclass="n_pi_left">竞价范围</div><divclass="n_pi_split">|</div><divclass="n_pi_rightc"><%=drp["minprice"]%>~<%=drp["maxprice"]%></div></div><divclass="n_pi_info"><divclass="n_pi_left">竞猜价</div><divclass="n_pi_split">|</div><divclass="n_pi_rightc"><%=drp["quizprice"]%></div></div><divclass="n_pi_totimecountdown"></div>这里调用otimecountdown怎么处理啊??</div><%}%></div></div></div></div><%}%><scripttype="text/javascript">$(".otimecountdown").each(function(){alert("otimecountdown")otime($(this),$(this).attr("res"));})functionotime(obj,tt){varotimeticks=tt;alert("otime")varotimeSeconds=Math.floor(otimeticks%60);varotimeMinutes=Math.floor(otimeticks/60)%60;varotimeHour=Math.floor(otimeticks/3600);//alert(otimeHour);obj.html(otimeHour+":"+otimeMinutes+":"+otimeSeconds);setTimeout(otime(obj,tt-1),1000);}//--></script>怎么在红色地方调用下面的函数啊?请高手指导!!
解决方案
解决方案二:
帮帮忙吧,一天也没有搞明白!!
解决方案三:
帮帮忙吧,新手一天也没有搞明白!!
解决方案四:
本帖最后由 net_lover 于 2011-12-17 16:47:16 编辑
解决方案五:
<divclass="n_pi_totimecountdown"></div>这个地方,你生成这种格式就可以了<divclass="n_pi_totimecountdown"res="10000"></div>
解决方案六:
MicrosoftJScript运行时错误:缺少对象还是不行
解决方案七:
你调试下是哪行报告的错误。另外,你直接把我i的代码存成aspx看是否正常
解决方案八:
另外,你的代码比较多,没法直接对你的代码测试