<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head> 
<body>
<a href="javascript:window.open('mailto:[email protected]?body='+document.location.href);" onmouseover="test(this.href)"><IMG SRC='images/DOG0_04_07.gif' WIDTH='215' HEIGHT='27' border='0'></a></body>
</html>
<script>
function test(str)
{
  alert(str);
  str = str.replace(/[^\(]*\('mailto:([^\?]*)[^@]*/gi,"$1");
  alert(str);
}
</script>

解决方案 »

  1.   

    to: shuangren(双刃)那是什么啊。
      

  2.   

    to: shuangren(双刃)不会你没懂我的意思。<a href="javascript:location.href='mailto:[email protected]?body='+document.location.href"><IMG SRC='images/DOG0_04_07.gif' WIDTH='215' HEIGHT='27' border='0'></a>这个脚本是对的。不过我不要他弹出新的一页。
      

  3.   

    改成这样
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <script>
    window.onload = init;
    function init()
    {
    document.all.me.href="mailto:[email protected]?body="+document.location.href;
    }
    </script><body>
    <a href="mailto:[email protected]?body=" id="me"><IMG SRC='images/DOG0_04_07.gif' WIDTH='215' HEIGHT='27' border='0'></a>
    </body>
    </html>