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 3 of 3

Thread: DIV Help +REP

  1. #1
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default DIV Help +REP

    basically it wont line up, and the text is going straght to the bottom, you can see what i mean here: ( The Error is near the Includes Area )

    http://jet40uk.net/index(2).php

    Heres the Code, i know the nav is messy

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Jet40Uk ~ Saving Your Pocket And The Environment...</title>
        <link href="style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="css/dropdown.css" media="screen">
    
        <script src="http://code.jquery.com/jquery-1.4.2.min.js" type="Text/Javascript" />
        <script src="http://css-tricks.com/examples/SimplejQueryDropdowns/js/jquery.dropdownPlain.js" type="Text/Javascript" />
    <script type="text/javascript">
    // Copyright 2006-2007 javascript-array.com
    
    var timeout    = 500;
    var closetimer    = 0;
    var ddmenuitem    = 0;
    
    // open hidden layer
    function mopen(id)
    {    
        // cancel close timer
        mcancelclosetime();
    
        // close old layer
        if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
    
        // get new layer and show it
        ddmenuitem = document.getElementById(id);
        ddmenuitem.style.visibility = 'visible';
    
    }
    // close showed layer
    function mclose()
    {
        if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
    }
    
    // go close timer
    function mclosetime()
    {
        closetimer = window.setTimeout(mclose, timeout);
    }
    
    // cancel close timer
    function mcancelclosetime()
    {
        if(closetimer)
        {
            window.clearTimeout(closetimer);
            closetimer = null;
        }
    }
    
    // close layer when click-out
    document.onclick = mclose; 
    </script>
    <script type="text/javascript"> 
    $(document).ready(function() {        
          
        //Execute the slideShow  
        slideShow();  
      
    });  
      
    function slideShow() {  
      
        //Set the opacity of all images to 0  
        $('#gallery a').css({opacity: 0.0});  
          
        //Get the first image and display it (set it to full opacity)  
        $('#gallery a:first').css({opacity: 1.0});  
          
        //Set the caption background to semi-transparent  
        $('#gallery .caption').css({opacity: 0.7});  
      
        //Resize the width of the caption according to the image width  
        $('#gallery .caption').css({width: $('#gallery a').find('img').css('width')});  
          
        //Get the caption of the first image from REL attribute and display it  
        $('#gallery .content').html($('#gallery a:first').find('img').attr('rel'))  
        .animate({opacity: 0.7}, 400);  
          
        //Call the gallery function to run the slideshow, 6000 = change to next image after 6 seconds  
        setInterval('gallery()',6000);  
          
    }  
      
    function gallery() {  
          
        //if no IMGs have the show class, grab the first image  
        var current = ($('#gallery a.show')?  $('#gallery a.show') : $('#gallery a:first'));  
      
        //Get next image, if it reached the end of the slideshow, rotate it back to the first image  
        var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery a:first') :current.next()) : $('#gallery a:first'));     
          
        //Get next image caption  
        var caption = next.find('img').attr('rel');   
          
        //Set the fade in effect for the next image, show class has higher z-index  
        next.css({opacity: 0.0})  
        .addClass('show')  
        .animate({opacity: 1.0}, 1000);  
      
        //Hide the current image  
        current.animate({opacity: 0.0}, 1000)  
        .removeClass('show');  
          
        //Set the opacity to 0 and height to 1px  
        $('#gallery .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 });   
          
        //Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect  
        $('#gallery .caption').animate({opacity: 0.7},100 ).animate({height: '100px'},500 );  
          
        //Display the content  
        $('#gallery .content').html(caption);  
              
    }  
    </script>
    
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    
    <script type="text/javascript">
    
    ddsmoothmenu.init({
        mainmenuid: "smoothmenu1", //menu DIV id
        orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'ddsmoothmenu', //class added to menu's outer DIV
        //customtheme: ["#1c5a80", "#18374a"],
        contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
    
    ddsmoothmenu.init({
        mainmenuid: "smoothmenu2", //Menu DIV id
        orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
        //customtheme: ["#804000", "#482400"],
        contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
    
    </script>
    </head>
    <body>
    <div id="navigation" >
    <ul id="sddm">
        <li><a href="#" 
            onmouseover="mopen('m1')" 
            onmouseout="mclosetime()">Jet40UK</a>
           </li>
        <li><a href="#" 
            onmouseover="mopen('m2')" 
            onmouseout="mclosetime()">Corporate</a>
            <div id="m2" 
                onmouseover="mcancelclosetime()" 
                onmouseout="mclosetime()">
           <a href="index.php?page=about">About US</a>
            <a href="index.php?page=latest_news">News And Media</a>
            <a href="index.php?page=Staff">Staff Team</a>
          <a href="index.php?page=partners">Partners</a>
          <a href="index.php?page=support">Support And Follow Us</a>
            </div>
        </li>
        <li><a href="#" 
            onmouseover="mopen('m3')" 
            onmouseout="mclosetime()">Careers</a>
            <div id="m3" 
                onmouseover="mcancelclosetime()" 
                onmouseout="mclosetime()">
            <a href="index.php?page=newtova">New To VA's?</a>
            <a href="index.php?page=whychooseus">Why Choose Us?</a>
            <a href="index.php?page=ranks">Ranks</a>
            <a href="index.php?page=pilotcareer">Pilot Careers</a>
            <a href="index.php?page=management">Management Careers</a>
            </div></li>
     <li><a href="#" 
            onmouseover="mopen('m4')" 
            onmouseout="mclosetime()">Operations</a>
            <div id="m4" 
                onmouseover="mcancelclosetime()" 
                onmouseout="mclosetime()">
            <a href="#">F.O.P ~ Coming Soon!</a>
            <a href="flight_search.php">Flight Search</a>
            <a href="fleet.php">Fleet Centre</a>
            <a href="roster.php">Pilot Roster</a>        
            </div></li>
     <li><a href="#" 
            onmouseover="mopen('m5')" 
            onmouseout="mclosetime()">Community</a>
            <div id="m5" 
                onmouseover="mcancelclosetime()" 
                onmouseout="mclosetime()">
            <a href="www.jet40uk.net/forum">Forums</a>
            <a href="teamspeak.php">Teamspeak</a>          
            </div></li>
     <li><a href="#" 
            onmouseover="mopen('m6')" 
            onmouseout="mclosetime()">Contact</a>
            <div id="m6" 
                onmouseover="mcancelclosetime()" 
                onmouseout="mclosetime()">
            <a href="email.php">Online Form</a>
            <a href="telephone.php.php">Phone Us</a>            
            </div></li>
    </ul>
    <div style="clear:both"></div>
    
    </div>
    <div id="container">
    <div class="contbg">
    <div id="header"><div id="logo"></div></div>
    
    <div class="tright">
    <div class="thead">Welcome Back!</div>
    <?php
    if(isset($_SESSION['id']))
        echo '<a href="www.jet40uk.net/inbox.php">- My Messages</a><br />
              <a href="www.jet40uk.net/profile.php">- My Profile</a><br />
                  <a href="www.jet40uk.net/flight_search.php">- Book A Flight</a><br />';
                 
    else {
        
        include("loginbox.php");
    
    }?>
    </div>
    <div id="tleft">
    <div id="gallery">
        <a href="#" class="show">
        <img src="http://i42.tinypic.com/n6ooia.png" alt="News 1" alt="" title="" rel=""/></a>
        </a>
            <a href="#">
            <img src="images/news/news_1.jpg" alt="News 2" alt="" title="" />
        </a>
        <a href="#">
            <img src="images/news/news_2.png" alt="News 3" alt="" title="" />
        </a>
        <a href="#">
            <img src="images/news/news_3.png" alt="News 4" alt="" title="" />
        </a>
       <div class="caption"><div class="content"></div></div>  
       </div>
    <div id="spacer"></div>
    <div id="nav"><div class="twitter"></div><div class="feed"></div></div></div>
    
    
    <div id="bleft">
    <h2>Welcome...</h2>
    </br>
    </div>
    <?php 
     
    $config = array("default" => "home",
                    "directory" => "system/", 
                    "restricted" => array( "index" ), 
                    "404" => "404.php" 
                    );
    $page = ( ( $_GET["page"] ) === null ) ? $config["default"] : ( str_replace("/", "", ( ( ( in_array( $_GET["page"], $config["restricted"] ) ) !== false ) ? $config["default"] : $_GET["page"] ) ) );
    ( file_exists( $config["directory"] . $page . ".php" ) !== false ) ? include( $config["directory"] . $page . ".php" ) : include( $config["directory"] . $config["404"] );  
    ?> 
    
    </div>
    
    
    <div id="footer">FOOTER</div>
    </body>
    </html>
    Thanks, +REP for any help

  2. #2
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Gonna need more info on this.

    404 on the link you gave, so I just went to http://jet40uk.net/ but I can't see exactly what's wrong.

    Which bit is supposed to be where?

  3. #3
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    you see were it says welcome to jet40uk, it needs to be at the top

Posting Permissions

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