Raised This Month: $ Target: $400
 0% 

html


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MacL
Member
Join Date: May 2021
Old 06-14-2021 , 14:02   html
Reply With Quote #1

hey alliedmodders, i have problem with html and i have some questions. problem is why this code does not support 12 parts and is completely broken.
How can I change the background and replace it with a photo?
and how can i put image in <th> tags or how can i change font and color? thanks
code
PHP Code:
    len format(buffer[len], 2367-len"<style>body{background:#112233;font-family:Arial}th{background:#2E2E2E;color:#FFF;padding:5px 2px;text-align:left}td{padding:5px 2px}table{width:100%%;background:#EEEECC;font-size:12px;}h2{color:#FFF;font-family:Verdana;text-align:center}#nr{text-align:center}#c{background:#E2E2BC}</style><h2>Something</h2><table border=^"0^" align=^"center^" cellpadding=^"0^" cellspacing=^"1^"><tbody>";
    
len += format(buffer[len], 2367-len"<tr><th id=nr>#</th><th>Name<th>Persoal<th>Andowna<th>Money<th>Armor<th>Health<th>Gapo<th>Time<th>stats<th>Last time<th>Points");
        
    for(new 
startgNumi++) {
        
get_user_name(idname31);
        
get_stats(iiStatsiBodyname31);
            
        new 
Float:fstats[8];
        for (new 
08j++)
            
fstats[j] = float(iStats[j]);
            
        while(
containi(name"<") != -1)
            
replace(name31"<""<");
        while(
containi(name">") != -1)
            
replace(name31">"">");
            
        
len += format(buffer[len], 2367-len"<tr %s><td id=nr>%d<td>%s<td>%d<td>%d<td>%d<td>%d<td>%d<td>%d<td>%d<td>%d<td>%d",((i%2)==0) ? "" " id=c", (i+1), namepart4part5part6part7part8part9part10part11part12);
    }
        
    new 
server_name[64];
    
get_cvar_string("hostname"server_name63);
    
len += format(buffer[len], 2367-len"<tr><th colspan=^"7^" id=nr>%s"server_name);
        
    
len += format(buffer[len], 2367-len"</tbody></table></body>");
    
show_motd(idbuffer"Moda"); 
something like this:
change the background with photo and font and colors.

Last edited by MacL; 06-14-2021 at 14:05.
MacL is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode