Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 1970
    Posts
    0
    Tokens
    0

    Latest Awards:

    Default Position: Absolute Problems.

    How do I stop the Image moving with different resolutions and different browsers?

    Code:
    <div style="position: absolute; top: 178px; left: 243px; z-index: 1;" />
    
    <A 
        
        onMouseOver = "rollover('smr')" 
        onMouseOut  = "rollout('smr')" 
        ><IMG 
        SRC="../Board3/1.gif" 
        NAME="smr" 
        ALT="" BORDER=0
        ></A>
    <SCRIPT TYPE="text/javascript">
    <!--
    setrollover("../Board3/2.Gif");
    //-->
    </SCRIPT>
    </div>
    Yes, I need the rollover to work. Im cutting up a habbo room to make it into a website.

    Anyone know how?

  2. #2
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    Hmmmm..
    You need to define the script more

    CBA typing it out ^_^

  3. #3
    Join Date
    Jan 1970
    Posts
    0
    Tokens
    0

    Latest Awards:

    Default

    Comon

    Ill rep you if you do

    I thought about:
    Code:
    <div style="
    position: absolute; top: 178px; left: 243px; z-index: 1; text-indent: -500px;" />
    
    <A 
        
        onMouseOver = "rollover('smr')" 
        onMouseOut  = "rollout('smr')" 
        ><IMG 
        SRC="../Board3/1.gif" 
        NAME="smr" 
        ALT="" BORDER=0
        ></A>
    <SCRIPT TYPE="text/javascript">
    <!--
    setrollover("../Board3/2.Gif");
    //-->
    </SCRIPT>
    </div>
    Last edited by Boonzeet; 03-11-2007 at 02:18 PM.

  4. #4
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    I never use absolute.

    Absolute is (imo) only fine for layouts that are left-aligned (not centered) and are suppoced to stay ...px from the top-&-left sides.

    If you want your layout centered & want your box/div to move along with the design instead of staying ...px from top & left sides when you change resolution/browser size, please use position: relative;
    Last edited by [Oli]; 03-11-2007 at 02:56 PM.

  5. #5
    Join Date
    Jan 1970
    Posts
    0
    Tokens
    0

    Latest Awards:

    Default

    So how would I write the code?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •