In article <aga4thF1j0...@mid.individual.net>,
Hugh Newbury <h...@hnewbury.uklinux.net> wrote:
> Is there a function in HTML that will get a page to load a chunk of text > in exactly the same way that <IMG SRC> loads pix?
Not really, you would normally use server side includes for this.
Perhaps the closest you can get to using HTML to do this is an inline class attribute with CSS that uses the 'content' property and the :before and :after pseudo-elements; not much use generally, but maybe useful for special purposes.
And, of course, for sighted visitors, you can make a pic of text (make it big enough so none of those visitors have trouble)!
2012-11-12 1:48, richard wrote:
> On Sun, 11 Nov 2012 17:17:36 +0000, Hugh Newbury wrote:
>> Is there a function in HTML that will get a page to load a chunk of text
>> in exactly the same way that <IMG SRC> loads pix?
>> Hugh
> <object>
It does not load text in the same way that <IMG SRC> loads an image nowhere near. You could see this if you actually tried it.
> create a page with the text on it.
> At the point where you want the text to show, insert the tag.
> enclose the tag in a division container and style the division.
If you had actually tried it, you would know that styling the division has no impact on the style of the text.
In article <g50idb29wg8v.1gbdm5dyuilp9$....@40tude.net>, nore...@example.com says...
> On Sun, 11 Nov 2012 17:17:36 +0000, Hugh Newbury wrote:
> > Is there a function in HTML that will get a page to load a chunk of text > > in exactly the same way that <IMG SRC> loads pix?
> > Hugh
> <object>
> create a page with the text on it.
> At the point where you want the text to show, insert the tag.
> enclose the tag in a division container and style the division.
I think that he just want a kind of
<include>\\alltextfiles\mytextfile.txt</include>
> Badly out-of-date page, judging by the browser versions it claims to
> work with.
Last-Modified: Wed, 25 Oct 2006.
But that's really not the point. The point is that inclusion of content with <object> (or with <iframe>) will not "get a page to load a chunk of text in exactly the same way that <IMG SRC> loads pix". It simply includes an external document, rendered in an isolated box.
> On Mon, 12 Nov 2012 17:21:35 +0100, Ray_Net wrote:
> > In article <g50idb29wg8v.1gbdm5dyuilp9$....@40tude.net>, nore...@example.com says...
> >> On Sun, 11 Nov 2012 17:17:36 +0000, Hugh Newbury wrote:
> >>> Is there a function in HTML that will get a page to load a chunk of text > >>> in exactly the same way that <IMG SRC> loads pix?
> >>> Hugh
> >> <object>
> >> create a page with the text on it.
> >> At the point where you want the text to show, insert the tag.
> >> enclose the tag in a division container and style the division.
> > I think that he just want a kind of
> > <include>\\alltextfiles\mytextfile.txt</include>
> that's what the object tag is and does.
> include is server side and used in php.
> object needs no server.
The question was not to use it in php but:
"Is there a function in HTML..."