時,我想打一個錶行完全可點擊通過嵌入隱藏<td>
含有像這樣的鏈接:閱讀,然後負載彈出點擊
<tr class="simplehighlight junk" >
<td>07/09/2011</td>
<td>Jennifer Woods Memorial GP</td>
<td>A52</td>
<td>Harris, Fred</td>
<td>1900</td>
<td>Nikolayev, Igor</td>
<td>2395</td>
<td class="text-center">0-1</td>
<td style='display:none;visibility:hidden;\'> games/game1242.php </td>
</tr>
我用顏色框爲目標的表格單元格像這樣:
<!--colorbox-->
<script src="./js/jquery.colorbox-min.js"></script>
<script>
$('tr.junk').colorbox(
{
iframe:true,
transition:'elastic',
speed:'100',
width:1030,
height:550,
href: function(){
return $(this).find('td').eq(8).text();
}
}
);
</script>
但我想使用jquery:
<!--Another Pop-up for games table-->
<script src="./js/jquery.popupWindow-min.js" ></script>
<script>
$('.diagram-popup').popupWindow({centerBrowser:1, height:560, width:1024});
</script>
如何將類diagram-popup
添加到第8個表格數據單元格,並單擊該行時讀取該單元格的內容?
它沒有工作。也許有人可以檢查http://communitychessclub.com/games-nu.php – verlager