2007-8-11 05:12 PM
OHLAM
1 點樣將ADD COMMENTS改做其他字?
E.G : else if (str.match (/add eprops/i)) links[l].innerHTML = str.replace (/add eprops/i, "eprop");
^<改你想改既字
下面果個係改comment既CODE`
<script language="javascript">
<!--
var links = document.getElementsByTagName ("a");
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/d+:d+ (am|pm)/i)) links[l]
else if (str.match (/add eprops/i)) links[l].innerHTML = str.replace (/add eprops/i, "eprop");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "eprop");
else if (str.match (/add comments/i)) links[l].innerHTML = str.replace (/add comments/i, "comment");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "comment");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "email it");
}//-->
</script>
[[i] 本帖最後由 OHLAM 於 2007-8-11 05:16 PM 編輯 [/i]]