DBGTN.com Version 8.0
Members Login:
Username:
Password:
[ Forgot Password? - Register ]
Latest Additions:
 - 12.10.02 - Akira Toriyama
 - 12.09.02 - Animation Cels
 - 11.05.02 - DBGTN Store
 - 10.25.02 - Screen Caps.
 - 10.21.02 - New Layout
Site Features:
 - DBGTN Anime Search!
 - DBGTN Membership
 - DBGTN Mini Board
 - DBGTN Store
 - DBGTN Top 100
 24 Users online
 Total Members
 Registered: 2562
 Members Online: 9
 Member Stats
 Your User ID#:
 209.237.238.163

 · Navigation Menu
 - Current News
 - General Info.
 - Dragon Ball
 - Dragon Ball Z
 - Dragon Ball GT
 - Multimedia
 - Interaction
 - Fan Files
 - Humor
 - Webmasters
 - The Community

 · The U.S. of A.




 · Topsites

Join Now!
------------
Click Here to Visit!


 · AniB. Newsletter

Email Address:

Subscribe
Unsubscribe



DBGTN Ad

 · DBGT NETWORK

• Tutorials: JavaScript: Include

Ever wanted to have the effect of only updating one link on one file and your whole site updates the link. Now you can without having PHP or SSI to include a file, meaning you can do this on a Geocities site with ease.

Start off by placing this on your html page(the file you want the links to appear on):
<script src="left_navigation.js">
</script>


Now you need to make a file on notepad which will contain the links that will be included on your html page. Open notepad, add this to it(you can add additional links and html to it):
//Type out text
document.write("- <a href='link01.html'>Link 01</a><br>");
document.write("- <a href='link02.html'>Link 02</a><br>");
//End Type out


once you're done adding your links save the file as:
left_navigation.js


Upload both the files in the same directory(folder) and it should work perfectly.

Note: left_navigation.js can be renamed to whatever you want links.js as long as it keeps the .js extension and that you also change the name in the <script scr="file_name.js"> tag. You can also have multiple .js files for right and left navigation includes. Do not hit enter when typing stuff inside the output ("_here_"); or it will give you a JS error.







 · View Layout..?

 · Voting Poll
Internet connection type?
14K
28K
56K
DSL/Cable/LAN
T1-T3


 · Product Spotlight


Dragon Ball Z:Kid Buu - Regression DVD
Price: $18.71
[ - BUY NOW! - ]
Browse Catalog

 · DBGTN Friends
 - DB Menace
 - DB-Unlimited
 - DBZ Circuit
 - DBZGT Legacy
 - DBZ Network
 - KN Vegeta
 - SaiyanChronicles
 - Saiyanz Power
 - Saiyanz Rage
 - The Cell Game


[ Home - Staff Login - FAQs - Link Us - Contact - Privacy Policy - Terms of Use - Copyright - Viewing - Statistics ]

Dragon Ball, Dragon Ball Z, and Dragon Ball GT © 2002 BIRD STUDIO/ SHUEISHA, TOEI ANIMATION. Licensed by FUNimation® Productions, Ltd. All Rights Reserved. Dragon Ball, Dragon Ball Z, and Dragon Ball GT and all logos, character names and distinctive likenesses thereof are trademarks of TOEI ANIMATION. All information on this web site is solely for DBGTN.com unless otherwise stated. Not to be mistaken for the official site, DBGTN.com is strictly a fan site where by no infringement is intended.
Page loaded in 0.123893 seconds.