帝国CMS实现关键字与Tags同步更新的方法
帝国CMS实现关键字与Tags同步更新的方法。分享给大家供大家参考。具体实现方法:
修改系统special.field(特殊属性字段)字段.
?
function copykeyword(){?
document.getElementById("keyword").focus()?
document.getElementById("keyword").select()?
document.getElementById("infotags").value=document.getElementById("keyword").value?
}
</script><tr>?
<td 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>
最终效果图所示:
?