| ~Ice*shOt |
12-05-2015 09:50 |
Motd background too small [Solved]
Here is the code
PHP Code:
public Motd( iPlayer )
{
new szMotd[ 1024 ], szTitle[ 128 ], iPos = 0;
formatex( szTitle, charsmax( szTitle ), "Motd" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "<html>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "<head>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "<style type=^"text/css^">" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "html {height:100%;}" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "body {height:100%; margin:0; padding:0;}" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "#bg {position:fixed; top:0; left:0; width:100%; height:100%;}" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "#content {position:relative; z-index:1;}" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "</style>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "</head>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "<body>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "<div id=^"bg^"><img src=^"http://i.imgur.com/ufLyCar.png^" width=^"100%^" height=^"100%^" alt=^"^"></div>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "</body>" );
iPos += formatex( szMotd[ iPos ], charsmax( szMotd ) - iPos, "</html>" );
show_motd( iPlayer, szMotd , szTitle );
}
why image appears like this, but not fully backgrounded?
http://i.imgur.com/SDsjir3.jpg
|