SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile How to create script to appear in all site

    Hi,

    I am rather new to Java (or dont know how to program well).

    I have this problem, I create many website, thus I would like to link up all my sites by creating a sidebar on the right which will list down all site I have.

    I cannot just put direct coding into each site as I am adding new sites frequently. And it is tough to update each site when I have a new side.

    Can anyone help me on how to create a database and a script to list my site? So that I can simply update the database of new site and it will appear at the sidebar of all my different sites.

    Thank you.
    Sharing is what I like.
    Visit my site for interesting views eg, weight loss, iphone, etc
    www.reviewcart.com

  2. #2
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just make a script that prints links to all of your sites, then use the HTML script tags to include it in your pages. Example:

    affiliates.js:
    Code:
    document.write('<a href="some-site.com">Some Site</a><br />');
    document.write('<a href="some-other-site.net">Some Other Site</a><br />');
    document.write('<a href="another-site.org">Another Site</a>');
    index.html:
    Code:
    <div id="affilliates">
    <script type="text/javascript" src="affiliates.js"></script>
    </div>

  3. #3
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi World Wide Weird,

    Thank you so much! It works PERFECTLY!

    Now my sites are done with the script! Great help.

    Have a good day
    Sharing is what I like.
    Visit my site for interesting views eg, weight loss, iphone, etc
    www.reviewcart.com


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
  •