Procenten niet goed op elk formaat.

Gestart doorWouterr3 reacties43 weergaven

4 berichten · pagina 1 van 1

Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Hey!

Ik zit met een foutje in mijn berichtenbalk.
Ik heb dus zoiets:
[Plaatje van bericht toevoegen] [Alle berichten, scrollend]

Foto:
http://wouter0100.nl/hoefix.png

Je ziet, de goede is mooi, en de foute zit eronder dat is dus als ik mijn venster kleiner maak.

Ik werk nu met procenten, dus 98% voor mijn beeldscherm, maar voor een ander niet?
Hoe kan ik dit simpel oplossen?

Codes:
Spoiler tonen
<div id="bar_top">
            <div id="bar_content_top">
                <a href="#BerichtToevoegen" onclick="OpenToevoegen();"><img src="../images/toevoegen.png"/ align="left"></a>
                <div id="berichtenbalk">
                    <center><img src="images/laden.gif" /></center>
                </div>
                <div id="header_text">
                </div>
            </div>
        </div>
$(function()
{
    LaadBerichten();
});

function LaadBerichten()
{
    $.post("includes/ajax.php", { get: "berichtenbalk" },
        function(data){
            $(#berichtenbalk).html(data);
        });
}


[COLOR= #0000BB]<?php[/COLOR] [COLOR= #FF8000]//alleen ff voor kleurtjes :P[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"berichtenbalk"[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$berichten_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]SELECT * FROM berichtenbalk ORDER BY id DESC LIMIT 10[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
            
    [COLOR= #0000BB]$berichten_num[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$berichten_query[/COLOR][COLOR= #007700]);[/COLOR]
        
    [COLOR= #0000BB]$tellen[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
                    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$berichten_num[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<center>Op het moment zijn er geen berichten in de berichten blak.</center>[/COLOR][COLOR= #007700];
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<marquee width="98%" onmouseover="this.stop();" onmouseout="this.start();" >[/COLOR][COLOR= #007700];
    }[/COLOR]
                    
                    
                    
    [URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$berichten_row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$berichten_query[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [COLOR= #0000BB]$tellen[/COLOR][COLOR= #007700]++;[/COLOR]
                
        [COLOR= #0000BB]$checkonline_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]SELECT * FROM users_online WHERE name = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$berichten_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]minecraftnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" LIMIT 1[/COLOR][COLOR= #007700])[/COLOR]  or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkonline_query[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$online[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]orange[/COLOR][COLOR= #007700]; 
        }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$checkonline_row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkonline_query[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkonline_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]online[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700])
            {[/COLOR]
                [COLOR= #0000BB]$online[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]green[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$online[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]red[/COLOR][COLOR= #007700];
            }
        }[/COLOR]
                        
                        
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000][[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$berichten_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] <i>(<font color=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$berichten_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]minecraftnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</font>)</i>]: <b>[/COLOR][COLOR= #007700].[/COLOR]ubb_code[COLOR= #007700]([/COLOR][COLOR= #0000BB]$berichten_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]</b>[/COLOR][COLOR= #007700];[/COLOR]
                      
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$tellen[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]$berichten_num[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] - [/COLOR][COLOR= #007700];
        }
    }[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</marquee>[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]();
}[/COLOR]


#bar_top {
    background-image: url(../images/header.png);
    background-repeat: repeat-x;
    width: 100%;
    height: 142px;
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
    border-bottom: 3px solid #E1E1E1;
}

#header_text {
    background-image: url(../images/header_tekst.png);
    background-repeat: no-repeat;
    width: 1000px;
    height: 70px;
    margin: 0 auto;
    margin-top: 50px;
}

#bar_content_top {
    padding-top: 8px;
    padding-left: 5px;
}


Of zou iemand mn hele Style (CSS) opnieuw inelkaar kunnen zetten? Want dan gaat het logo ook naar beneden -.- want volgens mij hoort dat niet.
(Betaald ;p, PM Me.)

Bedankt!
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Bump, niemand?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Plaatje werkt niet.
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Uhm, ja.
Ff nieuwe maken shutup
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren