SSI question

Sharky Forums


Results 1 to 6 of 6

Thread: SSI question

  1. #1
    Sleeps with the Fishes
    Join Date
    Jan 2001
    Location
    Pittsburgh (please click here to donate $5 to city budget)
    Posts
    1,246

    Question SSI question

    Ok I love SSI it is a really great technique to use when makes pages, except for one thing. I mostly use it for including my menus on each page. My question is, how can I change the color/style/image of the button of the page that I am currently on? Maybe some javascript? There just needs to be a way in the SSI include file to detect what page I am on and change the style of that button. Anyone have any ideas?

    ------------------
    html.dataraq.com

  2. #2
    Hammerhead Shark
    Join Date
    Oct 2000
    Location
    Toronto, Canada
    Posts
    1,493

    Post

    Well... true, in the start of your original page you set a few variables (maybe in javascript), then, all your server side includes does is to call that color. So your SSI files serve as a template without hardcodng colors.

    ------------------
    DHAHL3seasons GP:73 G:121 A:55 Pts:176 GWG:12 +/-:184
    UWSWA1season GP:9 G:12 A:8 Pts:20 GWG:3 +/-:-3

    uwcdc.com or namgor.com
    DHAHL3seasons GP:73 G:121 A:55 Pts:176 GWG:12 +/-:184
    UWSWA6seasons GP:41 G:53 A:46 Pts:99 GWG:5 +/-:-25
    MCBHL3seasons GP:14 G:20 A:8 Pts:28 GWG:4 +/-:19

    uwcdc.com or monkis.com

  3. #3
    Sleeps with the Fishes
    Join Date
    Jan 2001
    Location
    Pittsburgh (please click here to donate $5 to city budget)
    Posts
    1,246

    Post

    Can you maybe give me an example of how this would be done? I don't really know jack scrap about javascript.

    ------------------
    html.dataraq.com

  4. #4
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    This would better done with a Server Side scripting language. I make these type of "smart menus" all the time, you simply want your included menu to:
    a) Know what page it's on
    and
    b) Know what it should do if it's on "such & such" a page.

    Do you have Perl, Cold Fusion, or PHP at your disposal? If so I can help you write a smart menu.

  5. #5
    Sleeps with the Fishes
    Join Date
    Jan 2001
    Location
    Pittsburgh (please click here to donate $5 to city budget)
    Posts
    1,246

    Post

    Yes I can use perl. Have at it!

    ------------------
    html.dataraq.com

  6. #6
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    Originally posted by Skeelo:
    Yes I can use perl. Have at it!

    Cool, e-mail me with some links, and whatever info you can give me, and we'll talk about the best way to attack this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •