查看單個文章
  #9  
舊 2005-08-24, 10:35 AM
wmh wmh 目前離線
進階會員
 
註冊日期: 2004-08-27
文章: 310
預設

<body onload="replaceKeyword('websiteContent')">

你要把 websiteContent 改成你要取代的元素(某個table 或 td 或 div) 的 ID
或者整個 body 都要取代的話,用:

<body onload="replaceKeyword()">

大小寫不拘的話,改:
var re = new RegExp(keywords[i][0].replace(/\s+/, "\\s+"), "g");
new RegExp(m[j], "g");
為:
var re = new RegExp(keywords[i][0].replace(/\s+/, "\\s+"), "i");
new RegExp(m[j], "i");
即可
回覆時引用此篇文章