0
이것은 내 이미지 :JQUERY UI 크기 조정, 이미지의 특성 값을 얻을 크기를 조절할
echo "<img src='articles/$article_id/$image' style='width:inherit;' id='image' data-articleid='$article_id' data-boxid='$box_id'>";
JQUERY : 크기 재조정 정지 기능에
<script type="text/javascript">
$(document).ready(function() {
var startW = 0;
var startH = 0;
$('#image').resizable({
start : function(event,ui) {
startW = $(this).outerWidth();
startH = $(this).outerHeight();
},
stop : function(event,ui) {
w = $(this).outerWidth();
h = $(this).outerHeight();
boxid = $(this).attr("data-boxid");
articleid = $(this).attr("data-articleid");
$.post("processforms/process_techtools.php", { boxid:boxid, articleid:articleid, width:w, height:h, resize_image_submit:0}, function (data) {
$("#progress").hide();
$("#success").show().fadeOut(1500);
});
}
});
});
</script>
, 미정 boxid 및은 articleID 창. 이러한 속성을 보려면 어떻게해야합니까?
감사합니다.
감사합니다. 작동 시키십시오. – DanielOlivasJr