本文實例講述了帝國CMS實現關鍵字與Tags同步更新的方法。分享給大家供大家參考。具體實現方法如下:
修改系統special.field(特殊屬性字段)字段.
復制代碼
代碼如下:<script language="javascript">
function copykeyword(){
document.getElementById("keyword").focus()
document.getElementById("keyword").select()
document.getElementById("infotags").value=document.getElementById("keyword").value
}
</script><tr>
<td height="25" bgcolor="#FFFFFF">關鍵字 :
<input name="keyboard" id="keyword" type="text" size="49" value="<?=stripSlashes($r[keyboard])?>">
<input type="button" value="拷貝到Tags" onclick="copykeyword()"> <font color="#666666">(多個請用","格開)</font></td>
</tr>
function copykeyword(){
document.getElementById("keyword").focus()
document.getElementById("keyword").select()
document.getElementById("infotags").value=document.getElementById("keyword").value
}
</script><tr>
<td height="25" bgcolor="#FFFFFF">關鍵字 :
<input name="keyboard" id="keyword" type="text" size="49" value="<?=stripSlashes($r[keyboard])?>">
<input type="button" value="拷貝到Tags" onclick="copykeyword()"> <font color="#666666">(多個請用","格開)</font></td>
</tr>
最終效果如下圖所示:
希望本文所述對大家的帝國CMS建站有所幫助。
【網站聲明】本站除付費源碼經過測試外,其他素材未做測試,不保證完整性,網站上部分源碼僅限學習交流,請勿用于商業用途。如損害你的權益請聯系客服QQ:2655101040 給予處理,謝謝支持。