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:
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!
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!
