left menu

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles

    left menu

    Hello, I want to do the following using JS: when you click a link, the window resizes to 100% height
    and aligns to the right + it opens another window that is 100% height x 300px width and aligned to
    the left.

    This makes two windows one next to the other, occupying the whole screen. I want to do this to put
    links of bookmarks on the left window used as a navigation window. Can some one give me a script
    that will do just this ?
    Thanks,


    --
    Charles.


  • Fabian

    #2
    Re: left menu


    "Charles" <goatravellers@ yahoo.com> wrote in message
    news:bp3t8q$1ip fcv$1@ID-208473.news.uni-berlin.de...[color=blue]
    > Hello, I want to do the following using JS: when you click a link, the[/color]
    window resizes to 100% height[color=blue]
    > and aligns to the right + it opens another window that is 100% height[/color]
    x 300px width and aligned to[color=blue]
    > the left.
    >
    > This makes two windows one next to the other, occupying the whole[/color]
    screen. I want to do this to put[color=blue]
    > links of bookmarks on the left window used as a navigation window. Can[/color]
    some one give me a script[color=blue]
    > that will do just this ?
    > Thanks,[/color]

    Problem is, you have no reliable way of knowing how much space the
    browser has access to. A better solution would be to use style sheets
    and <DIV> tags, and assume teh user will have the window sized to his
    needs. This also has the advantage of being easier for the likes of
    google to search through.


    --
    --
    Fabian
    Visit my website often and for long periods!


    Comment

    • Charles

      #3
      Re: left menu

      Thanks Fabian, I did it actually :) http://www.abahia.com/bookmark
      It's working fine, just for my screen resolution for now (1600 x 1200), but then it's easy, I just
      have to add "if" conditions to resize it to 800x600, 1024x768, etc...
      I have another problem: on the index page I want a button that'll close both open windows (kind of a
      logout function). I haven't been able to have it work. Could you have a look at it please ?
      Thanks,

      --
      Charles.


      "Fabian" <lajzar@hotmail .com> escreveu na mensagem
      news:bp47a3$1kr oic$1@ID-174912.news.uni-berlin.de...
      |
      | "Charles" <goatravellers@ yahoo.com> wrote in message
      | news:bp3t8q$1ip fcv$1@ID-208473.news.uni-berlin.de...
      | > Hello, I want to do the following using JS: when you click a link, the
      | window resizes to 100% height
      | > and aligns to the right + it opens another window that is 100% height
      | x 300px width and aligned to
      | > the left.
      | >
      | > This makes two windows one next to the other, occupying the whole
      | screen. I want to do this to put
      | > links of bookmarks on the left window used as a navigation window. Can
      | some one give me a script
      | > that will do just this ?
      | > Thanks,
      |
      | Problem is, you have no reliable way of knowing how much space the
      | browser has access to. A better solution would be to use style sheets
      | and <DIV> tags, and assume teh user will have the window sized to his
      | needs. This also has the advantage of being easier for the likes of
      | google to search through.
      |
      |
      | --
      | --
      | Fabian
      | Visit my website often and for long periods!
      | http://www.lajzar.co.uk
      |


      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: left menu

        Charles wrote:
        [color=blue]
        > Hello, I want to do the following using JS: when you click a link, the
        > window resizes to 100% height and aligns to the right + it opens another
        > window that is 100% height x 300px width and aligned to the left.[/color]

        You do not need and you do not want to manipulate the working area of your
        visitors by doubtful means.
        [color=blue]
        > This makes two windows one next to the other, occupying the whole screen.[/color]

        What about my other (browser) windows that are forced in the background then?
        [color=blue]
        > I want to do this to put links of bookmarks on the left window used as a
        > navigation window.[/color]

        You are looking for frames or (better) a frame-like layout with CSS.
        Popup windows can be used, too, but do not resize the parent window then.
        [color=blue]
        > Can some one give me a script that will do just this ?[/color]

        I could but I will not since it is *my* desktop, not yours.


        PointedEars

        P.S.
        Your automagic line-break comes too late, constriction to 80 characters
        per line is required and constriction from 72 up to 76 characters is
        recommended (I have wrapped it here.) Please reconfigure your news client
        correctly.

        Comment

        Working...