SRCDS Steam group


MOTD wont scroll
#1
I've tried a <body scroll="yes"> tag, but I can't seem to get it to scroll. Here's what I've got.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <body bgcolor="#000000">
    <div style=
    "width: 100%;font-family: tahoma; margin: 0px auto; font-size: 22px; color: #ccc;font-weight: bolder; padding: 10px; text-align:center;">
      The Flaming Head GM Server<br>
      Garry's Mod Eight v3
    </div>
    <div style=
    "color:red; text-align:center; width: 100%; font-family: tahoma; margin: 0px auto; font-size: 18px; color: #ff0000;">
      Rules:<br>
      Please Read!<br>
      <br>
      NO MINGEBAGS!!!!
    </div>
    <div style=
    "width: 100%; font-family: tahoma; margin: 0px auto; font-size: 12px; color: #aaa; padding: 20px; text-align:left;">
      <ul>
        <li>
          <font color="#ff0000"><b>SEX POSING WILL RESULT IN A
          PERMANENT BAN! NO WARNINGS!</b></font>
        </li>
        <li>
          Also, painting or spraying anything that might be
          considered sexually explicit or offensive, will be
          banned.
        </li>
        <li>
          No cursing/swearing.
        </li>
        <li>
          Don't ask about the previous rule.
        </li>
        <li>
          If you want God Mode to be turned off, or Cheats to be
          turned on, please supply a <b>GOOD REASON</b>.
        </li>
        <li>
          <font color="#ff0000"><b>DO NOT SPAM</b></font>, spamming
          <b>WILL</b> result in a permanent ban.
        </li>
        <li>
          Deathmatching is <b>NOT ALLOWED</b> without permission.
        </li>
        <li>
          Racism, hacking (of course), or otherwise ticking me
          off, is strickly prohibited.
        </li>
        <li>
          Remember, this is my server. If you don't like these
          rules, leave now. Otherwise:
        </li>
        <li>
          Have fun!
        </li>
      </ul>
    </div>
  </body>
</html>

Any ideas?

EDIT: Oh yea, with this, all I get is a regular grey windows scroll bar (not a HL1 type scroll bar) and the scrool bar wont move!
Reply
#2
try just adding your html to the default motd.txt without the scroll argument
United Strike Marine Corps
USMC-CO| θ (theta)
Reply
#3
I did. Actually, when I added it, the scroll bars actually disappeared!
Reply
#4
Your page is not valid xhtml. Unless you know what your are doing I would stick with HTML 4 Transitional. Use the validator to see where you went wrong;

http://validator.w3.org/
Reply
#5
It's now valid (HTML 4). Only now the MOTD is invisible. It doesn't show up at all. Just a window with an OK button.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
  <head>
    <title>
    </title>
    <meta http-equiv="Content-Type" content=
    "text/html; charset=iso-8859-1">
  </head>
  <body bgcolor="#000000">
    <div style=
    "width: 100%;font-family: tahoma; margin: 0px auto; font-size: 22px; color: #ccc;font-weight: bolder; padding: 10px; text-align:center;">
      The Flaming Head GM Server<br>
       Garry's Mod Eight v3
    </div>
    <div style=
    "color:red; text-align:center; width: 100%; font-family: tahoma; margin: 0px auto; font-size: 18px; color: #ff0000;">
      Rules:<br>
       Please Read!<br>
      <br>
       NO MINGEBAGS!!!!
    </div>
    <div style=
    "width: 100%; font-family: tahoma; margin: 0px auto; font-size: 12px; color: #aaa; padding: 20px; text-align:left;">
      <ul>
        <li>
          <font color="#ff0000"><b>SEX POSING WILL RESULT IN A
          PERMANENT BAN! NO WARNINGS!</b></font>
        </li>
        <li>
          Also, painting or spraying anything that might be
          considered sexually explicit or offensive, will be
          banned.
        </li>
        <li>
          No cursing/swearing.
        </li>
        <li>
          Don't ask about the previous rule.
        </li>
        <li>
          If you want God Mode to be turned off, or Cheats to be
          turned on, please supply a <b>GOOD REASON</b>.
        </li>
        <li>
          <font color="#ff0000"><b>DO NOT SPAM</b></font>,
          spamming <b>WILL</b> result in a permanent ban.
        </li>
        <li>
          Deathmatching is <b>NOT ALLOWED</b> without permission.
        </li>
        <li>
          Racism, hacking (of course), or otherwise ticking me
          off, is strickly prohibited.
        </li>
        <li>
          Remember, this is my server. If you don't like these
          rules, leave now. Otherwise:
        </li>
        <li>
          Have fun!
        </li>
      </ul>
    </div>
  </body>
</html>
Reply
#6
it has to do with too many characters in the <li> elements.

i was having the same problem with long lists... short lists work fine, long lists cause the whole motd to disappear. not sure what the fix is.
Reply
#7
the motd has a character limit, not sure how much tho,

to fix it just open the page as a remote page,

like this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Cstrike MOTD</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Refresh" content="0;url=http://members.iinet.net.au/~cdeegan/srcds_html/motd.html">
</head>
<body" scroll="no">
</body>
</html>
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#8
you don't have to do that much; just put the URL in the motd.txt and it will automatically load that URL
Reply
#9
I have That SAme Wont Scroll Problem .. i Cant Figure Out How To Fix It Did i Do SOmething Wrong Here ??


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ReBeL Force</title>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FF0000;
font-weight: bold;
}
.style2 {
font-family: Arial, Helvetica, sans-serif;
color: #CCCCCC;
font-size: 16px;
}
body {
background-color: #000000;
}
a:link {
color: #FF0000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF0000;
}
a:hover {
text-decoration: underline;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #FF0000;
}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<table width="766" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#000000">
<tr>
<td align="center" valign="top"><div align="center" scroll="yes">
<table width="766" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><div align="center"><img src="http://img273.imageshack.us/img273/5735/rebelforce13ow.jpg" width="766" height="385"></div></td>
</tr>
</table>
<span class="style1">- Welcome to the ReBel ForCe Clan Server -</span><br>
<br>
<span class="style2">- SERVER RULES -</span><br>
<br>
<span class="style2">No Hacking/Cheating</span><br>
<span class="style2">No Racism</span><br>
<span class="style2">Respect All Female Players</span><br>
<span class="style2">No Team Killing</span><br>
<span class="style2">Don't be an idiot!</span><br>
<span class="style1">__________________________________________________________________</span><br>
<br>
<span class="style2">Check your stats at <a href="http://etgamehosting.net/stats/rf" target="_blank">http://etgamehosting.net/stats/rf</a></span><br>
<span class="style1">__________________________________________________________________</span><br>
</div></td>
</tr>
</table>
</body>
Reply
#10
I Have Also Tryed <body Scroll="yes"> still cant get it to work =[
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)