-1
我想提出將ID爲下面這段代碼NOM作品的顏色框,但與它鏈接的頁面是jQuery的ID獲取幫助
$("#recent_activity").load("activity.php?id="+id+"&random=" +unique_requestid());
多數民衆贊成它是如何調用的頁面和鏈接是網頁。
var id = $.query.get('id');
$("a[href='write_comment.php?act=write&id="+id+"']").colorbox({width:"500", height:"350", iframe:true});
謝謝
只是說明:該選擇器看起來很容易成爲維護問題。也許你可以給這個鏈接一個id或class(加快速度,特別是如果它是一個Id) – alex 2009-06-21 01:33:11