смс:чат

sms:chat

Technical info

Installation

In order to integrate your sms:chat with your project, use the following markup (don't forget to replace chat id with your actual sms:chat id):

<script src="http://chat.smscoin.com/chat/?chat_id=chat id" type="text/javascript">
</script>

The markup given must reside at the appropriate place of the target webpage.

Adjusting

In order to adjust the chat to your needs, use the following optional parameters:

Parameter Type Description Default
lang char(2) Two-letters language code. RU
limit int How many messages are displayed. 20
css_path string Path to the CSS stylesheet. http://chat.smscoin.com/chat/style.css

E.g., in order to reduce the number of simultaneously displayed messages to 10, use

<script src="http://chat.smscoin.com/chat/?chat_id=chat id&limit=10" type="text/javascript">
</script>

Providing your own cascading style sheets (CSS) lets you adapt the appearance of the server to the website design. If necessary you can hide certain elements of the chat. For example, in order to hide the time when the message was sent and the nickname of the sender insert the following line in CSS:

 .time, .nick { display: none; }

The list of classes in use is given in the original CSS.

Share |