insert image

admin

Administrator
Staff member
how can i, if possible insert an image into the body of my webpage while only being able to add/modify the <head> </head> section of the page<!--content-->can you not even edit above the head tags? may i ask why you can't edit the whole html page?<!--content-->its my friends online journal thing, and the only actual bit of html you can modify or add to is within the head tags, other than that, all you can do it post simple messages<!--content-->Hi,<br />
<br />
You can place javascript within the head tags. So, the question really is: what does the journal page look like -- (a url would be ideal)? In other words, what do the forms look like? Without knowing, the only solution I can provide is to create a popup window -- which means the image will appear in a separate window rather than within the page itself.<br />
<br />
Vinny<!--content-->guess you didn't like your answer the first time around???<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=28399">http://www.htmlforums.com/showthread.ph ... adid=28399</a><!-- m --><br />
<br />
please do not cross post in the future.<!--content-->i was hoping for just an inliad image within the main webpage, the point would be to have it come before the actual entries. the site she is using is <!-- w --><a class="postlink" href="http://www.woohu.com">www.woohu.com</a><!-- w --><!--content-->in order to make a image appear in the body you need to use the image tag. since you can't edit the body then you can't put the image tag in it huh?<!--content-->Hi,<br />
<br />
The following is off the top of my head (while I'm doing other things), so I don't guarantee it will work, but it should keep you busy for a while:<br />
<br />
<br />
<script type="text/javascript"><br />
<!--<br />
var myImg = "<img src='http://members.aol.com/grassblad/images/grassAvatar.jpg'>";<br />
document.write(myImg + document.getElementsByTagName('body'))<br />
//--><br />
</script><br />
</head><br />
<body><br />
This is the text.<br />
</body><br />
<br />
another alternative: appendChild()<br />
Vinny<!--content-->thanks, that did the trick<!--content-->you're welcome :)<br />
<br />
Vinny<!--content-->
 
Back
Top