/    Sign up×
Community /Pin to ProfileBookmark

problem with scrollbars…someone can help me?

When i submit my form using the simple button, the next page, when loaded, hidding the scrollbars, how can i reenabled this?Someone can help me?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@balloonbuffoonApr 13.2006 — I believe you asked this question before a couple days ago, yes? Well I still don't understand what you're asking. Please provide an example of what you are referring to or clarify what you're asking for.

--Steve
Copy linkTweet thisAlerts:
@felgallApr 13.2006 — Scrollbars normally only disappear when either

  • 1. there is insufficient content in the page to need scrollbars or

  • 2. the stylesheet tells the browser to hide any content that doesn't fit instead of allowing it to scroll.
  • Copy linkTweet thisAlerts:
    @paulomaiaauthorApr 13.2006 — Exactly... I´am,

    See the problem is very simple, i have the code (2) that run normally in the page but when i try to execute code (1), without "<href=..." the javascript code don´t execute to produce me the same result of (2) but why?

    (1)

    <html>

    <head>

    </head>

    <body>

    .....

    <?

    function scrollbars(){

    // eix: (Y=horizontal) (X=vertical)

    print

    "<SCRIPT language=JavaScript>

    function hidden()

    {document.body.style.overflow='hidden';}

    function unhidden()

    {document.body.style.overflow='';}

    </SCRIPT>";

    }


    ?>

    ....

    ....

    print "<script> hidden(); </script>

    ...

    ...


    (2)

    <?

    print "<a href='javascript:unhidden()'><sup><img src='images/scrollbar_on.gif' border=0 alt='ativar barra de rolagem'></sup></a>

    <a href='javascript:hidden()'><sup><img src='images/scrollbar_off.gif' border=0 alt='desativar barra de rolagem'></sup></a>";

    ?>

    really thanks.
    Copy linkTweet thisAlerts:
    @paulomaiaauthorApr 13.2006 — Exactly... I´am,

    See the problem is very simple, i have the code (2) that run normally in the page but when i try to execute code (1), without "<href=..." the javascript code don´t execute to produce me the same result of (2) but why?

    (1)

    <html>

    <head>

    </head>

    <body>

    .....

    <?

    function scrollbars(){

    // eix: (Y=horizontal) (X=vertical)

    print

    "<SCRIPT language=JavaScript>

    function hidden()

    {document.body.style.overflow='hidden';}

    function unhidden()

    {document.body.style.overflow='';}

    </SCRIPT>";

    }


    ?>

    ....

    ....

    print "<script> hidden(); </script>";

    ...

    ...


    (2)

    <?

    print "<a href='javascript:unhidden()'><sup><img src='images/scrollbar_on.gif' border=0 alt='ativar barra de rolagem'></sup></a>

    <a href='javascript:hidden()'><sup><img src='images/scrollbar_off.gif' border=0 alt='desativar barra de rolagem'></sup></a>";

    ?>

    really thanks.
    ×

    Success!

    Help @paulomaia spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...