Custom Image as Background Image
-
Hi,
Saw your respond a year ago about using custom image but I can’t seem to understand or get it working.
I tried to following accordingly by creating a JS as following,
<script type="text/javascript"> window.onresize = drawSignatureBackground; $( document ).ready( function() { $("#wpcf7_BodyParts_signature").on("mouseup", function(){ drawSignatureBackground(); }); } ); function drawSignatureBackground() { var canvas = document.getElementById("canvasID"); var ctx=canvas.getContext("2d"); var image = new Image(); image.onload = function() { ctx.drawImage(image, 0, 0); } image.src = 'https://domain.com/wp-content/uploads/2017/07/body_parts-1.jpg'; } </script>
The javascript is showing in the signature page but not replacing the white background.
Hope you would be able to assist me out.
Thanks much in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Image as Background Image’ is closed to new replies.