function cardInit() { var cardShow = function (obj) { if (BROWSER.ie && BROWSER.ie < 7 && obj.href.indexOf('username') != -1) { return; } pos = obj.getAttribute('c') == '1' ? '43' : obj.getAttribute('c'); USERCARDST = setTimeout(function () { ajaxmenu(obj, 500, 1, 2, pos, null, 'p_pop card'); }, 250); }; var cardids = {}; var a = document.body.getElementsByTagName('a'); for (var i = 0; i < a.length; i++) { if (a[i].getAttribute('c')) { var href = a[i].getAttribute('href', 1); if (typeof cardids[href] == 'undefined') { cardids[href] = Math.round(Math.random() * 10000); } a[i].setAttribute('mid', 'card_' + cardids[href]); a[i].onmouseover = function () { cardShow(this) }; a[i].onmouseout = function () { clearTimeout(USERCARDST); }; } }} |
<!--{template common/header}--><!--{if !$_GET['inajax']}-->forumdisplay.htm文件里除頭尾以外所有代碼<!--{else}-->從forumdisplay.htm里復制出來關于版塊信息部分的代碼<!--{/if}--><!--{template common/footer}-->復制代碼保存后訪問鏈接forum.php?mod=forumdisplay&fid=43&inajax=1,顯示的xml是else部分后加的代碼。在首頁帖子列表的版塊鏈接里加上c=1試試:<a href="forum.php?mod=forumdisplay&fid={$value['fid']}" c=1>{$value['name']}</a>復制代碼 |
<!--{template common/header}--><!--{if !$_GET['inajax']==1}-->正常的內容<!--{else}-->給c=1的<!--{/if}--><!--{template common/footer}--> |
新聞熱點
疑難解答