0
我试图追加一个不驻留在我们的服务器上的图像源以引用和外部服务器。特别是这第四行。在图像源中追加URL
我需要这个引用外部服务器,而不是默认为我的默认服务器。和建议?
$(document).ready(function() {
$('#thumbs ul li').click(function() {
var imgpath = $(this).attr('dir');
$('#image').html('<img src=' + imgpath + '>');
});
$('.btn').click(function() {
$('#thumbs').fadeIn(500);
$('#image').animate({
marginTop: '10px'
}, 200);
$(this).hide();
$('#hide').fadeIn('slow');
});
$('#hide').click(function() {
$('#thumbs').fadeOut(500, function() {
$('#image').animate({
marginTop: '50px'
}, 200);
});
$(this).hide();
$('#show').fadeIn('slow');
});
});