请问给位高手,我要将下面的js引入到html中请问各位这应该怎么引,还有我这个项目中好些页面都要用这些这样相同的js除了id 名称不一样,请问各位我应该怎么处理这样的问题,(我不想将它直接放在html中,我要将其放在单独的js中引入)
<script>
KE.show({
id : 'teamOrganise',
resizeMode : 3,
allowPreviewEmoticons : false,
allowUpload : false,
items : [
'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
</script>我的其中一个页面代码如下:
<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>课程组教学队伍信息</title>
<link rel="stylesheet" href="style/drp.css">
<link href="style/JSCalendar.css" rel=stylesheet type=text/css>
<script src="script/JSCalendar.js"></script>
<script src="script/client_validate.js"></script>
<script charset="utf-8" src="kindeditor.js"></script>
<script>
</script>
<script>
KE.show({
id : 'teamOrganise',
resizeMode : 3,
allowPreviewEmoticons : false,
allowUpload : false,
items : [
'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
</script>
</head> <body class="body1">
<form name="InvIniQtyForm" action="TeamStructure.do?command=modifyTeachTeam" method="post" target="_self" id="InvIniQtyForm">
<div align="center">
<table width="95%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
</td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0"
height="8">
<tr>
<td width="522" class="p1" height="2" nowrap>
<img src="images/_arrow_03.gif" width="14" height="14">
<b>课程组教学队伍模块>>课程组教学队伍信息>>修改</b> </td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="26">
<div align="right">
<font color="#FF0000"></font>教学队伍整体结构:
</div>
</td>
<td>
<textarea name="teamOrganise" id="teamOrganise" class="t_area" class="t_area">
${structure.teamOrganise}
</textarea>
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000"></font>青年教师培养:
</div>
</td>
<td>
<textarea id="qnjdpy" name="qnjdpy" class="t_area">
${structure.qnjdpy }
</textarea>
</td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<div align="center">
<input name="btnAdd" class="button1" type="submit" id="btnAdd"
value="确定">
<input name="btnBack" class="button1" type="button" id="btnBack"
value="返回" onClick="history.go(-1)">
</div>
</div>
</form>
</body>
</html>
请各问帮忙看一下,谢谢啦!
<script>
KE.show({
id : 'teamOrganise',
resizeMode : 3,
allowPreviewEmoticons : false,
allowUpload : false,
items : [
'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
</script>我的其中一个页面代码如下:
<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>课程组教学队伍信息</title>
<link rel="stylesheet" href="style/drp.css">
<link href="style/JSCalendar.css" rel=stylesheet type=text/css>
<script src="script/JSCalendar.js"></script>
<script src="script/client_validate.js"></script>
<script charset="utf-8" src="kindeditor.js"></script>
<script>
</script>
<script>
KE.show({
id : 'teamOrganise',
resizeMode : 3,
allowPreviewEmoticons : false,
allowUpload : false,
items : [
'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
</script>
</head> <body class="body1">
<form name="InvIniQtyForm" action="TeamStructure.do?command=modifyTeachTeam" method="post" target="_self" id="InvIniQtyForm">
<div align="center">
<table width="95%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
</td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0"
height="8">
<tr>
<td width="522" class="p1" height="2" nowrap>
<img src="images/_arrow_03.gif" width="14" height="14">
<b>课程组教学队伍模块>>课程组教学队伍信息>>修改</b> </td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="26">
<div align="right">
<font color="#FF0000"></font>教学队伍整体结构:
</div>
</td>
<td>
<textarea name="teamOrganise" id="teamOrganise" class="t_area" class="t_area">
${structure.teamOrganise}
</textarea>
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000"></font>青年教师培养:
</div>
</td>
<td>
<textarea id="qnjdpy" name="qnjdpy" class="t_area">
${structure.qnjdpy }
</textarea>
</td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<div align="center">
<input name="btnAdd" class="button1" type="submit" id="btnAdd"
value="确定">
<input name="btnBack" class="button1" type="button" id="btnBack"
value="返回" onClick="history.go(-1)">
</div>
</div>
</form>
</body>
</html>
请各问帮忙看一下,谢谢啦!
解决方案 »
- 有关object prototype和ajax
- 这种正则怎么写
- 【高分求助】导出EXCEL问题````````````````在线等待``````````````马上结贴
- JavaScript 日期联动选择器
- 怎么删除数组中指定的值
- 请教高手一个EMAIL验证的问题。
- 如何通过Javascript获得当前机器的外网IP
- 有没用JAVASCRIPT写的算法的书??无聊者勿扰!!!
- 关于XMLHTTP 接收到数据的中文显示问题?
- jQuery 鼠标移动上去 出来 悬浮在窗口右侧那种 一移动上去就出来 ,如下图 急急急
- 高手请进,jQuery 过滤HTML字符串,可是根本就不行出很多问题!
- 如何实现点击复制一行?
然后在html<head>中
添加<script type="text/javascript" src="a.js"></script>