<SCRIPT LANGUAGE="JavaScript1.2">
function highlightie5(menuid) {
if (event.srcElement!=null) {
if (event.srcElement.className == "menuitems") {
var menu=document.all(menuid);alert(menu.name);
}
}
}
</SCRIPT>
<div id="TreeMenu" onmouseover="highlightie5('TreeMenu')" name='tree1' class=menuitems>welcome</div>
function highlightie5(menuid) {
if (event.srcElement!=null) {
if (event.srcElement.className == "menuitems") {
var menu=document.all(menuid);alert(menu.name);
}
}
}
</SCRIPT>
<div id="TreeMenu" onmouseover="highlightie5('TreeMenu')" name='tree1' class=menuitems>welcome</div>
解决方案 »
- IE关闭事件
- jq ui widget 问题请大师给指点一下感谢
- Microsoft.XMLDOM拒绝访问
- 想写一个只包含若干数字和逗号的正则表达式
- 拜个晚年。达人给个提示,js如何实现摄像头在线拍照并生成图片文件?给个思路。谢谢
- getMinutes() 部起作用了。
- (20分求)动态添加表格元素设置id
- 在“applybehavior”进行编辑之后不能恢复选定内容。请以较少的步骤进行编辑
- 聊天室的输入框怎么处理的???
- 急急急!!!求助!!liger ui 如何实现树形表格
- A beginner's QUESTIONS in JavaScript!!!! Help Me!!!URGENTLY~~~~~~~~~
- 求一正则表达式
记得c要大写哦
<html>
<head>
<style>
.skin0 {
position:absolute;
text-align:left;
width:80px;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
border-color : #307ce8;
border-style : solid;
border-top-width : 1px;
border-left-width : 10px;
border-right-width : 1px;
border-bottom-width : 1px;
BACKGROUND-COLOR: #ffffff;}
.menuitems {
color:black;
FONT-SIZE: 12px;
text-align:left;
background:transparent;
width:100%;
border:0
}
</style>
....
<SCRIPT LANGUAGE="JavaScript1.2">
function highlightie5(menuid) {
if (event.srcElement!=null) {
if (event.srcElement.className == "menuitems") {
alert(alert(document.all(menuid).style.borderColor);
}
}
}
</SCRIPT>
....<div id="TreeMenu" class="skin0" onMouseover="highlightie5('TreeMenu')">
....
</div>
<html>
<head>
<style>
.skin0 {
position:absolute;
text-align:left;
width:80px;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:visible;
border-color : #307ce8;
border-style : solid;
border-top-width : 1px;
border-left-width : 10px;
border-right-width : 1px;
border-bottom-width : 1px;
BACKGROUND-COLOR: #ffffff;}
.menuitems {
color:black;
FONT-SIZE: 12px;
text-align:left;
background:transparent;
width:100%;
border:0
}
</style>
<SCRIPT LANGUAGE="JavaScript1.2">
function highlightie5(menuid) {
if (event.srcElement!=null) {
if (event.srcElement.className == "skin0") {
alert(document.all(menuid).style.borderColor);
}
}
}
</SCRIPT><div id="TreeMenu" class="skin0" onMouseover="highlightie5('TreeMenu')" style="border-color:#cccccc">
hello everyone
</div>