Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Advertisement Create a free account

[Help] Including Avatars in Non-/direct SendChats

1402797764

Edited 1402797803
Hello -- I'm currently seeking a method of incorporating images into a power card. (Like many people, I've drawn a lot of inspiration from it.) I'm currently stuck on the issue and wondering if anyone has any insight on the matter. The line of code in question is: html += "<img align='center'; width='30'; height='30'; src='"+getObj("character",ID).get("avatar").replace("//","\\//")+"'>" Results in: Doesn't seem to particularly want to load the image. It's taking up space -- the designated 30px -- but just doesn't show.
1402801000
Brian
Sheet Author
API Scripter
Right click on the place it's supposed to be and inspect the element, to check what the actual output is. However, you shouldn't have semicolons between the attributes.