• Page 1 of 1
  • 1
Collapsible mini-chat for ucoz
AdiDate: Sunday, 2012-11-18, 7:57 PM | Message # 1
Group: Member
Messages: 179
3


Tag Board
Appearance of entries:


Code
<div class="msg">    
<div class="sb$PARITY$">    
<table cellspacing="0" cellpadding="0" width="100%">    
    <tr>    
    <td valign="top" width="36"><div class="av">    
<a href="$PROFILE_URL$"><img src="$CUSTOM1$" alt="$USERNAME$" /></a></div></td>    
<td valign="top"><div class="us"><div class="pdvr"><span class="hus"><a href="javascript:otbet('$USERNAME$')" class="otbv">Ответить</a> |</span> <span title="$DATE$">$TIME$</span></div><a href="$PROFILE_URL$">$USERNAME$</a></div>    
<div style="width:234px;overflow:hidden" id="c_one">$MESSAGE$</div>    
</td>    
</tr>    
</table>    
</div>    
</div>


Tag Board
Form for adding new messages:


Code
<input type="hidden" name="custom1" class="mchat" id="mchatC1F" value="http://webuilder.info/ucoz/1/noavatar.gif" />    

<div align="left"><input type="text" name="mcmessage" class="mchat" id="mchatMsgF" maxlength="500" value="" /></div>    

<input type="submit" onclick="messages();setTimeout(function(){messages()},500)" value="Отправить" class="mchat2" id="mchatBtn" />    

<input style="display:none;" id="mchatAjax" type="button" value="Отправить" class="mchat2" disabled />


Paste the following code to the bottom of the site:

Code
<style type="text/css">    
.dsnn {display:none}    
#c_one_clon, #c_tell {position:absolute;top:-1500px}    
.chat_over {position:fixed;padding:5px;padding-top:0;z-index:9999;bottom:-212px;right:20px;text-align:center;background:rgba(0,0,0,0.6);    
    border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px}    

