Raised This Month: $ Target: $400
 0% 

Motd background too small [Solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 12-05-2015 , 09:50   Motd background too small [Solved]
Reply With Quote #1

Here is the code

PHP Code:
public MotdiPlayer )
{
    new 
szMotd1024 ], szTitle128 ], iPos 0;

    
formatexszTitlecharsmaxszTitle ), "Motd" );

    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"<html>" );

    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"<head>" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"<style type=^"text/css^">" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"html {height:100%;}" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"body {height:100%; margin:0; padding:0;}" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"#bg {position:fixed; top:0; left:0; width:100%; height:100%;}" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"#content {position:relative; z-index:1;}" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"</style>" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"</head>" );

    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"<body>" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"<div id=^"bg^"><img src=^"http://i.imgur.com/ufLyCar.png^" width=^"100%^" height=^"100%^" alt=^"^"></div>" );
    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"</body>" );

    
iPos += formatexszMotdiPos ], charsmaxszMotd ) - iPos"</html>" );

    
show_motdiPlayerszMotd szTitle );

why image appears like this, but not fully backgrounded?


Last edited by ~Ice*shOt; 12-05-2015 at 11:06. Reason: Solved
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
 



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 18:02.


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