Reputation: 105
I have the follow code, it show the picture but don't set the position, where is the problem?
document.write("<IMG ALIGN='center' "+
"style=position:absolute; left: 400; top: 100 " +
"SRC='http://www.uairobotics.com/tomada/Images/farol.png'> " +
"<BR><BR>");
thank you
Roberto
Upvotes: 1
Views: 60
Reputation: 2517
document.write("<IMG ALIGN='center' style='position:absolute; left: 400px; top: 100px' SRC='http://www.uairobotics.com/tomada/Images/farol.png'> " +
"<BR><BR>");
Upvotes: 1
Reputation: 12391
Try this one, you missed ' in style attribute.
document.write("<IMG ALIGN='center' "+
"style='position:absolute; left: 400; top: 100' " +
"SRC='http://www.uairobotics.com/tomada/Images/farol.png'> " +
"<BR><BR>");
Upvotes: 2