Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Jan 2009
    Location
    liverpool,england
    Posts
    16
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Exclamation i cant get my hotlink buttons (login.png) to show in my index for my game

    hi, ive been making a new login page for my game,
    i made the background and got that to show correctly, but when i tried to add the buttons image across the top of the page it doesnt show, the hotlinks are there so it must be a probem with the way ive linked to the picture,
    any help please
    my game site : http://www.thecrewgame.co.uk

    PHP Code:
    <?php

    session_start
    ();

    include_once
    "includes/db_connect.php";



    $get mysql_query("SELECT * FROM ipban");

    $site mysql_query("SELECT open FROM site WHERE id='1'");

    $row mysql_fetch_assoc($get);

    if(
    $row['ip'] == $_SERVER['REMOTE_ADDR']){

    echo
    "You have been ip banned from The-Crew for Life we don't want you back!";}else{



    if (
    strip_tags($_GET['logout']) == "yes"){

    session_destroy();

    }elseif (isset(
    $_SESSION['username'])){

    echo 
    "<meta http-equiv=\"refresh\" content=\"3;URL=game3.php\">";

    exit();

    }

    if (
    $_POST['Submit'] && strip_tags($_POST['username']) && strip_tags($_POST['password'])){

    $username addslashes(strip_tags($_POST['username']));

    $password addslashes(strip_tags($_POST['password']));



    $ip $REMOTE_ADDR;







    ///check INFO



    $sql mysql_query("SELECT username,password,status FROM user_info WHERE username='$username' AND password='$password' AND activated='1' LIMIT 1");





    $login_check mysql_num_rows($sql);

    $inf mysql_fetch_object($sql);

    if (
    $login_check == "0"){

    $message="Wrong Username or password, please try agian";

    }elseif (
    $login_check != "0"){





    if (
    $login_check "0"){

    if (
    $inf->status == "Dead"){

    include_once
    "dead.php";

    exit();



    }

    if (
    $inf->status == "Banned"){

    $encoded=md5(strtolower($username));

    header("Location: banned.php?banned=$username&encoded=$encoded");

    exit();



    }



    session_register('username');

    $_SESSION['username'] = $inf->username;









             
    $timestamp time()+60;

             
    $ltime time()+25;

    mysql_query("UPDATE user_info SET online='$timestamp' WHERE username='$username'");

    mysql_query("UPDATE user_info SET ltime='$ltime' WHERE username='$username'");



    mysql_query("UPDATE user_info SET l_ip='$ip' WHERE username='$username'");





    echo 
    "<meta http-equiv=\"refresh\" content=\"3;URL=game3.php\">";

    $message2="Please wait...<br><img src='ajax-loader.gif'>";

    } else {

        
    $message"Wrong Username or password, please try agian<br />";



    }}}

    ?>



    <?

    ///END

    ////SITE STATS

    $site=mysql_fetch_object(mysql_query("SELECT * FROM site_stats WHERE id='1'"));

    ////END

    ////FORUM TOPICS

    $totaltopics mysql_num_rows(mysql_query("SELECT id FROM topics"));

    //?END

    /////user_info DEAD

    $deadmysql_num_rows(mysql_query("SELECT username FROM user_info WHERE status = 'Dead'"));

    /////TOTAL ATTEMPTS

    $attempts=mysql_num_rows(mysql_query("SELECT id FROM attempts WHERE outcome = 'Survived'"));

    ///?END

    $result11111swiss=mysql_query("SELECT money FROM swiss");

    $moneyswiss 0;

    $rowswiss=mysql_fetch_array($result11111swiss);

    ?>



    <?

    $timenow
    =time();

    $select mysql_query("SELECT online,id FROM user_info WHERE online > '$timenow' ORDER by id");

    $num mysql_num_rows($select);

    ?>

      <?

    }

    ?>

     

    <html>

    <link href="includes/in.css" rel="stylesheet" type="text/css" />

    <style type="text/css">



    <!--

    body,td,th {

        font-family: Verdana, Arial, Helvetica, sans-serif;

        font-size: 10px;

        color: #FFFFFF;

        font-weight: bold;

    }

    body {

        font-family: Verdana;

        font-size: 10px;

        font-style: light;

        font-weight: 500;

        font-variant: light;

        color: #000001;

        background-image: url(bg.png);

    }

    #Layer1 {
        position:absolute;
        width:327px;
        height:44px;
        z-index:1;
        left: 348px;
        top: 248px;
    }

    #Layer2 {

        position:absolute;

        width:1001px;

        height:37px;

        z-index:2;

        left: 2px;

        top: 158px;

    }

    #Layer3 {

        position:absolute;

        width:482px;

        height:26px;

        z-index:3;

        left: 266px;

        top: 469px;

    }

    #Layer4 {

        position:absolute;

        width:292px;

        height:21px;

        z-index:4;

        left: 449px;

        top: 542px;

    }

    a:link {

        text-decoration: none;

        color: #33CCFF;

        font-weight: light;

    }

    a:visited {

        text-decoration: none;

        color: #33CCFF;

        font-weight: light;

    }

    a:active {

        text-decoration: none;

        color: #33CCFF;

        font-weight: light;

    }

    a:hover {

        color: #FFFFFF;

        font-weight: light;

        text-decoration: flash;

    }

    #Layer5 {

        position:absolute;

        width:457px;

        height:16px;

        z-index:4;

        left: 314px;

        top: 407px;

    }

    .style8 {color: #FFFFFF}

    .style40 {font-family: Verdana, Arial, Helvetica, sans-serif}

    .style30 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }

    .style41 {

        color: #FF0000;

        font-size: 14px;

    }

    .style42 {font-size: 18px}

    #what {    padding: 0px;

        margin: 0px;

        position: absolute;

        width: 143px;

        height: 143px;

        right: 0;

        top: 0;

    }







    -->



    </style>



    <head>



    <title> The-Crew </title>



    <link href="includes/in.css" rel="stylesheet" type="text/css" />

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



    </head>



    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    <body background="done.jpg">

    <div align="center">

    <body background="done.jpg">

     



      <form name="form1" method="post" action="">

      

        <p align="center">

          <map name="Map" id="Map2">

          </map>

          <img src="the-crewindex2.png" width="1000" height="552" border="0" usemap="#Map23">

    <map name="Map23">

      <area shape="rect" coords="323,196,434,212" href="tos.php">

      <area shape="rect" coords="479,164,554,180" href="register.php">

      <area shape="rect" coords="514,114,642,150" href="lost.php">

      <area shape="rect" coords="357,112,508,148" href="ss.php">

      <area shape="rect" coords="259,112,354,151" href="tos.php">

      <area shape="rect" coords="134,112,258,152" href="register.php">

    </map>

          </map>

          <map name="MapMap" id="Map22">

          </map>

          <map name="Map23Map">

            <area shape="rect" coords="351,6,501,47" href="ss.php">

          </map>

          <br>

        </p>

        <div id="Layer1">

          <div align="center">

            <p align="center" class="style8"><span class="style30"><?php echo "<font color=red><b><center>$message</center><b></font>";echo "<font color=white><b><center>$message2</center><b></font>"?></span><br>

              <br>

              <img src="username.png" width="85" height="7"> : 

              <input name="username" type="text" id="username" value="" class="inputbg" maxlength="40" />

                <br />

                <br>

                <img src="password.png" width="88" height="7">

                : 

                <input name="password" type="password" id="password" value="" class="inputbg" maxlength="40" />

      <br>

      <br>

              <input type="submit" name="Submit" class="button" value="Login" />

              <br>

              <br>

            There Are Currently <b><?php echo "$num";

                    
    ?></b> Gangsters Online!<br>

            <br>

            The most ever Gangsters online at once was:<b> <?php echo "$site->online";

                    
    ?></b>!<br>

            </p>

          </div>

        </div>

      </form>

    <body background="done.jpg">



      

    </body>

    <script language=JavaScript>

    <!--



    var message="Hmmm.... No Way";



    ///////////////////////////////////

    function clickIE4(){

    if (event.button==2){

    alert(message);

    return false;

    }

    }



    function clickNS4(e){

    if (document.layers||document.getElementById&&!document.all){

    if (e.which==2||e.which==3){

    alert(message);

    return false;

    }

    }

    }



    if (document.layers){

    document.captureEvents(Event.MOUSEDOWN);

    document.onmousedown=clickNS4;

    }

    else if (document.all&&!document.getElementById){

    document.onmousedown=clickIE4;

    }



    document.oncontextmenu=new Function("alert(message);return false")



    // --> 

    </html>
    css file
    PHP Code:
    body,td,th {
        
    font-familyVerdanaArialHelveticasans-serif;
        
    font-size10px;
        
    colorwhite;

    }
    bold {
        
    font-familyVerdanaArialHelveticasans-serif;
        
    font-size15px;
        
    colorwhite;
            
    font-weightbold

         
    }


    body  
    color#FFFFFF;
        
    font-familyarial;
      
    background-color#333333;
        
    scrollbar-face-colorblack
        
    scrollbar-face-color#404040;
        
    scrollbar-shadow-color#202020;
        
    scrollbar-highlight-color#808080;
        
    scrollbar-3dlight-color#808080;
        
    scrollbar-darkshadow-color#202020;
        
    scrollbar-track-color#777777;
        
    scrollbar-arrow-color#FFFFFF;


    font-size10px; }

    td.header  {  
      
    font-size15px;  
    background-colorgreen;
      
    font-familyVerdanaArialHelveticasans-serif;
      
    color#FFFFFF;

      
    background-imageurl(grad.jpg);

     }

    td.header2  {  
      
    font-size15px;  
    background-colorgreen;
      
    font-familyVerdanaArialHelveticasans-serif;
      
    color#FFFFFF;

      
    background-imageurl(grad2.jpg);

     }

    td.tip  {  
      
    font-size10px;  
    font-familyarial;
      
    color#000000;

     
    }



    a{text-decoration:nonecolor:blackfont-size10px;}
    a:link{text-decoration:nonecolor:blackfont-size10px;}
    a:visited{text-decoration:nonecolor:blackfont-size10px;}
    a:hover{text-decoration:underlinecolor:blackfont-size10px;}
    a:active{text-decoration:none color:blackfont-size10px;}

    input.submit{
        
        
    font-size10px;
        
    color#red;
        
    background-color#FFFFFF;
        
    border-stylesolid;
        
    border-color#000000;
        
    border-width1px;
        
    }
    table.thinline {
       
    border-collapse:collapse;
       
    border:1px solid #000000;
       
    align:center;
       
    margin-left:auto;
       
    margin-right:auto;
       
    background-color#666666;
       
    font-size10px;
        

      
    }

    .
    warning {
        
    font-familyVerdanaArialHelveticasans-serif;
        
    font-sizex-small;
        
    font-weightbold;
        
    text-transformcapitalize;
        
    color#FF0000;
        
    text-decorationnone;
        
    background-color#FFFFFF;
        
    text-aligncenter;
        
    padding5px;
        
    border2px solid #000000;
        
    margin-right100px;
        
    margin-left100px;
    }
    .
    success {
        
    font-familyVerdanaArialHelveticasans-serif;
        
    font-sizex-small;
        
    font-weightbold;
        
    color#009900;
        
    text-decorationnone;
        
    background-color#FFFFFF;
        
    text-aligncenter;
        
    padding5px;
        
    border2px solid #000000;
        
    margin-right100px;
        
    margin-left100px;
    }

    .
    button {
        
    border1px solid #000000;
        
    font-size12px;
        
    font-weightbold;
        
    color#000000;
        
    font-familyVerdanaArialHelveticasans-serif;
        
    font-stylenormal;
        
    background-color#009900;
        
    text-aligncenter;
        
    padding0px;
        
    margin5px;
        
    background-color#ffffff;
    }

    .
    tablebg {
        
    background-imageurl(../images/footerbg.jpg);
        
    background-repeatrepeat;

    Last edited by kmacca; 05-10-2009 at 01:59 PM. Reason: to include css file


 

Posting Permissions

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