Having one bit of text displayed many times

Discussion in 'HTML' started by Eric, Aug 3, 2006.

  1. Eric

    Eric Guest

    Below is the img tag you have a picture "myPic01.jpg" you can display it at
    your web site as many times as you like
    <img src="images/myPic01.jpg">


    But can you do the same thing on a HTML page with a bit of text, without
    doing massive copy & paste,
    so this way if you wish to change the text you just need to change it once,
    not "massive times"
    Eric, Aug 3, 2006
    #1
    1. Advertising

  2. Eric <> scripsit:

    > Below is the img tag you have a picture "myPic01.jpg" you can display
    > it at your web site as many times as you like
    > <img src="images/myPic01.jpg">


    Maybe. It's invalid markup, anyway.

    > But can you do the same thing on a HTML page with a bit of text,
    > without doing massive copy & paste,
    > so this way if you wish to change the text you just need to change it
    > once, not "massive times"


    You're probably trying to ask "how do I include a page in another?" Try
    http://www.htmlhelp.com/faq/html/design.html#include-file

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
    Jukka K. Korpela, Aug 3, 2006
    #2
    1. Advertising

  3. Eric

    Eric Guest

    what is " invalid markup"

    I thought I could do it with XML but that only works on Microsoft browser,
    so that was a dead loss

    and I do not want to do with iframes, otherwise I would of done it by now,
    and not ask such bloody useless dumb question





    Jukka K. Korpela <> wrote in message
    news:13kAg.1527$...
    Eric <> scripsit:

    > Below is the img tag you have a picture "myPic01.jpg" you can display
    > it at your web site as many times as you like
    > <img src="images/myPic01.jpg">


    Maybe. It's invalid markup, anyway.

    > But can you do the same thing on a HTML page with a bit of text,
    > without doing massive copy & paste,
    > so this way if you wish to change the text you just need to change it
    > once, not "massive times"


    You're probably trying to ask "how do I include a page in another?" Try
    http://www.htmlhelp.com/faq/html/design.html#include-file

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
    Eric, Aug 3, 2006
    #3
  4. Eric

    PeterMcC Guest

    Eric wrote in
    <44d2312e$>

    > Jukka K. Korpela <> wrote in message
    > news:13kAg.1527$...
    > Eric <> scripsit:
    >
    >> Below is the img tag you have a picture "myPic01.jpg" you can display
    >> it at your web site as many times as you like
    >> <img src="images/myPic01.jpg">

    >
    > Maybe. It's invalid markup, anyway.
    >
    >> But can you do the same thing on a HTML page with a bit of text,
    >> without doing massive copy & paste,
    >> so this way if you wish to change the text you just need to change it
    >> once, not "massive times"

    >
    > You're probably trying to ask "how do I include a page in another?"
    > Try http://www.htmlhelp.com/faq/html/design.html#include-file


    > what is " invalid markup"
    >
    > I thought I could do it with XML but that only works on Microsoft
    > browser, so that was a dead loss
    >
    > and I do not want to do with iframes, otherwise I would of done it by
    > now, and not ask such bloody useless dumb question
    >


    You didn't follow the link, did you?

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
    PeterMcC, Aug 3, 2006
    #4
  5. Eric

    Andy Mabbett Guest

    In message <44d2312e$>, Eric <> writes

    >I would

    [...]
    > not ask such bloody useless dumb question


    Excellent idea.

    --
    Andy Mabbett
    Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

    Free Our Data: <http://www.freeourdata.org.uk>
    Andy Mabbett, Aug 3, 2006
    #5
  6. Eric

    Eric Guest

    yes I did <yawn /> <yawn /> <yawn />
    That jogged my memory on the frames



    PeterMcC <> wrote in message
    news:44d23771$0$964$...
    Eric wrote in
    <44d2312e$>

    > Jukka K. Korpela <> wrote in message
    > news:13kAg.1527$...
    > Eric <> scripsit:
    >
    >> Below is the img tag you have a picture "myPic01.jpg" you can display
    >> it at your web site as many times as you like
    >> <img src="images/myPic01.jpg">

    >
    > Maybe. It's invalid markup, anyway.
    >
    >> But can you do the same thing on a HTML page with a bit of text,
    >> without doing massive copy & paste,
    >> so this way if you wish to change the text you just need to change it
    >> once, not "massive times"

    >
    > You're probably trying to ask "how do I include a page in another?"
    > Try http://www.htmlhelp.com/faq/html/design.html#include-file


    > what is " invalid markup"
    >
    > I thought I could do it with XML but that only works on Microsoft
    > browser, so that was a dead loss
    >
    > and I do not want to do with iframes, otherwise I would of done it by
    > now, and not ask such bloody useless dumb question
    >


    You didn't follow the link, did you?

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
    Eric, Aug 3, 2006
    #6
  7. Eric

    Eric Guest

    I did not want to use frame due to the scrolling, the whole thought of it
    looks horrible.




    Andy Mabbett <> wrote in message
    news:...
    In message <44d2312e$>, Eric <> writes

    >I would

    [...]
    > not ask such bloody useless dumb question


    Excellent idea.

    --
    Andy Mabbett
    Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

    Free Our Data: <http://www.freeourdata.org.uk>
    Eric, Aug 3, 2006
    #7
  8. Eric wrote:
    > yes I did <yawn /> <yawn /> <yawn />
    > That jogged my memory on the frames


    1) you are top posting
    (strike 1)
    2) your replies are more vague than what others have advised you.
    (strike 2)
    3) your mocking to legitimate information
    (strike 3)

    The correct solution to your problem is any form of server-side file
    inclusion of which is detailed in the previously supplied link, and PHP
    includes may be the simplest and most widely supported method.

    <?php include_once("myIncludedFile.php") ?>


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Aug 3, 2006
    #8
  9. Eric

    Eric Guest

    the trouble is php does not work when you put your web site on CDROM for
    other computers

    Once again that is why I did not use it, once again that is why I asked.

    XML seems to be the best option but the dam thing only works with Microsoft
    express


    you are bottom posting, take your strike one back "dictator" I CAN NOT FIND
    A BOTTOM READER THAT OPENS AT THE BOTTOM OF THE PAGE, THAT IS WHY I TOP POST
    TO STOP WASTING TOP SCROLLING DOWN



    Jonathan N. Little <> wrote in message
    news:55bc8$44d25b76$40cba794$...
    Eric wrote:
    > yes I did <yawn /> <yawn /> <yawn />
    > That jogged my memory on the frames


    1) you are top posting
    (strike 1)
    2) your replies are more vague than what others have advised you.
    (strike 2)
    3) your mocking to legitimate information
    (strike 3)

    The correct solution to your problem is any form of server-side file
    inclusion of which is detailed in the previously supplied link, and PHP
    includes may be the simplest and most widely supported method.

    <?php include_once("myIncludedFile.php") ?>


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Eric, Aug 3, 2006
    #9
  10. Eric

    Eric Guest

    I am sorry everyone else I got a bit snooty with the "1) you are top posting
    (strike 1)"
    bit, and it flowed onto the rest of the reply.





    Jonathan N. Little <> wrote in message
    news:55bc8$44d25b76$40cba794$...
    Eric wrote:
    > yes I did <yawn /> <yawn /> <yawn />
    > That jogged my memory on the frames


    1) you are top posting
    (strike 1)
    2) your replies are more vague than what others have advised you.
    (strike 2)
    3) your mocking to legitimate information
    (strike 3)

    The correct solution to your problem is any form of server-side file
    inclusion of which is detailed in the previously supplied link, and PHP
    includes may be the simplest and most widely supported method.

    <?php include_once("myIncludedFile.php") ?>


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Eric, Aug 3, 2006
    #10
  11. Eric wrote:

    > you are bottom posting, take your strike one back "dictator"


    open the front cover and begin reading there?
    the back cover and end up at the front or do you
    chapter one or do you start somewhere near
    When reading a book, do you start at

    > I CAN NOT FIND A BOTTOM READER THAT OPENS AT THE BOTTOM OF THE PAGE,
    > THAT IS WHY I TOP POST TO STOP WASTING TOP SCROLLING DOWN


    Please don't shout.

    Most of the folks in these technical groups prefer it the other way.

    The reason newsreaders don't default to opening way down there, is
    because *proper* quoting and replying should be done inline, as I have
    done here.

    Yours is quite an old one ...
    X-Newsreader: Microsoft Outlook Express 5.00.2615.200

    --
    -bts
    -Warning: I brake for lawn deer
    Beauregard T. Shagnasty, Aug 4, 2006
    #11
  12. Eric wrote:
    > the trouble is php does not work when you put your web site on CDROM for
    > other computers


    And where is this thread to provide this tidbit of information?

    >
    > Once again that is why I did not use it, once again that is why I asked.
    >


    Ditto on reference. Oh you must have post in some other thread right?
    Hate to bust you bubble bub, but you have neither hired me nor anyone
    else in this newsgroup to be your personal help desk. I certainly help
    understand your problem if you at least give use complete information on
    your problem


    > XML seems to be the best option but the dam thing only works with Microsoft
    > express
    >

    No idea what you mean here...
    >
    > you are bottom posting, take your strike one back "dictator" I CAN NOT FIND
    > A BOTTOM READER THAT OPENS AT THE BOTTOM OF THE PAGE, THAT IS WHY I TOP POST
    > TO STOP WASTING TOP SCROLLING DOWN


    Well if you had a decent newsreader you would probably understand the
    therm 'killfile'.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Aug 4, 2006
    #12
  13. Eric

    Neredbojias Guest

    To further the education of mankind, "Eric" <>
    vouchsafed:

    > I did not want to use frame due to the scrolling, the whole thought of
    > it looks horrible.


    You could use javascript, the innerHTML function, but all relevant elements
    would need to be labelled.

    --
    Neredbojias
    Infinity has its limits.
    Neredbojias, Aug 4, 2006
    #13
  14. Eric

    Andy Mabbett Guest

    In message <44d251b4$>, Eric <> writes

    >I did not want to use frame due to the scrolling, the whole thought of
    >it looks horrible.


    What are you replying to?

    A: Because it messes up the order in which we read text
    Q: Why is top posting such a bad thing?
    A: Top posters
    Q: What's the most annoying thing on usenet?

    --
    Andy Mabbett
    Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

    Free Our Data: <http://www.freeourdata.org.uk>
    Andy Mabbett, Aug 4, 2006
    #14
  15. Eric

    Andy Dingley Guest

    Eric wrote:

    >> you are bottom posting, take your strike one back "dictator"

    > I CAN NOT FIND
    > A BOTTOM READER THAT OPENS AT THE BOTTOM OF THE PAGE, THAT IS WHY I TOP POST
    > TO STOP WASTING TOP SCROLLING DOWN


    You are the weakest link. Goodbye!
    Andy Dingley, Aug 4, 2006
    #15
  16. Eric

    Rik Guest

    Beauregard T. Shagnasty wrote:
    > Eric wrote:
    >
    >> you are bottom posting, take your strike one back "dictator"

    >
    > open the front cover and begin reading there?
    > the back cover and end up at the front or do you
    > chapter one or do you start somewhere near
    > When reading a book, do you start at
    >
    >> I CAN NOT FIND A BOTTOM READER THAT OPENS AT THE BOTTOM OF THE PAGE,
    >> THAT IS WHY I TOP POST TO STOP WASTING TOP SCROLLING DOWN

    >
    > Please don't shout.
    >
    > Most of the folks in these technical groups prefer it the other way.


    Yup, google netiquette.

    > The reason newsreaders don't default to opening way down there, is
    > because *proper* quoting and replying should be done inline, as I have
    > done here.
    >
    > Yours is quite an old one ...
    > X-Newsreader: Microsoft Outlook Express 5.00.2615.200


    Download & install OE-Quotefix....

    Grtz,
    --
    Rik Wasmus
    Rik, Aug 4, 2006
    #16
  17. Eric wrote:
    > the trouble is php does not work when you put your web site on CDROM for
    > other computers
    >
    > Once again that is why I did not use it, once again that is why I asked.


    Apparently you're annoyed that the people trying to help you out aren't
    psychic and didn't know in advance what you'd considered and rejected,
    and why, before posting here.

    >
    > XML seems to be the best option but the dam thing only works with Microsoft
    > express


    That doesn't even make any sense. XML has nothing to do with repeating a
    character string in different places.

    > you are bottom posting, take your strike one back "dictator" I CAN NOT FIND
    > A BOTTOM READER THAT OPENS AT THE BOTTOM OF THE PAGE, THAT IS WHY I TOP POST
    > TO STOP WASTING TOP SCROLLING DOWN


    So instead you waste everyone else's time reading message backwards to
    figure out what's going in. You really expect everybody to just wait on
    you hand and foot, don't you? And anyone who points out why your
    behavior is annoying is a "dictator" according to you.
    Harlan Messinger, Aug 4, 2006
    #17
  18. Eric

    PeterMcC Guest

    Eric wrote in
    <44d244c0$>

    > PeterMcC <> wrote in message
    > news:44d23771$0$964$...
    > Eric wrote in
    > <44d2312e$>
    >
    >> Jukka K. Korpela <> wrote in message
    >> news:13kAg.1527$...
    >> Eric <> scripsit:
    >>
    >>> Below is the img tag you have a picture "myPic01.jpg" you can
    >>> display it at your web site as many times as you like
    >>> <img src="images/myPic01.jpg">

    >>
    >> Maybe. It's invalid markup, anyway.
    >>
    >>> But can you do the same thing on a HTML page with a bit of text,
    >>> without doing massive copy & paste,
    >>> so this way if you wish to change the text you just need to change
    >>> it once, not "massive times"

    >>
    >> You're probably trying to ask "how do I include a page in another?"
    >> Try http://www.htmlhelp.com/faq/html/design.html#include-file

    >
    >> what is " invalid markup"
    >>
    >> I thought I could do it with XML but that only works on Microsoft
    >> browser, so that was a dead loss
    >>
    >> and I do not want to do with iframes, otherwise I would of done it by
    >> now, and not ask such bloody useless dumb question
    >>

    >
    > You didn't follow the link, did you?


    > yes I did <yawn /> <yawn /> <yawn />
    > That jogged my memory on the frames


    I hope you won't mind my saying but, as someone who's seen how things work
    around here, you're probably not approaching getting help from the regulars
    in the most effective way.

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
    PeterMcC, Aug 4, 2006
    #18
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page