日期:2014-05-17  浏览次数:20950 次

请教一个Iframe中的asp问题
这个Iframe在aa.asp这个页里,如果要实现根据不同的purview值,Iframe里的src链接不同的页面应如何修改下面的语句  
<iframe   frameBorder= "0 "   id= "carnoc "   name= "carnoc "   scrolling=no   src=left.asp     style= "HEIGHT:   100%;   VISIBILITY:   inherit;   WIDTH:   170px;   Z-INDEX:   2 ">
</iframe>

------解决方案--------------------
DIM purview,src

SELECT CASE purview
CASE "1 " src = "bb.asp "
CASE "2 " src = "cc.asp "
END SELECT

<iframe frameBorder= "0 " id= "carnoc " name= "carnoc " scrolling=no src= " <%=src%> " style= "HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 170px; Z-INDEX: 2 ">
</iframe>