在xsl中使用javascript创建框架后设置框架的宽度问题 <frameset cols="100,*" name="content">改变cols的值即可 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 哈,我居然没注意到cols,晕倒。谢谢提醒,给分。还有,你能顺便帮我看一下这段代码吗?<xsl:template name="left_frame"> <xsl:for-each select="ALL/SQL1/REC"> <xsl:sort select="./*[1]" order="ascending"/> <xsl:element name="a"> <xsl:attribute name="href"> javascript:parent.viewData(<xsl:value-of select="@ID" />); </xsl:attribute> <xsl:value-of select="SQL1_EVENTID" /> </xsl:element> <xsl:element name="b"> <xsl:attribute name="href"> javascript:parent.viewData(<xsl:value-of select="@ID" />); </xsl:attribute> <xsl:value-of select="SQL1_BECALLNUM" /> </xsl:element> <br/> </xsl:for-each></xsl:template>我想把显示的值用表格来显示,该怎样修改呢?麻烦了。 http://dotnet.aspx.cc/article/yawo3qgm-xd53-4d3d-oybr-blsbx5bngaym/read.aspx 不行啊,下面是我参照例子写的代码:<xsl:template name="left_frame"><table bgcolor="snow" border="1" cellpadding="5" cellspacing="2" borderColor="darkorange" style="font-size:9pt"> <xsl:for-each select="ALL/SQL1/REC"> <xsl:sort select="./*[1]" order="ascending"/> <tr> <td width="33%" align="center" valign="middle"> <xsl:element name="a"> <xsl:attribute name="href"> javascript:parent.viewData(<xsl:value-of select="@ID" />); </xsl:attribute> <xsl:value-of select="SQL1_EVENTID" /> </xsl:element> </td> <td width="34%" align="center" valign="middle"> <xsl:element name="b"> <xsl:attribute name="href"> javascript:parent.viewData(<xsl:value-of select="@ID" />); </xsl:attribute> <xsl:value-of select="SQL1_BECALLNUM" /> </xsl:element> </td> <tr> </xsl:for-each></table></xsl:template>有什么问题吗? 我在这里开了一个帖子,解决了这个问题请到这里拿分,谢谢:http://community.csdn.net/Expert/topic/5450/5450753.xml?temp=.8901636 【原创】一年前自己写的贪吃蛇,仅此纪念。 js取当前时间问题 js关于带"#"参数的自身页面跳转问题 jQuery .ajax 方法怎么获得后台方法返回值,求教 关于iframe 中执行JavaScript的问题 发现一个 function arguments 非常有趣的问题(散分) div定位问题 鼠标拖拽问 新手的问题---两个下拉列表的联动(100分在线等待) 大神哥哥 请教String方法 indexOf() 和 lastIndexOf() 的区别 javascript运行不了,跪求帮助~~~~555!
谢谢提醒,给分。还有,你能顺便帮我看一下这段代码吗?
<xsl:template name="left_frame">
<xsl:for-each select="ALL/SQL1/REC">
<xsl:sort select="./*[1]" order="ascending"/>
<xsl:element name="a">
<xsl:attribute name="href">
javascript:parent.viewData(<xsl:value-of select="@ID" />);
</xsl:attribute>
<xsl:value-of select="SQL1_EVENTID" />
</xsl:element>
<xsl:element name="b">
<xsl:attribute name="href">
javascript:parent.viewData(<xsl:value-of select="@ID" />);
</xsl:attribute>
<xsl:value-of select="SQL1_BECALLNUM" />
</xsl:element>
<br/>
</xsl:for-each>
</xsl:template>我想把显示的值用表格来显示,该怎样修改呢?麻烦了。
<xsl:template name="left_frame">
<table bgcolor="snow" border="1" cellpadding="5" cellspacing="2" borderColor="darkorange" style="font-size:9pt">
<xsl:for-each select="ALL/SQL1/REC">
<xsl:sort select="./*[1]" order="ascending"/>
<tr>
<td width="33%" align="center" valign="middle">
<xsl:element name="a">
<xsl:attribute name="href">
javascript:parent.viewData(<xsl:value-of select="@ID" />);
</xsl:attribute>
<xsl:value-of select="SQL1_EVENTID" />
</xsl:element>
</td>
<td width="34%" align="center" valign="middle">
<xsl:element name="b">
<xsl:attribute name="href">
javascript:parent.viewData(<xsl:value-of select="@ID" />);
</xsl:attribute>
<xsl:value-of select="SQL1_BECALLNUM" />
</xsl:element>
</td>
<tr>
</xsl:for-each>
</table>
</xsl:template>有什么问题吗?
http://community.csdn.net/Expert/topic/5450/5450753.xml?temp=.8901636