html xmlns=http://www.w3.org/1999/xhtml
head
title第一个html页面/title
script type=text/javascript language=javascript src=jquery-1.4.2.min.js/script
script type=text/javascript language=javascript
$(document).ready(function(){
$(img).click(function(){
window.location.href=2.html?+$(this).attr(src);
});
});
/script
/head
body
div
img src=1.jpg target="_blank">http://www.w3.org/1999/xhtml
head
title第二个html页面/title
script type=text/javascript language=javascript src=jquery-1.4.2.min.js/script
script type=text/javascript language=javascript
$(function(){
var thispt=window.location.href;
var thisarray=thispt.split('?');
$(div).html(img src='+thisarray[1]+' style='width:300px; height:300px' /);
})
/script
/head
body
div
/div
/body
/html
不知道是不是你需要的。
取消
评论