SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Jul 11, 2008, 22:14 #1
- Join Date
- Jul 2008
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
Jul 12, 2008, 13:52 #2
- 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>');
Code:<div id="affilliates"> <script type="text/javascript" src="affiliates.js"></script> </div>
-
Jul 12, 2008, 19:37 #3
- 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 daySharing is what I like.
Visit my site for interesting views eg, weight loss, iphone, etc
www.reviewcart.com
Bookmarks