Javascript doesn't work! Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

    Javascript doesn't work!

    xx3004
    xx3004
    New Member


    Male Posts : 13
    Reputation : 0
    Language : English, Vietnamese

    Javascript doesn't work! Empty Javascript doesn't work!

    Post by xx3004 January 12th 2011, 8:59 pm

    Hi guys, I'm new here and I'm expecting some help xD

    I try to make a bulletin board that update the news for the forum:

    http://xx3004.niceboard.com/

    I try to make a simple text just for testing:

    Code:

    <div id="bullentinBoard" style="position: absolute; top:0; left: 0;">
    Hello everyone this is a new test xD
    </div>

    And then I try to adjust their properties:
    Code:

    <script language="javascript">
    //I'm using Firefox, this code works for sure, I just simplify it!
    document.getElementById("bullentinBoard").style.top=300;
    document.getElementById("bullentinBoard").style.left=300;
    </script>

    And the problem is I can't adjust its height or width or top or left.... because in the source page, it lays under the <div id="left"> layer!

    So I need some help for moving and adjusting my Bulletin board div!

    Thanks guys in advanced!
    avatar
    Guest
    Guest


    Javascript doesn't work! Empty Re: Javascript doesn't work!

    Post by Guest January 12th 2011, 11:53 pm

    It's not working because with any CSS measurement value other than ZERO, you need to specify a measurement type (px, pt, em, %).
    xx3004
    xx3004
    New Member


    Male Posts : 13
    Reputation : 0
    Language : English, Vietnamese

    Javascript doesn't work! Empty Re: Javascript doesn't work!

    Post by xx3004 January 12th 2011, 11:54 pm

    Dion wrote:It's not working because with any CSS measurement value other than ZERO, you need to specify a measurement type (px, pt, em, %).
    Could you please show me details?