我有以下代码:
jQuery
$("document").ready(function(){
var imglink;
imglink = 'url("http://poweruser.aeiou.pt/wp-content/uploads/2012/12/google.jpg")';
$('#trick_img').css('content',imglink);
$(document).on("click","change",function(){
imglink = 'url("http://poweruser.aeiou.pt/wp-content/uploads/2012/12/Google-Gmail.jpg")';
$('#trick_img').css('content',imglink);
});
});
HTML
<image id="trick_img" draggable="false"/><br/>
<button id="change">Change image</button>
CSS
img#trick_img { margin:10px; }
测试链接 http://jsfiddle.net/Y5jA9/
我的问题是:如何改变屏幕上的图像?