Results 1 to 10 of 10

Thread: Embedding text

  1. #1
    Not Very Senior Member RavenNight's Avatar
    Join Date
    Aug 2005
    Location
    Somewhere with food
    Posts
    1,188
    Thanks
    5
    Thanked
    11 times in 10 posts

    Embedding text

    Not sure this is the correct place but here goes...

    Basically I'm setting up a website for a friend, they know nothing about HTML or any form of website creation and control. I'd like to be able to embed or reference a text document so that all he has to do to update it is to modify that. So far i've only been able to get it to include it in the default console text, I want it in another font. Is there anyway to do this? (I'm using html) Thanks!
    AMD 3700+ San Diego @ 2.8GHz | Zalman CNPS 9500LED + Arctic Cooling MX-1 | Asus A8N-SLi Deluxe + Zalman Northbridge | 1024MB DDR RAM (2 x 512MB Corsair XMS Pro TwinX) | Leadtek nVidia 6600GT 128MB | Creative SoundBlaster X-Fi Xtreme Music | 2x80GB Hitachi Deskstar SATA-II (RAID 0) | Gigabyte 3D Aurora Case | Hiper Type-R 580W Modular | Enermax Ultimate Fan Controller| Microsoft Nautral 4000 | Logitech G5 + fUnc 1030| Ideazon Fang | SpeedLink Medusa 5.1 Surround Headset | Samsung SM913N 19" TFT | Compro DVB-T200

    "Dell? You get better tech support with a cheese sandwich"

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    whats the code for your include?

    if your using CSS to set the style, have a look at:
    http://www.w3.org/TR/REC-CSS2/fonts.html
    throw new ArgumentException (String, String, Exception)

  3. #3
    Not Very Senior Member RavenNight's Avatar
    Join Date
    Aug 2005
    Location
    Somewhere with food
    Posts
    1,188
    Thanks
    5
    Thanked
    11 times in 10 posts
    I've tried:
    <iframe STYLE="font-family: Verdana" src="plain.txt" CONTENT="text/css" width = "55%" font="verdana" >
    </iframe>

    and

    <div>
    <object data="plain.txt" type="text/plain"
    width="100%" style="height: 10em">
    <a href="plain.txt">Embedded Text Document</a>
    </object>
    </div>
    AMD 3700+ San Diego @ 2.8GHz | Zalman CNPS 9500LED + Arctic Cooling MX-1 | Asus A8N-SLi Deluxe + Zalman Northbridge | 1024MB DDR RAM (2 x 512MB Corsair XMS Pro TwinX) | Leadtek nVidia 6600GT 128MB | Creative SoundBlaster X-Fi Xtreme Music | 2x80GB Hitachi Deskstar SATA-II (RAID 0) | Gigabyte 3D Aurora Case | Hiper Type-R 580W Modular | Enermax Ultimate Fan Controller| Microsoft Nautral 4000 | Logitech G5 + fUnc 1030| Ideazon Fang | SpeedLink Medusa 5.1 Surround Headset | Samsung SM913N 19" TFT | Compro DVB-T200

    "Dell? You get better tech support with a cheese sandwich"

  4. #4
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    ah ha!, your embedding it in an Iframe.

    Now if you want him to be able to control it all, use html in the iframe. Ie, src="plain.html"

    but if you want the whole text to be the same size, then you could use a cunning bit of javascript to set the txt. iirc, whne you specify the font of an iframe, its overridden by the rendering of the contents of the iframe.
    throw new ArgumentException (String, String, Exception)

  5. #5
    Not Very Senior Member RavenNight's Avatar
    Join Date
    Aug 2005
    Location
    Somewhere with food
    Posts
    1,188
    Thanks
    5
    Thanked
    11 times in 10 posts
    I would use html however I'd like to use a standard word document as I think it would be easier fro him to edit. If there isn't a way to do that then I will just create a heavily commented simple HTML for him.
    AMD 3700+ San Diego @ 2.8GHz | Zalman CNPS 9500LED + Arctic Cooling MX-1 | Asus A8N-SLi Deluxe + Zalman Northbridge | 1024MB DDR RAM (2 x 512MB Corsair XMS Pro TwinX) | Leadtek nVidia 6600GT 128MB | Creative SoundBlaster X-Fi Xtreme Music | 2x80GB Hitachi Deskstar SATA-II (RAID 0) | Gigabyte 3D Aurora Case | Hiper Type-R 580W Modular | Enermax Ultimate Fan Controller| Microsoft Nautral 4000 | Logitech G5 + fUnc 1030| Ideazon Fang | SpeedLink Medusa 5.1 Surround Headset | Samsung SM913N 19" TFT | Compro DVB-T200

    "Dell? You get better tech support with a cheese sandwich"

  6. #6
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    erm, make him save the word document to html?
    throw new ArgumentException (String, String, Exception)

  7. #7
    Not Very Senior Member RavenNight's Avatar
    Join Date
    Aug 2005
    Location
    Somewhere with food
    Posts
    1,188
    Thanks
    5
    Thanked
    11 times in 10 posts
    yeah thats what i'll do, thanks!
    AMD 3700+ San Diego @ 2.8GHz | Zalman CNPS 9500LED + Arctic Cooling MX-1 | Asus A8N-SLi Deluxe + Zalman Northbridge | 1024MB DDR RAM (2 x 512MB Corsair XMS Pro TwinX) | Leadtek nVidia 6600GT 128MB | Creative SoundBlaster X-Fi Xtreme Music | 2x80GB Hitachi Deskstar SATA-II (RAID 0) | Gigabyte 3D Aurora Case | Hiper Type-R 580W Modular | Enermax Ultimate Fan Controller| Microsoft Nautral 4000 | Logitech G5 + fUnc 1030| Ideazon Fang | SpeedLink Medusa 5.1 Surround Headset | Samsung SM913N 19" TFT | Compro DVB-T200

    "Dell? You get better tech support with a cheese sandwich"

  8. #8
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Word will create some horrendous HTML but as long as you can live with that you'll be fine. Just be aware in case of any strange formatting, it'll probably look ok in Internet Explorer and nowhere else

  9. #9
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    yes, yes it will be.

    But as long as its just formatting text it won't be *that* bad. How many browsers can read RTF, could always format in that.
    throw new ArgumentException (String, String, Exception)

  10. #10
    Does he need a reason? Funkstar's Avatar
    Join Date
    Aug 2005
    Location
    Aberdeen
    Posts
    19,874
    Thanks
    630
    Thanked
    965 times in 816 posts
    • Funkstar's system
      • Motherboard:
      • Gigabyte EG45M-DS2H
      • CPU:
      • Intel Core2Quad Q9550 (2.83GHz)
      • Memory:
      • 8GB OCZ PC2-6400C5 800MHz Quad Channel
      • Storage:
      • 650GB Western Digital Caviar Blue
      • Graphics card(s):
      • 512MB ATI Radeon HD4550
      • PSU:
      • Antec 350W 80+ Efficient PSU
      • Case:
      • Antec NSK1480 Slim Mini Desktop Case
      • Operating System:
      • Vista Ultimate 64bit
      • Monitor(s):
      • Dell 2407 + 2408 monitors
      • Internet:
      • Zen 8mb
    How about going do another route completely. Have you looked at any blog/cms systems?

    I have seen them with formatting controls on the article/item submision form.

    Either that or force them to learn something, and not compromise their site just because they can't can't be bothered to do some work

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Nero vision express saying:'Burn process failed'
    By johnnr892 in forum Help! Quick Relief From Tech Headaches
    Replies: 15
    Last Post: 11-12-2005, 11:43 PM
  2. Replies: 1
    Last Post: 23-08-2005, 03:33 PM
  3. Dodgy DVD-r's ?
    By starside in forum Help! Quick Relief From Tech Headaches
    Replies: 12
    Last Post: 27-03-2005, 06:11 PM
  4. 3 free orange sims per address
    By daveham in forum Retail Therapy and Bargains
    Replies: 73
    Last Post: 16-02-2005, 01:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •