私たちのサーバ上に存在しない画像ソースを、参照と外部サーバに追加しようとしています。特にこの4行目。Javascript添付画像ソースの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');
});
});