"" then n_pic=""&max_w&")this.width="&max_w&";"">"
...[/quote]...,Bullcn'Blog - 分享、交流、进步。" /> 新闻、文章-文栏内容页面添加当前位置 - Bullcn'Blog

新闻、文章-文栏内容页面添加当前位置


新闻   (con_news.asp)

引用内容 引用内容
function news_view1(v_id,v_topic,v_tim,v_comto,v_pic,v_ispic)
  dim n_pic,temp1
  if v_ispic=true and v_pic<>"" and var_null(v_pic)<>"" then n_pic="<tr><td align=center><img src='"&pic_url(v_pic,0)&"' border=0 onload=""javascript:if(this.width>"&max_w&")this.width="&max_w&";""></td></tr>"
  temp1=temp1&vbcrlf&"<table border=0 width='98%' cellspacing=0 cellpadding=0 align=center>" & _
              vbcrlf&"<tr><td align=center height=50><font class=red_3 size=3><b>"&v_topic&"</b></font></td></tr>" & _
              vbcrlf&"<tr><td align=center class=gray>"&v_tim&"  "&joekoe_cms.web_name&"  出处:"&v_comto&"</td></tr>" & _
              vbcrlf&"<tr><td height=10></td></tr>" & _
              vbcrlf&"<tr><td valign=top>" & _
              vbcrlf&"  <table border=0 class=tablew>"&n_pic&"<tr><td>" & _
              vbcrlf&"    <table border=0 width='100%' class=tf><tr><td class=bw>"
  news_view1=temp1
end function


替换为

引用内容 引用内容
function news_view1(v_id,v_topic,v_tim,v_comto,v_pic,v_ispic)
  dim n_pic,temp1
  if v_ispic=true and v_pic<>"" and var_null(v_pic)<>"" then n_pic="<tr><td align=center><img src='"&pic_url(v_pic,0)&"' border=0 onload=""javascript:if(this.width>"&max_w&")this.width="&max_w&";""></td></tr>"
  temp1=temp1&vbcrlf&"<table border=0 width='100%' cellspacing=0 cellpadding=0 align=center>" & _
  vbcrlf&"<tr class=bg_td><td align=left height="&m_hei&" class=gray>当前位置:<a href='./'>首页</a> → <a href='"&index_url&".asp'>"&tit_fir&"</a> → <font title='"&joekoe_cms.code_html(tit,1,0)&"'>"&joekoe_cms.code_html(tit,1,20)&"</font></td></tr>" & _
              vbcrlf&"<tr><td align=center height=50><font class=red_3 size=3><b>"&v_topic&"</b></font></td></tr>" & _
              vbcrlf&"<tr><td align=center class=gray>"&v_tim&"  "&joekoe_cms.web_name&"  出处:"&v_comto&"</td></tr>" & _
              vbcrlf&"<tr><td height=10></td></tr>" & _
              vbcrlf&"<tr><td valign=top>" & _
              vbcrlf&"  <table border=0 class=tablew>"&n_pic&"<tr><td>" & _
              vbcrlf&"    <table border=0 width='100%' class=tf><tr><td class=bw>"
  news_view1=temp1
end function


文章 (con_article.asp)

引用内容 引用内容
function article_view1(v_id,v_topic,v_tim,v_comto,v_author)
  dim temp1
  temp1=temp1&vbcrlf&"<table cellspacing=0 cellpadding=1 class=table0>" & _
              vbcrlf&"<tr><td class=td> "+img_skin(web_img_m)+" "+v_topic+"</td></tr>" & _
              vbcrlf&"<tr class=bg_tds><td align=right height="&m_hei&" class=gray>作者:"&v_author&"  出处:"&v_comto&"  更新时间: "&v_tim&" </td></tr>" & _
              vbcrlf&"<tr class=bg_td><td align=center>" & _
              vbcrlf&"  <table border=0 class=tablew><tr><td>" & _
              vbcrlf&"    <table border=0 width='100%' class=tf><tr><td class=bw>"
  article_view1=temp1
end function

替换为
引用内容 引用内容
function article_view1(v_id,v_topic,v_tim,v_comto,v_author)
  dim temp1
  temp1=temp1&vbcrlf&"<table cellspacing=0 cellpadding=1 class=table0>" & _
           vbcrlf&"<tr class=bg_td><td align=left height="&m_hei&" class=gray>当前位置:<a href='./'>首页</a> → <a href='"&index_url&".asp'>"&tit_fir&"</a> → <font title='"&joekoe_cms.code_html(tit,1,0)&"'>"&joekoe_cms.code_html(tit,1,20)&"</font></td></tr>" & _
             vbcrlf&"<tr><td align=center height=50><font class=red_3 size=3><b>"&v_topic&"</b></font></td></tr>" & _
              vbcrlf&"<tr><td align=center class=gray>"&v_tim&"  "&joekoe_cms.web_name&"  出处:"&v_comto&"</td></tr>" & _
              vbcrlf&"<tr><td height=10></td></tr>" & _
              vbcrlf&"<tr><td align=center>" & _
              vbcrlf&"  <table border=0 class=tablew><tr><td>" & _
              vbcrlf&"    <table border=0 width='100%' class=tf><tr><td class=bw>"
  article_view1=temp1
end function

文章来自: Original
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 8 | 引用: 0 | 查看次数: 758
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 20 字 | UBB代码 关闭 | [img]标签 关闭