<SCRIPT LANGUAGE=jscript src="../Include/Utility.js"></SCRIPT>
<script language=javascript>
var preColor="#e8e9fc"; //保存行原来的颜色
var selectedItem; //选定的行//---------------------------------------------------
//--------------funtion selectItem-------------------
// 选定一行
//---------------------------------------------------
function selectItem(item,selected) {
var aitem = item;
if (aitem !=null && aitem.item == "1"){
while(aitem.tagName != "TR"){
aitem = aitem.parentElement;
}
if(selected){
aitem.bgColor = "#0101aa";
aitem.style.color = "#ffffff";
selectedItem = aitem;//当前选中的行
}
else{
aitem.bgColor="#e8e9fc";
aitem.style.color = "#000000";
selectedItem = null;
}
preColor =aitem.bgColor;
}
}function document_onmouseover() {
var aitem = event.toElement;
if(aitem.item == "1"){
while(aitem.tagName != "TR"){
aitem = aitem.parentElement;
}
preColor = aitem.bgColor;
aitem.bgColor = dispColor(preColor,20);
}
}function document_onmouseout() {
var aitem = event.fromElement;
if(aitem.item == "1"){
while(aitem.tagName != "TR"){
aitem = aitem.parentElement;
}
aitem.bgColor = preColor;
}
}function document_onclick() {
//清空上一次选中的状态
selectItem(selectedItem,false);
selectItem(event.srcElement,true);
}function ExitBtn_onclick() {
self.close ();
}
</script>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmouseover>
<!--
document_onmouseover()
//-->
</script>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmouseout>
<!--
document_onmouseout()
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onclick>
<!--
document_onclick()
//-->
</SCRIPT>
<script language=javascript>
var preColor="#e8e9fc"; //保存行原来的颜色
var selectedItem; //选定的行//---------------------------------------------------
//--------------funtion selectItem-------------------
// 选定一行
//---------------------------------------------------
function selectItem(item,selected) {
var aitem = item;
if (aitem !=null && aitem.item == "1"){
while(aitem.tagName != "TR"){
aitem = aitem.parentElement;
}
if(selected){
aitem.bgColor = "#0101aa";
aitem.style.color = "#ffffff";
selectedItem = aitem;//当前选中的行
}
else{
aitem.bgColor="#e8e9fc";
aitem.style.color = "#000000";
selectedItem = null;
}
preColor =aitem.bgColor;
}
}function document_onmouseover() {
var aitem = event.toElement;
if(aitem.item == "1"){
while(aitem.tagName != "TR"){
aitem = aitem.parentElement;
}
preColor = aitem.bgColor;
aitem.bgColor = dispColor(preColor,20);
}
}function document_onmouseout() {
var aitem = event.fromElement;
if(aitem.item == "1"){
while(aitem.tagName != "TR"){
aitem = aitem.parentElement;
}
aitem.bgColor = preColor;
}
}function document_onclick() {
//清空上一次选中的状态
selectItem(selectedItem,false);
selectItem(event.srcElement,true);
}function ExitBtn_onclick() {
self.close ();
}
</script>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmouseover>
<!--
document_onmouseover()
//-->
</script>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmouseout>
<!--
document_onmouseout()
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onclick>
<!--
document_onclick()
//-->
</SCRIPT>
解决方案 »
- jquery easyui treegrid 级联勾选和点击行不自动勾选checkbox
- 如何在spring 启动时加载一些固定不变的系统变量
- SSH总报Orders表不存在
- 请问有用过Jython 2.5b1的确GGJJ吗?(不知道该不该发在这个版)
- JAVA 水晶報表
- jstl问题????
- 新手上路求助JSP用什么环境开发比较广泛?
- Hibernate第一个练习中出现的了Userinfo is not mapped
- 在JSP中如何禁止用户后退?
- 关于tomcat配置文件
- preparedStatment.setInt(int,int)的两个参数是什么意思?
- 把"<"转成"<"的函数是哪个?
在线等候!!!!!!!!!