*:focus {outline: none}    
#bottom_chat {display:none;padding:5px;color:#FFFFFF;cursor: s-resize}    
#top_chat {padding:5px;color:#FFFFFF;cursor: n-resize}    
.ngd {    
    cursor:default;    
    background:#FFFFFF;    
    padding:5px;    
    border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px;    
}    
.clkg {width:288px;    
padding:5px;padding-bottom:6px;border:1px solid #EAEAEA;    
background:#EAEAEA;    
color:#000;    
text-align:left;    
border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px;}    
#wrapper .comm {margin-top:0;margin-left:0px;}    
.sb1, .sb2 {margin-bottom:10px}    
.cs2 {margin-top:3px;color:#E32F17;font-size:10px}    
.cs1 {margin-top:3px;color:#2B2B2B;font-size:10px}    
.chtt iframe {display:none}    
.mchat {width:250px}    
.chtt {margin-top:5px}    
#mchatMsgF {    
margin:0;    
width:288px;    
padding:5px;border:1px solid #FFFFFF;    
background:#FFFFFF;    
    border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px;    
}    
#mchatBtn {position:absolute;top:-1200px}    
#mchatAjax {background:#646464;position:absolute;right:-200px}    

.otbv, .otbv:hover {color:#6A6A6A}    

.sound_on {margin-top:9px;margin-left:252px;width:19px;height:19px;background:url('http://webuilder.info/ucoz/1/sound_on.gif');position:absolute;cursor:pointer}    
.sound_off {margin-top:9px;margin-left:252px;width:19px;height:19px;background:url('http://webuilder.info/ucoz/1/sound_off.gif');display:none;position:absolute;cursor:pointer}    

#wrapper {    
    background:#FFFFFF;    
    width: 290px;    
    height: 200px;    
    overflow: auto;    
}    

#scroller {    
    text-align:left;    
    width:270px;    
    padding:0;    
}    
.pdvr {float:right}    
.comm {margin-left:6px;margin-top:10px}    
.comm .us {color:#646464;font-size:10px;margin-bottom:1px}    
.comm .av {margin-right:10px;width:26px;height:26px;overflow:hidden;background:#666666}    
.comm .av div {position:absolute;width:26px;height:26px;overflow:hidden;background:url('/images/sprite.png') -8px -384px}    
.comm .av img {width:26px}    
.cerr {float:right;padding:7px;padding-right:20px}    

</style>    
<script type="text/javascript" src="http://webuilder.info/ucoz/1/jquery.mousewheel.js"></script>    
<script type="text/javascript" src="http://webuilder.info/ucoz/1/jquery.jscrollpane.js"></script>    

<script type="text/javascript">    
jQuery(function() {jQuery('#wrapper').jScrollPane({hideFocus:true});})    
$('head').append('<link rel="stylesheet" type="text/css" href="http://webuilder.info/ucoz/1/jquery.jscrollpane.css">')    
</script>    

<div class="chat_over">    
<div id="bottom_chat" onclick="hide_chat()">Свернуть</div><div id="top_chat" onclick="show_chat()">Развернуть</div>    
<div id="cht" onclick="show_chat()"><div class="ngd"><div id="wrapper" class="scroll-pane"><div id="scroller" class="comm"></div></div></div>    

<style type="text/css">#scroller img {max-width: 100%} .hus$USER_ID$ {display:none}</style>    

<div class="chtt"><div class="clkg">Необходима авторизация</div>$CHAT_BOX$</div></div>    
<div id="c_one_clon">0</div><div id="c_tell"></div>    
</div>    

<script type="text/javascript">    
function otbet(xt) {$('#mchatMsgF').val(''+xt+', ');$('#mchatMsgF').focus()}    
function opnsml() {$('.ch_sml').slideToggle(200)}    
function smiles(tx) {    
$('#mchatMsgF').val($('#mchatMsgF').val()+' '+tx+' ')    
$('#mchatMsgF').focus()    
$('.ch_sml').slideToggle(200)    
}    
function show_chat() {    
$('.chat_over').animate({bottom:'20px'},200)    
$('#top_chat').fadeOut(200,function(){$('#bottom_chat').fadeIn(200)})    
setCookie('chat', '1', 10, "/")}    
function hide_chat() {    
$('.chat_over').animate({bottom:'-212px'},200)    
$('#bottom_chat').fadeOut(200,function(){$('#top_chat').fadeIn(200)})    
setCookie('chat', '0', 10, "/")}    
function show_profile(nmm) {    
document.location.href='/index/8-'+nmm    
}    

function messages() {    

$.get('/mchat/', function(dt){    

setTimeout(function(){$('#c_one_clon').html($('#c_one', dt).html())},2100)    

$('#scroller').html($('div.msg', dt).after());    
setTimeout(function(){$('#wrapper').fadeIn(200);jQuery('#wrapper').jScrollPane()},200)});    
$('#mchatC1F').val('$USER_AVATAR_URL$http://webuilder.info/ucoz/1/noavatar.gif')    
setTimeout(function(){messages()},20000)    
}    
messages()    
chtcc = getCookie('chat')    
if(chtcc == '1') {$('.chat_over').css('bottom', '20px');$('#top_chat').hide();$('#bottom_chat').show()}    
</script>




Message edited by Adi - Sunday, 2012-11-18, 7:58 PM
 
Message


Tag Board
Appearance of entries:


Code
<div class="msg">    
<div class="sb$PARITY$">    
<table cellspacing="0" cellpadding="0" width="100%">    
    <tr>    
    <td valign="top" width="36"><div class="av">    
<a href="$PROFILE_URL$"><img src="$CUSTOM1$" alt="$USERNAME$" /></a></div></td>    
<td valign="top"><div class="us"><div class="pdvr"><span class="hus"><a href="javascript:otbet('$USERNAME$')" class="otbv">Ответить</a> |</span> <span title="$DATE$">$TIME$</span></div><a href="$PROFILE_URL$">$USERNAME$</a></div>    
<div style="width:234px;overflow:hidden" id="c_one">$MESSAGE$</div>    
</td>    
</tr>    
</table>    
</div>    
</div>


Tag Board
Form for adding new messages:


Code
<input type="hidden" name="custom1" class="mchat" id="mchatC1F" value="http://webuilder.info/ucoz/1/noavatar.gif" />    

<div align="left"><input type="text" name="mcmessage" class="mchat" id="mchatMsgF" maxlength="500" value="" /></div>    

<input type="submit" onclick="messages();setTimeout(function(){messages()},500)" value="Отправить" class="mchat2" id="mchatBtn" />    

<input style="display:none;" id="mchatAjax" type="button" value="Отправить" class="mchat2" disabled />


Paste the following code to the bottom of the site:

Code
<style type="text/css">    
.dsnn {display:none}    
#c_one_clon, #c_tell {position:absolute;top:-1500px}    
.chat_over {position:fixed;padding:5px;padding-top:0;z-index:9999;bottom:-212px;right:20px;text-align:center;background:rgba(0,0,0,0.6);    
    border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px}    

*:focus {outline: none}    
#bottom_chat {display:none;padding:5px;color:#FFFFFF;cursor: s-resize}    
#top_chat {padding:5px;color:#FFFFFF;cursor: n-resize}    
.ngd {    
    cursor:default;    
    background:#FFFFFF;    
    padding:5px;    
    border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px;    
}    
.clkg {width:288px;    
padding:5px;padding-bottom:6px;border:1px solid #EAEAEA;    
background:#EAEAEA;    
color:#000;    
text-align:left;    
border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px;}    
#wrapper .comm {margin-top:0;margin-left:0px;}    
.sb1, .sb2 {margin-bottom:10px}    
.cs2 {margin-top:3px;color:#E32F17;font-size:10px}    
.cs1 {margin-top:3px;color:#2B2B2B;font-size:10px}    
.chtt iframe {display:none}    
.mchat {width:250px}    
.chtt {margin-top:5px}    
#mchatMsgF {    
margin:0;    
width:288px;    
padding:5px;border:1px solid #FFFFFF;    
background:#FFFFFF;    
    border-radius:3px;    
    -moz-border-radius:3px;    
    -webkit-border-radius:3px;    
}    
#mchatBtn {position:absolute;top:-1200px}    
#mchatAjax {background:#646464;position:absolute;right:-200px}    

.otbv, .otbv:hover {color:#6A6A6A}    

.sound_on {margin-top:9px;margin-left:252px;width:19px;height:19px;background:url('http://webuilder.info/ucoz/1/sound_on.gif');position:absolute;cursor:pointer}    
.sound_off {margin-top:9px;margin-left:252px;width:19px;height:19px;background:url('http://webuilder.info/ucoz/1/sound_off.gif');display:none;position:absolute;cursor:pointer}    

#wrapper {    
    background:#FFFFFF;    
    width: 290px;    
    height: 200px;    
    overflow: auto;    
}    

#scroller {    
    text-align:left;    
    width:270px;    
    padding:0;    
}    
.pdvr {float:right}    
.comm {margin-left:6px;margin-top:10px}    
.comm .us {color:#646464;font-size:10px;margin-bottom:1px}    
.comm .av {margin-right:10px;width:26px;height:26px;overflow:hidden;background:#666666}    
.comm .av div {position:absolute;width:26px;height:26px;overflow:hidden;background:url('/images/sprite.png') -8px -384px}    
.comm .av img {width:26px}    
.cerr {float:right;padding:7px;padding-right:20px}    

</style>    
<script type="text/javascript" src="http://webuilder.info/ucoz/1/jquery.mousewheel.js"></script>    
<script type="text/javascript" src="http://webuilder.info/ucoz/1/jquery.jscrollpane.js"></script>    

<script type="text/javascript">    
jQuery(function() {jQuery('#wrapper').jScrollPane({hideFocus:true});})    
$('head').append('<link rel="stylesheet" type="text/css" href="http://webuilder.info/ucoz/1/jquery.jscrollpane.css">')    
</script>    

<div class="chat_over">    
<div id="bottom_chat" onclick="hide_chat()">Свернуть</div><div id="top_chat" onclick="show_chat()">Развернуть</div>    
<div id="cht" onclick="show_chat()"><div class="ngd"><div id="wrapper" class="scroll-pane"><div id="scroller" class="comm"></div></div></div>    

<style type="text/css">#scroller img {max-width: 100%} .hus$USER_ID$ {display:none}</style>    

<div class="chtt"><div class="clkg">Необходима авторизация</div>$CHAT_BOX$</div></div>    
<div id="c_one_clon">0</div><div id="c_tell"></div>    
</div>    

<script type="text/javascript">    
function otbet(xt) {$('#mchatMsgF').val(''+xt+', ');$('#mchatMsgF').focus()}    
function opnsml() {$('.ch_sml').slideToggle(200)}    
function smiles(tx) {    
$('#mchatMsgF').val($('#mchatMsgF').val()+' '+tx+' ')    
$('#mchatMsgF').focus()    
$('.ch_sml').slideToggle(200)    
}    
function show_chat() {    
$('.chat_over').animate({bottom:'20px'},200)    
$('#top_chat').fadeOut(200,function(){$('#bottom_chat').fadeIn(200)})    
setCookie('chat', '1', 10, "/")}    
function hide_chat() {    
$('.chat_over').animate({bottom:'-212px'},200)    
$('#bottom_chat').fadeOut(200,function(){$('#top_chat').fadeIn(200)})    
setCookie('chat', '0', 10, "/")}    
function show_profile(nmm) {    
document.location.href='/index/8-'+nmm    
}    

function messages() {    

$.get('/mchat/', function(dt){    

setTimeout(function(){$('#c_one_clon').html($('#c_one', dt).html())},2100)    

$('#scroller').html($('div.msg', dt).after());    
setTimeout(function(){$('#wrapper').fadeIn(200);jQuery('#wrapper').jScrollPane()},200)});    
$('#mchatC1F').val('$USER_AVATAR_URL$http://webuilder.info/ucoz/1/noavatar.gif')    
setTimeout(function(){messages()},20000)    
}    
messages()    
chtcc = getCookie('chat')    
if(chtcc == '1') {$('.chat_over').css('bottom', '20px');$('#top_chat').hide();$('#bottom_chat').show()}    
</script>

Author - Adi
Date Added - 2012-11-18 в 7:57 PM
  • Page 1 of 1
  • 1
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list naudotų automobilių supirkimas Panevėžyje (0)
type list poliravimo mašinėlė (0)
type list rankų dezinfekcija? vis dar? (0)
type list poilsis Lietuvoje, miške (0)
type list automobilių diagnostikos įranga (0)
type list papuošalai: pirkti pagamintus ar užsisakyti individualiai (0)
type list valiklių vežimėlis (0)
type list vonios sprendimai (0)
type list šiluma ir šaltis namuose (0)
type list biuro popierius (0)
type list kokiomis kaldromis miegate (0)
type list power bank įkroviklis (0)
type list vaikams pagalvės (0)
type list vartų automatika (0)
type list geriausi pirkiniai (0)
type list ekologiški, tvarūs daiktai kasdienai (0)
type list stovykla Lietuvoje (0)

type list Skaiciuojam nuo 1 iki 1000 ! (558)
type list Forum SignatureBar (60)
type list Avatars (23)
type list Juokingos Fotkes :) (19)
type list Kaip pakeisti paveiksla mazas? (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Apklausa Jūsų Svetainei New ucoz (11)
type list Ucoz script - favicon (11)
type list Megsti samp? Ateik cia (10)
type list Button scrolling up ucoz (10)
type list Slider KinoPlius Help to setup :) (10)
type list Money for the forum ucoz (9)
type list KinoPlius (9)
type list Puslapis "Atliekami techniniai darbai" Ucoz scriptas (9)
type list SexMergytes.do.am (9)
type list 11.17.2011 (9)
type list User personal Page ucoz (8)
interout
Forum Posts: 1027
Comments: 51
Reputation: 83
Rank:
GoblinaS
Forum Posts: 380
Comments: 15
Reputation: 25
Rank:
Adi
Forum Posts: 179
Comments: 11
Reputation: 23
Rank:
Esquire
Forum Posts: 147
Comments: 8
Reputation: 5
Rank:
BAtman
Forum Posts: 129
Comments: 1
Reputation: 18
Rank:
WaSHkaZ
Forum Posts: 83
Comments: 0
Reputation: 3
Rank:
Skacikas
Forum Posts: 71
Comments: 0
Reputation: 12
Rank:
meskis
Forum Posts: 51
Comments: 0
Reputation: 25
Rank:
Gytenas
Forum Posts: 51
Comments: 0
Reputation: 1
Rank:
vicka
Forum Posts: 50
Comments: 1
Reputation: 4
Rank:
jokerzvobscure
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
dubroviena008
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
w4bzero
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
infoebrasha
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
karilekamo
Forum Posts: 13
Comments: 0
Reputation: 0
Rank:
zoro
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
pebotapple
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
aressvi
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
eddison_martin3
Forum Posts: 2
Comments: 0
Reputation: 0
Rank:
mariuspijunas
Forum Posts: 20
Comments: 0
Reputation: 0
Rank:


Site design by uCozBaze
uCozBaze © 2011-2016