OZONE Asylum
Forums
DHTML/Javascript
Trouble with canvas text
This page's ID:
30883
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I think it's because of this. [code]var img=new Image() img.src="br.png" ctx.drawImage(img,-20,-100)[/code] You're probably using the image before it's loaded. Easy fix is to put the image somewhere in the HTML document above and hide it so that the page load event won't happen until the image is loaded. Or you can add a load event listener to the image when you first create it in the script and continue the rest of the drawing in the handler.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »