Micro Niche Builder
Closed Thread
Results 1 to 4 of 4

Thread: HTML in HTML

  1. #1

    Default HTML in HTML

    Is there any way to link insert html from one document to another.

    For example I have a html code that I want displayed on every webpage. At the moment I am just copying and pasting but if I need to edit it I have to edit all of them.

    Any help on how to do this? (Not frames)


  2. Micro Niche Builder

  3. #2
    404 Error Not Found... decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher has a reputation beyond repute decipher's Avatar
    Join Date
    Jan 2003
    Posts
    4,299
    Thanks
    132
    Thanked 294 Times in 195 Posts
    Blog Entries
    12

    Default

    If your are referring to some sort of an include code I'm not sure about .htm or .html but if you have .shtml you can by using the following code:

    HTML Code:
    <!--#include virtual="INCLUDEFILEHERE.inc" -->


    *** Another way is to ask your hosting provider to change the server configuration so that php is allowed in your .html files and then you can use a basic PHP include code.

    Hope this helps..

    Thanks!
    Micro Niche Builder - Build SEO Friendly Sites that CONVERT LIKE CRAZY for Adsense, Amazon, Clickbank, & CPA Offers!
    SEO Contest - Home of the WORLD FAMOUS Search Engine Optimization Contests. Think you got what it takes?


  4. #3
    Fulltime Member Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan's Avatar
    Join Date
    Jan 2009
    Location
    Ayr. Scotland
    Posts
    766
    Thanks
    26
    Thanked 62 Times in 57 Posts
    Blog Entries
    1

    Default

    Same idea if you are using asp server side code also. <include ..>.

    HTML does not allow you to do this directly. If however you are using an HTML editor that generates your pages from a template, then updating the template for the repetitive code would do the trick.


    Seen a good post - give some reputation
    Keeping the forum clean - SPAMMERS BEWARE!!

  5. #4

    Default

    You can always use Javascript to do this; just use a simple function that calls document.write() to write your HTML to the page, and call the function from the external Javascript file.

Closed Thread

Similar Threads

  1. You want learm about html & css?
    By antonemarian in forum HTML & CSS Help
    Replies: 12
    Last Post: 12-27-2010, 05:59 AM
  2. PSD to HTML
    By nikon in forum HTML & CSS Help
    Replies: 17
    Last Post: 09-14-2010, 08:51 PM
  3. Html - ajax
    By rohitanu in forum HTML & CSS Help
    Replies: 4
    Last Post: 08-15-2009, 07:10 PM
  4. Html
    By GioBuffon in forum HTML & CSS Help
    Replies: 22
    Last Post: 06-22-2009, 04:09 AM
  5. html img tag
    By hiren_mehta007 in forum Design and Development
    Replies: 2
    Last Post: 06-19-2009, 09:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

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