日期:2014-05-16 浏览次数:20746 次
<!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&fm=2&gp=27.jpg" />
</body>
</html>
------解决方案--------------------
系统当前时间显示在一个DIV之中。
图片显示在一个DIV之中,
两个DIV显示在一个窗口中不就可以了吗?