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

Thread: Code HElp

  1. #1
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default Code HElp

    PHP Code:
    <?
    require('config.php');

    // Get DJ Message
    $getQuery mysql_query("SELECT * FROM djsays WHERE active='Y'");
    if(
    mysql_num_rows($getQuery) =="0")
    {
    $getData mysql_fetch_array($getQuery);
    $message "<style>
    body { Background: transparent; }
    {
    margin: 0%;
    }
    </style><body leftmargin=\"0\" topmargin=\"0\"><p><font face=\"Verdana\" size=\"1\"><marquee><strong>There is currently no DJ says message...  - <a href=\"javascript:window.location.reload()\">
    <span style=\"text-decoration: none; font-style: italic\"><font color=\"#000000\">
    Refresh</font></span></a></marquee></font></p></body><script>
    setTimeout(\"javascript:window.location.reload();\",300000);
    </script>"
    ;
    }
    else
    {
    $getData mysql_fetch_array($getQuery);
    $message "<body leftmargin=\"0\" topmargin=\"0\"><p><font face=\"Verdana\" size=\"1\"><marquee><strong>$getData[user]: </strong>$getData[message]  - <a href=\"javascript:window.location.reload()\">
    <span style=\"text-decoration: none; font-style: italic\"><font color=\"#000000\">

    Refresh</font></span></a></marquee></font></p></body><script>
    setTimeout(\"javascript:window.location.reload();\",300000);
    </script>"
    ;
    }

    Echo 
    $message;

    ?>
    Why wont it go trasprant:S

  2. #2
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    try:
    PHP Code:
    <?
    require('config.php');

    // Get DJ Message
    $getQuery mysql_query("SELECT * FROM djsays WHERE active='Y'");
    if(
    mysql_num_rows($getQuery) =="0")
    {
    $getData mysql_fetch_array($getQuery);
    $message "
    <style>
    body {
        BACKGROUND-COLOR: transparent;
    }
    margin: {
    0%;
    }
    </style><body leftmargin=\"0\" topmargin=\"0\"><p><font face=\"Verdana\" size=\"1\"><marquee><strong>There is currently no DJ says message...  - <a href=\"javascript:window.location.reload()\">
    <span style=\"text-decoration: none; font-style: italic\"><font color=\"#000000\">
    Refresh</font></span></a></marquee></font></p></body><script>
    setTimeout(\"javascript:window.location.reload();\",300000);
    </script>"
    ;
    }
    else
    {
    $getData mysql_fetch_array($getQuery);
    $message "<body leftmargin=\"0\" topmargin=\"0\"><p><font face=\"Verdana\" size=\"1\"><marquee><strong>$getData[user]: </strong>$getData[message]  - <a href=\"javascript:window.location.reload()\">
    <span style=\"text-decoration: none; font-style: italic\"><font color=\"#000000\">

    Refresh</font></span></a></marquee></font></p></body><script>
    setTimeout(\"javascript:window.location.reload();\",300000);
    </script>"
    ;
    }

    Echo 
    $message;

    ?>
    Havent tested

  3. #3
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Nope dont work iv set my I Frame up right.. Aint i?

    PHP Code:
        <iframe name="I1" scrolling="no" border="0" frameborder="0" width="925" height="14" src="../panel/djsays.php"  allowtransparency="true" valign="top" marginheight="15" marginwidth="13"></iframe

  4. #4
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Jamieb View Post
    Nope dont work iv set my I Frame up right.. Aint i?

    PHP Code:
        <iframe name="I1" scrolling="no" border="0" frameborder="0" width="925" height="14" src="../panel/djsays.php"  allowtransparency="true" valign="top" marginheight="15" marginwidth="13"></iframe
    On ours its
    Code:
    allowtransparency="yes"
    If that dosnt work, delete the style and link a css:
    Our Stats CSS is:
    Code:
    BODY {
        FONT-SIZE: 10px; COLOR: #FFFFFF;
        FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
        BACKGROUND-COLOR: transparent;
        margin-bottom: 3px;
        margin-left: 3px;
        margin-right: 3px;
        margin-top: 3px;
    }
    A:link {
    COLOR: #FFFFFF;
    font-weight: bold;
    TEXT-DECORATION: none;
    }
    A:active {
    COLOR: #FFFFFF;
    font-weight: bold;
    TEXT-DECORATION: none;
    }
    A:visited {
    COLOR: #FFFFFF;
    font-weight: bold;
    TEXT-DECORATION: none;
    }
    A:hover {
    COLOR: #FFFFFF;
    font-weight: bold;
    TEXT-DECORATION: underline;
    }

  5. #5
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Still no

Posting Permissions

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