这是我用dreamveavor写的JS代码,但不知道哪里错了 js 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><script type="text/javascript">function mOver(object){object.color="blue";}function mOut(object){object.color="";}</script><body><font style="cursor:hand" onclick="windows.location.href='http://www.google.com'" onmouseover="mOver(this)"onmouseout="mOut(this)">欢迎访问</font></body></html>是想这样? 感觉应该在object后面加style像,object.style.color=“” font标签 尽量少用再有 确实是向你自己说的 dom.style.color 是这个问题,color是style样式属性中的一个子属性,要使用它必需先经过style <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript"> function mOver(object) { object.style.color = "blue"; } function mOut(object) { object.style.color = "black"; } </script> <style type="text/css"> a { color:black; text-decoration:none; } </style></head><body> <a href="http://www.google.com" onmouseover="mOver(this);" onmouseout="mOut(this);">Hello World!</a></body></html>这样子写就对了 为什么这代码在ie6以上的浏览器都能显示正常,只有IE6会把图片一部分隐藏了。求给我解决下,我想ie6也能正常显示 混淆的js代码 是如何在ie中进行解析 实现Window开始菜单效果 javascript的简单运算 求跨浏览器质料 返回数据应该是什么样子的。。。 关于window.open()函数打开的子窗体与其父窗体通讯的问题,大家务必帮我看看,多谢! ASP程序打包安装! 如何通过写javascript方法来动态改变几个<td>的布局顺序?详情请进--〉 to llrock(百乐宝) 问题还没解决呢? js或jquery实现对a标签的点击 js 正则表达式 号码+古话等
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function mOver(object)
{
object.color="blue";
}function mOut(object)
{
object.color="";
}
</script>
<body>
<font style="cursor:hand" onclick="windows.location.href='http://www.google.com'" onmouseover="mOver(this)"onmouseout="mOut(this)">欢迎访问</font>
</body>
</html>
是想这样?
再有 确实是向你自己说的 dom.style.color
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
function mOver(object) {
object.style.color = "blue";
}
function mOut(object) {
object.style.color = "black";
}
</script>
<style type="text/css">
a {
color:black;
text-decoration:none;
} </style>
</head>
<body>
<a href="http://www.google.com" onmouseover="mOver(this);" onmouseout="mOut(this);">Hello World!</a></body>
</html>
这样子写就对了