2010-09-07 58 views
0

我使用jQuery的思考框,灯箱它工作正常,但如果我环路虽然PHP的失败不是循环..可以通过jQuery的灯箱

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<meta name="Description" content="ThickBox is a webpage UI dialog widget written in javascript on top of the jQuery library. It's function is too show a single image, multiple images, inline content, iframed content, and content served through AJAX in a hybrid modal." /> 
<meta name="author" content="Cody Lindley" /> 
<meta name="robots" content="all" /> 
<meta name="MSSmartTagsPreventParsing" content="true" /> 
<meta http-equiv="imagetoolbar" content="false" /> 

<title>ThickBox 3.1</title> 

<style type="text/css" media="all"> 
@import "css/global.css"; 
@import "thickbox-code/thickbox.css"; 
</style> 

<link rel="alternate stylesheet" type="text/css" href="css/1024.css" title="1024 x 768" /> 
<link rel="alternate stylesheet" type="text/css" href="css/thickbox.css" title="1024 x 768" /> 
<script src="js/jquery-1.1.3.1.pack.js" type="text/javascript"></script> 
<script src="js/thickbox-compressed.js" type="text/javascript"></script> 
<script src="js/global.js" type="text/javascript"></script> 
<script src="js/thickbox.js" type="text/javascript"></script> 
</head> 

<body id="pageTop"> 
<?php 
for($i=0;$i<10;$i++) 
{?> 
<a href="#TB_inline?height=155&amp;width=300&amp;inlineId=hiddenModalContent&amp;modal=true" class="thickbox"><?php echo $i;?></a> 
<div id="hiddenModalContent" style="display:none"> 
<p><?php echo $i;?></p> 
<p style="text-align:center"><input type="submit" id="Login" value="&nbsp;&nbsp;Ok&nbsp;&nbsp;" onclick="tb_remove()" /></p> 
</div> 
<?php 
} 
?> 

任何一个可以告诉我,我怎么能做到这一点

回答

0

将一个rel标记添加到链接ie。相对=“画廊”。这应该够了吧。

见“给每个链接元件相同的相对元件和值。(实施例:为rel =”库的植物“)”在http://jquery.com/demo/thickbox/

+0

我尝试过,但不工作 – ramesh 2010-09-07 09:44:15