<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>
解决方案 »
- javascript多线程控制问题
- 一个js的小程序,请求帮助
- 怎样获取Iframe中的内容
- 请教一个简单问题?
- FireFox新版本为何在新打开的链接到新的窗口而不是新的标签页呢.如何设置呢?
- 求一个时间方面的控件,像windows时间调节那样有拉杆的,用以选择时间!
- 有没有intellij idea的jquery自动提示插件
- 请问下javasctipt的学习方法,从源码学习可以么?可以介绍些js源码的网站么,比较好的
- 如何用脚本实现按了一个图片后本来网页在下面的就到最上面了
- 请问这段代码怎么看
- 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>