Results 1 to 4 of 4

Thread: help

  1. #1
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question help

    how can i make it so that all i have to do is edit one page & the menus on both sides of each of my pages changes? because addind 1 affiliate means i have to go through every page on my site, is there a way i can change it so all i have 2 do is change 1 page? (the web host won't let me use phtml or shtml) this is my site http://www.rikafire.50megs.com

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You might be able to write an external script which writes lines to HTML when called.

    I don't know exactly how to but I'm sure someone here could explain document.write("content");

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ? how can i?

  4. #4
    Join Date
    Sep 2004
    Location
    Indonesia
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK well.. I think You can try something like this..

    Code:
    <script language="javascript">
    function left_menu()
    {
    	document.write('<a class="menulinks" href=/about.html>Digimon&nbsp;Adventure </a><br>');
    	document.write('<a class="menulinks" href=/catalog.html>Digimon&nbsp;Adventure 2 </a><br>');
    }
    function right_menu()
    {
    	document.write('<a href="http://www.onlinedigimon.com" TARGET="blank"><img src="http://www.onlinedigimon.com/images/icon.gif" width="88" height="31" alt="Online Digimon" border="0"></a><br>');
    	document.write('<a href="http://geocities.com/darklee12" TARGET="blank"><img src="http://www.rikafire.50megs.com/images/TDI2.JPG" width="88" height="31" alt="Digimon Invasion" border="0"></a><br>');
    }
    </script>
    Save it as, for example menu.js

    add
    Code:
    <script type="text/javascript" src="menu.js"></script>
    inside the <head>

    tag on each of Your page.

    And then replace Your left menu with
    Code:
    <script language="javascript">left_menu()</script>
    and replace Your right menu with
    Code:
    <script language="javascript">left_menu()</script>
    Get the idea?

    Now, if You want to change something, just modify menu.js

    Gee.. I hope that works, I haven't try it myself though
    Last edited by gigabites; 11-03-2004 at 08:24 AM.

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
  •