同页面多js循环效果

  <%
    NewsPic = Collections.Base<Entity.News>.Caches.FindAll(delegate(Entity.News news) { return news.CategoryPath.Contains(",0,6,"); });
    pic.Remove(0, pic.Length);
    link.Remove(0, link.Length); 
    Get_pic();

%>
       <script type="text/javascript">
     <!--
  var focus_width=263
  var focus_height=242
  var text_height=0
  var swf_height = focus_height
  var pics='<%=pic %>'
  var links='<%=link %>'
      //-->
</script>

Get_pic();方法为pic   link 赋值;

前台js即时获取StringBuilder 变量pic   link 时;同意页面多次调用Get_pic();记得在调用前  pic.Remove(0, pic.Length);
    link.Remove(0, link.Length); 

posted on 2008-11-24 19:12  广波  阅读(239)  评论(0编辑  收藏  举报

导航