Help with javascript code for displaying contents based on variable

Discussion in 'HTML & Website Design' started by aloksharma, Feb 26, 2009.

  1. #1
    Hello Everyone,

    I modified the main template of my website to add a left column to all the pages.

    Now the problem is that the left column also appears in the info pages (normally popup).

    I have found a work around for this solution but don't know how to implement it. The idea is to insert a variable in the header template. The body template will have a if else javascript condition. For e.g.:

    if variable found
    html contents and table with left column
    else
    html contents and table without left column
    endif

    Can anyone help me with a javascript code?

    Any help will be highly appreciated.
     
    aloksharma, Feb 26, 2009 IP
  2. aloksharma

    aloksharma Well-Known Member

    Messages:
    1,058
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    160
    #2
    aloksharma, Feb 27, 2009 IP
  3. aloksharma

    aloksharma Well-Known Member

    Messages:
    1,058
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Hello, anyone there with any idea.
     
    aloksharma, Feb 28, 2009 IP