1. Welcome to the new boards! Details here!


Discussion in 'Communications' started by Kerr_Plunk, Sep 12, 2002.

Thread Status:
Not open for further replies.
  1. Gandalf the Grey

    Gandalf the Grey Jedi Knight star 6

    May 14, 2000

    A respost from the depths of the Mod Squad! :eek:

    [blockquote]Date Posted: 9/16 4:46pm Subject: RE: 3SA (and others, starting with Literature) Forum Header Redesign

    I've just had a bit of a brainwave. I've got a solution to the character limit, for users with JavaScript enabled anyway (which must be 99.9% of all of us).

    In the theme header, you'd put this:

    <script language="JavaScript">
    function buildForumHeader()
    document.write('Your unlimited-character header goes here');

    Then, you set this as the board header:

    <script language="javascript">buildForumHeader();</script><noscript>[<a class="MainMenuLink" href=""> Episode III</a>] &nbsp;<a class="MainMenuLink" href="default.asp">Jedi Council Forums</a> &raquo; <a class="MainMenuLink" href="default.asp?cat=10001">The Star Wars Films</a> &raquo; <a class="MainMenuLink" href="board.asp?brd=10331">Episode III (Spoilers Allowed)</a> &raquo;</noscript>

    What that will do is call the JavaScript function 'buildHeader()' if JavaScript is enabled. That function will output the header just as normal, except give us an unlimited character length.

    If the user doesn't have JavaScript enabled (about 2 people over all the forums, probably) then the HTML between the <noscript></noscript> tags will be output instead. So, in the above example, it will only output the standard ' [ Episode III] Jedi Council Forums » The Star Wars Films » Episode III (Spoilers Allowed) »' navigation.

    Assuming that the theme header can be of unlimited size, this is indeed of great help to us. [/blockquote]


    The only explanation: Kadue is playing mind games with us!
  2. green_cross_code

    green_cross_code Jedi Knight star 5

    Jul 11, 2000
    And we've just started moving onto external JavaScript, which makes things easier all round.
  3. Night4554

    Night4554 Jedi Knight star 5

    Oct 9, 2000

    Mod Squad material!


    ;) :D

    _/¯¯'Anyway, cool'¯¯\____/¯¯'Like My Design Concept?'¯¯\__

    ;) *shrug*

Thread Status:
Not open for further replies.