标题 | 帝国cms自动增加TAG关键字教程 |
内容 | 你是不是也在为网站的tag添加而犯愁呢,这里分享帝国cms自动增加TAG关键字教程 1、首先在需要设置需自动TAGS的数据表: 系统设置—管理数据表—管理字段—special.field 字段修改字段,输入表单替换html代码内任何位置加入以下代码: <script language="javascript"> function copykeyword(){ document.getElementById("keyword").focus() document.getElementById("keyword").select() document.getElementById("infotags").value=document.getElementById("keyword").value } </script> 提交! 2、修改/e/admin/AddNews.php文件 找到以下代码, <table cellpadding="3" cellspacing="1"> <tr> <td width="16%"> </td> <td><input type="submit" name="addnews" value=" 提 交 " onclick="copykeyword()"> <input type="reset" name="Submit2" value="重置"></td> </tr> </table> 在此代码前加: <script language="javascript"> function copykeyword(){ document.getElementById("keyword").focus() document.getElementById("keyword").select() document.getElementById("infotags").value=document.getElementById("keyword").value } </script> 修改:<td><input type="submit" name="addnews" value=" 提 交 " > <input type="reset" name="Submit2" value="重置"></td> 修改为:<td><input type="submit" name="addnews" value=" 提 交 " onclick="copykeyword()"> <input type="reset" name="Submit2" value="重置"></td> |
随便看 |
|
在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。