怎样让<div>里的ID自增
http://zhidao.baidu.com/question/122086235.html这问题里也有答案,但看不懂啊,能提供详细的代码吗?下面是我的代码:<%Whi...
http://zhidao.baidu.com/question/122086235.html
这问题里也有答案,但看不懂啊,能提供详细的代码吗?
下面是我的代码:
<%
While ((Repeat1__numRows <> 0) AND (NOT shownews.EOF))
%>
<div name="CollapsiblePanel" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><%=(shownews.Fields.Item("user_name").Value)%></div>
<div class="CollapsiblePanelContent"><%=(shownews.Fields.Item("news_content").Value)%></div>
</div>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
shownews.MoveNext()
Wend
%>
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
</script> 展开
这问题里也有答案,但看不懂啊,能提供详细的代码吗?
下面是我的代码:
<%
While ((Repeat1__numRows <> 0) AND (NOT shownews.EOF))
%>
<div name="CollapsiblePanel" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><%=(shownews.Fields.Item("user_name").Value)%></div>
<div class="CollapsiblePanelContent"><%=(shownews.Fields.Item("news_content").Value)%></div>
</div>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
shownews.MoveNext()
Wend
%>
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
</script> 展开
1个回答
展开全部
<%
i=1
While ((Repeat1__numRows <> 0) AND (NOT shownews.EOF))
%>
<div id="CollapsiblePanel<%=i%>" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><%=(shownews.Fields.Item("user_name").Value)%></div>
<div class="CollapsiblePanelContent"><%=(shownews.Fields.Item("news_content").Value)%></div>
</div>
<%
i=i+1
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
shownews.MoveNext()
Wend
%>
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
</script>
i=1
While ((Repeat1__numRows <> 0) AND (NOT shownews.EOF))
%>
<div id="CollapsiblePanel<%=i%>" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><%=(shownews.Fields.Item("user_name").Value)%></div>
<div class="CollapsiblePanelContent"><%=(shownews.Fields.Item("news_content").Value)%></div>
</div>
<%
i=i+1
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
shownews.MoveNext()
Wend
%>
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
</script>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询