# Jpg images inside external .txt file

**URL:** <https://forum.kirupa.com/t/jpg-images-inside-external-txt-file/181670>\
**Category:** Uncategorized\
**Created:** [March 11, 2006, 7:53pm UTC](https://forum.kirupa.com/t/jpg-images-inside-external-txt-file/181670 "2006-03-11T19:53:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cartoonfox](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@cartoonfox](https://forum.kirupa.com/u/cartoonfox)\
**Post date:** [March 11, 2006, 7:53pm UTC](https://forum.kirupa.com/t/jpg-images-inside-external-txt-file/181670/1 "2006-03-11T19:53:55Z")

</div>

Hi, I am trying to have links and images show inside an externaly loaded .txt file.  
I can get the link to work, but the images don’t show up.

here is the code i have:

```php
content.html = true;
loadhtmlText = new loadVars();
loadhtmlText.load("news.txt");
loadhtmlText.onLoad = function() {
	content.htmlText = this.textstart;
};

```

in the .txt file, using “\<a href=“[websitelink.com](http://websitelink.com)”\>link\</a\>” works,  
but "\<img src=“websiteimage.jpg”\> doesn’t. the image doesn’t apear.  
i’ve made sure that the jpg is not progressive.

i maneged to get images to show up in a text box about a year ago, can’t beleive i’ve forgot how to do it!

any help much appreciated

peace
