⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edxsky_shop.js

📁 不错的ASP整站源代码。在IIS环境下运行都没有问题
💻 JS
字号:

function shop_bar_top(tvar,tt,ttype)
{
  var w_wid="70";
  if (tvar.length>8) { w_wid="250"; }
  if (tvar.length>20) { w_wid="400"; }
  
  var temp1="<table border=0 cellpadding=0 cellspacing=0 class=tablew>";
  temp1+="<tr><td>";
  temp1+="  <table border=0 cellpadding=0 cellspacing=0 width='100%'>";
  temp1+="  <tr height=24>";
  temp1+="  <td width="+w_wid+" background='"+web_dir_skin+"main/"+m_channel+"_bar_right"+ttype+".gif' class=btd>&nbsp;&nbsp;<font class=fbg>"+tvar+"</font></td>";
  temp1+="  <td width='*' background='"+web_dir_skin+"main/"+m_channel+"_bar_center"+ttype+".gif'>&nbsp;</td>";
  temp1+="  <td width=10><img src='"+web_dir_skin+"main/"+m_channel+"_bar_left"+ttype+".gif'></td>";
  temp1+="  </tr>";
  temp1+="  </table>";
  temp1+="</td></tr>";
  temp1+="<tr><td align=center>";
  if (tt==1) temp1+="  <table border=0 width='100%'>";
  document.write (temp1);
}

function shop_bar_end(mvar,tt)
{
  var temp1="";
  if (tt==1) temp1+="  </table>";
  temp1+="</td></tr>";
  if (mvar!="") temp1+="<tr><td align=right>"+mvar+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>";
  temp1+="</table>";
  document.write (temp1+ukong);
}

function shop_topic_type(b_c_num,b_id,b_topic,b_tim)
{
  var n_url="shop_cast.asp?action=view&id="+b_id;
  var n_jt=img_skin(web_img_h);
  var temp1="";
  temp1+="<tr><td>"+n_jt+"<a href='javascript:;' onclick=\"javascript:open_view('"+n_url+"',1);\" alt='公告标题:"+code_html(b_topic,1,0)+"<br>发布时间:"+b_tim+"'>"+code_html(b_topic,1,b_c_num)+"</a></td></tr>";
  document.write (temp1);
}

function shop_top_type(b_c_num,b_id,b_topic,b_counter)
{
  var n_url="shop_view.asp?id="+b_id;
  var n_jt=img_skin(web_img_t);
  var temp1="";
  temp1+="<tr><td>"+n_jt+"<a href='javascript:;' onclick=\"javascript:open_view('"+n_url+"',1);\" alt='产品名称:"+code_html(b_topic,1,0)+"<br>订购次数:"+b_counter+" 次'>"+code_html(b_topic,1,b_c_num)+"</a></td></tr>";
  document.write (temp1);
}

function shop_emoney_pay(p_is_emoney,p_emoney,p_id)
{
  var nemoney=0;
  if (vtrue(p_is_emoney)) { nemoney=p_emoney; }
  var temp1=note_emoney_pay(p_is_emoney,nemoney,m_nsort,p_id)
  return temp1;
}

function shop_list_type(n_id,n_name,n_smallimg,n_brand,n_price,n_price_now,n_discount,n_is_emoney,n_emoney)
{
  var temp1="<td width='50%'>";
  temp1+="  <table border=0 width='100%'>";
  temp1+="  <tr>";
  temp1+="  <td width='45%' align=center>"+pic_fk(n_smallimg,1,'shop_view.asp?id='+n_id)+"</td>";
  temp1+="  <td width='55%'>";
  temp1+="    <table border=0>";
  temp1+="    <tr><td><a href='shop_view.asp?id="+n_id+"' target=_blank><font class=blue><b>"+n_name+"</b></font></a></td></tr>";
  temp1+="    <tr><td>价格:<font class=red>"+n_price_now+"</font> "+val_unit+"</td></tr>";
  temp1+="    <tr><td>原价:"+n_price+val_unit+" <font class=red2>"+n_discount+"</font></td></tr>";
  temp1+="    <tr><td>"+m_unit+":"+shop_emoney_pay(n_is_emoney,n_emoney,n_id)+"</td></tr>";
  temp1+="    <tr><td>";
  temp1+="      <table border=0 cellspacing=0 cellpadding=0 width='100%'>";
  temp1+="      <tr>";
  temp1+="      <td><a href='javascript:;' onclick=\"javascript:open_view('shop_bag.asp?id="+n_id+"',1);\"><img src='"+web_dir_skin+"main/button_bag.gif' border=0></a></td>";
  temp1+="      <td><a href='javascript:;' onclick=\"javascript:open_view('shop_view.asp?id="+n_id+"',1);\"><img src='"+web_dir_skin+"main/button_view.gif' border=0></a></td>";
  temp1+="      </tr>";
  temp1+="      </table>";
  temp1+="    </td></tr>";
  temp1+="    </table>";
  temp1+="  </td>";
  temp1+="  </tr>";
  temp1+="  </table>";
  temp1+="</td>";
  document.write (temp1);
}

function shop_main_good(n_id,n_name,n_smallimg,n_brand,n_price,n_price_now,n_discount,n_is_emoney,n_emoney,n_remark_1)
{
  var temp1="<td width='100%'>";
  temp1+="  <table border=0 width='100%'>";
  temp1+="  <tr>";
  temp1+="  <td width='35%' align=center>"+pic_fk(n_smallimg,2,'shop_view.asp?id='+n_id)+"</td>";
  temp1+="  <td width='65%'>";
  temp1+="    <table border=0>";
  temp1+="    <tr><td colspan=2><a href='shop_view.asp?id="+n_id+"' target=_blank><font class=blue><b>"+n_name+"</b></font></a></td></tr>";
  temp1+="    <tr>";
  temp1+="    <td>价格:<font class=red>"+n_price_now+"</font> "+val_unit+"</td>";
  temp1+="    <td rowspan=4 align=center>";
  temp1+="      <table border=0 width='100%'>";
  temp1+="      <tr>";
  temp1+="      <td><a href='javascript:;' onclick=\"javascript:open_view('shop_bag.asp?id="+n_id+"',1);\"><img src='"+web_dir_skin+"main/button_bag.gif' border=0></a></td>";
  temp1+="      <td><a href='javascript:;' onclick=\"javascript:open_view('shop_view.asp?id="+n_id+"',1);\"><img src='"+web_dir_skin+"main/button_view.gif' border=0></a></td>";
  temp1+="      </tr>";
  temp1+="      </table>";
  temp1+="    </td>";
  temp1+="    </tr>";
  temp1+="    <tr><td>原价:"+n_price+val_unit+" <font class=red2>"+n_discount+"</font></td></tr>";
  temp1+="    <tr><td>"+m_unit+":"+shop_emoney_pay(n_is_emoney,n_emoney,n_id)+"</td></tr>";
  temp1+="    <tr><td>品牌:"+n_brand+"</td></tr>";
  temp1+="    <tr><td colspan=2>简介:"+n_remark_1+"</td></tr>";
  temp1+="    </table>";
  temp1+="  </td>";
  temp1+="  </tr>";
  temp1+="  </table>";
  temp1+="</td>";
  document.write (temp1);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -