/    Sign up×
Community /Pin to ProfileBookmark

Javascript problems

Hi
I am reletively inexperienced with javascript and I have created some and added it to my website ([url]http://home.clara.net/derrett/test[/url]). There are a couple of problems though.

  • 1.

    When the page is resized vertically larger a horrible flickering effect happens in the middle table cell (the one which expands), how can I get rid of this?

  • 2.

    If the page is resized too small I get an error on page message at the bottom left hand corner of the page, how can I stop this happening?

  • This is the relevant bit of code:

    function height()
    {
    if( typeof( window.innerWidth ) == ‘number’ ) {
    h = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientHeight ) ) {
    h = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    h = document.body.clientHeight;
    }

    var e = document.getElementById(“mina”);
    e.height = h -216
    }

    All help will be greatly appreciated

    to post a comment
    JavaScript

    7 Comments(s)

    Copy linkTweet thisAlerts:
    @lincsimpauthorJul 12.2004 — can anyone help?
    Copy linkTweet thisAlerts:
    @VladdyJul 12.2004 — Web site starts with content :rolleyes:

    What you are trying to do can be done with CSS.
    Copy linkTweet thisAlerts:
    @steelersfan88Jul 12.2004 — As Vladdy said, use CSS for these issues. In addition, if you site is done correctly, it will be fine regardless of the size of the window screen.
    Copy linkTweet thisAlerts:
    @lincsimpauthorJul 12.2004 — I have all of the content ready from the old site, all I need to do is get this sorted then transfer it. I tried on webmaster-talk.com, but noone was able to solve the problem using css, how will I be able to sort it using css?

    I mainly do graphics and I am unfamiliar with css, where can I find some resources?

    Thx for your comments
    Copy linkTweet thisAlerts:
    @VladdyJul 12.2004 — Once again, in order to create a robust CSS presentation you have to have content in place. Without it you can not test how the layout will react to user font size settings, window resizing and such.

    Dumping content in some placeholder does not work.
    Copy linkTweet thisAlerts:
    @lincsimpauthorJul 12.2004 — I'm quite new to this and don't really understand what you mean, please could you answer my question. Also what do you mean by "Dumping content in some placeholder"
    Copy linkTweet thisAlerts:
    @steelersfan88Jul 12.2004 — Normally, when testing CSS, programmers use Fake Latin to see how dif't amounts of text fit in each layout. They can also then see how dif't browsers see this, along with different resokutions, and dif't font sizes.

    You don' have to put real ocntent in the layout, but to test it, put some content in. We have answered your question. Vladdy said use CSS from the beginning. You won't need that function and therefore, no error.
    ×

    Success!

    Help @lincsimp 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.5,
    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: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

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

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...