/    Sign up×
Community /Pin to ProfileBookmark

anyone use this script before?
i want to know is it possible to refresh the image by input the position -x, position -y, width and height for the cropper?
i tried to make the buttons to perform resize for example. but the image is not being refreshed…

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@dasunliangNov 07.2008 — You can put the image into span or div. The span or div is overwriten when click a button. Like this:
[CODE]<script type="text/javascript">
function showImage(){
var width = document.getElementById('width').value;
var height = document.getElementById('height').value;
document.getElementById('imgBox').innerHTML = '<img src="../aaa.gif" border=0 width='+width+' height='+height+'>';
}
</script>
<body>
<span id="imgBox"><img src="../aaa.gif" border=0></span>
<input type="text" id="width" value="">
<input type="text" id="height" value="">
<input type="button" value="refresh image" onclick="showImage()">
</body>[/CODE]
×

Success!

Help @chxxangie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...