解决方案 »

  1.   

    <!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>
    是想这样?
      

  2.   

    感觉应该在object后面加style像,object.style.color=“”
      

  3.   

    font标签 尽量少用
    再有  确实是向你自己说的  dom.style.color
      

  4.   

    是这个问题,color是style样式属性中的一个子属性,要使用它必需先经过style
      

  5.   


    <!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>
    这样子写就对了