首页调用的代码是这样的 <script language='JavaScript' type='text/JavaScript' src='article_js.asp?ClassID=40&IncludeChild=false&SpecialID=0&ArticleNum=20&ShowType=1&ShowCols=2&ShowProperty=true&ShowClassName=false&ShowIncludePic=false&ShowTitle=true&ShowUpdateTime=false&ShowHits=false&ShowAuthor=false&ShowHot=true&ShowMore=true&TitleMaxLen=50&ContentMaxLen=30&Hot=false&Elite=false&UsePage=true&DateNum=&OrderField=ArticleID&OrderType=desc'>
    </script>
要如何才能实现内容分栏显示

解决方案 »

  1.   

    不太懂你的意思,你的article_js.asp?*****
    页面输出的是一个什么样子的JS内容呢?
      

  2.   

    在你的article_js.asp里面,返回分栏布局代码和JS,document.write出来就行了。
      

  3.   

    article_js.asp里面,分栏的代码是这样写的  
    if((i mod showcols=0)and(not rs.eof))then
     str=str & "</tr><tr valign='top'>" 
      end if 
    我在调用代码中设置了showcols=0 和等于1到10都没有分栏的效果,是哪里写错了。
      

  4.   

    <%
    showcols=2
    i=0
    if not rs.eof then
      i=i+1
      str=str & "<td>" & rs("某字段") & "</td>"
      if i mod showcols=0 then
         str=str & "</tr><tr valign='top'>"   
      end if
      rs.movenext
    end if
    str=str & "</tr></table>"   
    %>
    showcols怎么能设为0呢,那不就被0除了???好好看看算术运算符的说明。