mardi 13 mai 2014

multiple images to single image using javascript works fine in localhost but not working in server


Vote count:

0




$(document).ready(function(){ var s=0; $('#frame').children('img').each(function(){ var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); var img=document.getElementById($(this).attr('id')); ctx.drawImage(img,s,10,$(this).width(),$(this).height()); s=s+$(this).width(); }); });



asked 30 secs ago






Aucun commentaire:

Enregistrer un commentaire