Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onImage(args, kwargs){
- // append message to previous ones, then scroll so latest is at
- // the bottom. Send 'cls' kwarg to modify the output class.
- var mwin = $("#messagewindow");
- mwin.append("<img src='" + args[0]+"'>" + "</img></br>"+args[1]);
- mwin.animate({
- scrollTop: document.getElementById("messagewindow").scrollHeight + 500
- }, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement