Bit obscure this but you lot have been really good at webby things so far.
Got HTML:
<canvas id="canvas" width="1152" height="864"></canvas>
jscript:
canvas = document.getElementById('canvas');
ctx = canvas.getContext('2d');
img.src = document.getElementById('backimage').src;
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
This draws the image properly on open in Firefox, Opera and Google Chrome. In Safari the screen initially comes up black and I only get the image if I refresh. Have checked that it is definitely going through the code on open.
Any brill ideas? Ta.
Got HTML:
<canvas id="canvas" width="1152" height="864"></canvas>
jscript:
canvas = document.getElementById('canvas');
ctx = canvas.getContext('2d');
img.src = document.getElementById('backimage').src;
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
This draws the image properly on open in Firefox, Opera and Google Chrome. In Safari the screen initially comes up black and I only get the image if I refresh. Have checked that it is definitely going through the code on open.
Any brill ideas? Ta.




Comment