我对 cfwindow 有疑问。我有一个搜索页面,每个结果都有自己的 cfwindow。好吧,当我打开这些 cfwindows 中的任何一个时,它会获取我拥有的背景图像并将其放在内容的顶部(即使模式设置为 true 或 false),然后在关闭窗口后它将保持这种状态。如果不使用后退按钮,就无法返回页面内容,这只会将您带回到您首先进行搜索的页面。
这是每个搜索结果的输出以及创建 cfwindow 的位置。
<cfoutput query="mysearch">
<cfobject name="development" component="TATN.development" type="component">
<cfset pageName = development.getListingName("#mysearch.key#")>
<!--- build our cfWindow --->
<cfwindow x="40" y="40" closable="true" draggable="false" initShow="false" modal="true" name="#pageName#" refreshOnShow = "true" resizable="true" height="800" width="825" source="/hotels/#pageName#.cfm"
title="#mysearch.custom3#" />
<div id="hotels_results" onmouseover="style.backgroundColor='##FFBCBC';" onMouseOut="style.backgroundColor='##FFEDED';">
<div class="thumbimg">
<a href="javascript:ColdFusion.Window.show('#pageName#')"><img src="/photos/slideshowPhotos/#mysearch.key#/one.jpg" border="0" width="180" height="115" alt="Click to View More Information."> </a>
</div>
<div class="hotels_text">
If I were asked under what sky the human mind has most fully developed some of its choicest gifts, has most deeply pondered on the greatest problems of life, Welcome text goes here.<br>
<div class="hotels_book_now">
<a href="##" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Book Now','','images/h_book_now1.jpg',1)">
<img src="images/h_book_now.jpg" alt="Book Now" name="Book Now" width="113" height="38" border="0" align="top"></a>
</div>
<h3>Starting at $1000 a night</h3>
<br>
<br>
<br>
<div class="hotels_ratings">
<input name="star1" type="radio" class="star">
<input name="star1" type="radio" class="star">
<input name="star1" type="radio" class="star">
<input name="star1" type="radio" class="star">
<input name="star1" type="radio" class="star">
</div>
</div>
</div>
</cfoutput>