本帖最后由 xiaobeij307 于 2009-10-19 21:13:26 编辑

解决方案 »

  1.   

    a.html<!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=gb2312" />
    <title>无标题文档</title>
    <script type="text/javascript">
    window.onload = function(){
    var img = document.getElementById('img');
    var date = new Date();
    img.onclick = function(){ //图片绑定点击事件
    window.open('b.html#'+img.src + '#' + date.toLocaleDateString(),''); //open传参img地址,date当前时间
    };
    };
    </script>
    </head><body>
    <img id="img" src="../My Documents/未命名站点 1/u=3159447012,2004349064&amp;fm=2&amp;gp=27.jpg" />
    </body>
    </html>b.html<!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=gb2312" />
    <title>无标题文档</title>
    <script type="text/javascript">
    window.onload = function(){
    var img = document.getElementById('im');
    var src = location.hash.substring(1); //拿到地址后面传的参数
    img.src = src.split('#')[0]; //按#分割拿到图片地址
    document.getElementById('date').innerHTML = src.split('#')[1];//按#分割拿到时间
    };
    </script>
    </head><body>
    <img id="im" src="" />
    <div id="date"></div>
    </body>
    </html>
      

  2.   

    系统当前时间显示在一个DIV之中。
    图片显示在一个DIV之中,
    两个DIV显示在一个窗口中不就可以了吗?