remotho Posted December 2, 2014 Share Posted December 2, 2014 Hi, I want to put a value from a variable on a drawing. For Example, if we have " var age = 2014 - year;", and then "age" should be on a bilder. How can I do that. many thanks Regards Link to comment Share on other sites More sharing options...
justsomeguy Posted December 2, 2014 Share Posted December 2, 2014 I don't understand the question. What kind of drawing? Are you using a canvas? Link to comment Share on other sites More sharing options...
remotho Posted December 3, 2014 Author Share Posted December 3, 2014 No, I want to put a label (value) over a jpg picture, for example: I want to put over the picture a value. In excel it's possible with the "Label" Link to comment Share on other sites More sharing options...
justsomeguy Posted December 3, 2014 Share Posted December 3, 2014 In HTML you have to create a new element, position it over the image element, and put whatever text you'd like in it. You would use CSS to position the elements. Link to comment Share on other sites More sharing options...
remotho Posted December 5, 2014 Author Share Posted December 5, 2014 Thank you for your answer, now I know that it's possible, but sorry I can't do that. Could you please send me an example. Regards. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 5, 2014 Share Posted December 5, 2014 Start here:http://www.w3schools.com/css/css_positioning.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now