<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
if(stristr($agent, 'UBrowser')) $agent = 'UBrowser'; //Opera?
elseif(stristr($agent, 'MSIE')) $agent = 'IE'; //Internet exploler?
elseif(stristr($agent, 'Firefox')) $agent = 'Firefox'; //Mozilla?
// elseif(stristr($agent, 'Chrome')) $agent = 'Chrome'; //Mozilla?
?>
<style type="text/css">
#aside1 {
position: fixed;
z-index: 101;
right:20%;
bottom:0;
width:150px;
height:30px;
backgroundack;
opacity:0.85;
color:#fff;
cursor:pointer;
padding-toppx;
text-align: center;
displayock;
}
#mychatbox{
position: fixed;
z-index: 101;
right:16%;
bottom:0;
height:410px;
width:270px;
backgroundack;
opacity:0.87;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
display:none;
}
#mychattop{
width:270px;
position: absolute;
top:0;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
backgroundack;
font-size:25px;
color:#fff;
text-align: right;
font-weight:bold;
padding-right: 7%;
padding-top:3%;
padding-bottom: 2%;
displayock;
cursor:pointer;
border-bottom:1px solid #353434;
}
#chattext{
position: absolute;
bottom:15%;
background:#191616;
width:266px;
height:78%;
margin:2px;
overflow-y: scroll;
overflow-x: hidden;
}
.onemessage{
<?php if($agent=='Firefox')
echo 'font-weight:bolder;';
?>
font-size:13px;
backgroundack;
color:white;
opacity: 1;
display: table;
width:250px;
margin:1px;
text-align: left;
margin-bottom: 2px;
padding:5px;
}
#avelacnel{
font-weight:bolder;
position: absolute;
bottom:0;
/*background:red;
*/height:18%;
width:266px;
margin:2px;
padding-left: 10px;
}
#chatmes{
float:left;
resize: none;
background:#fbfbfb;
opacity:0.92;
colorack;
margin-top:20px;
border:none;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
#chatbut{
margin-top:20px;
<?php if($agent=='Firefox')
echo 'height:47px;';
else
echo 'height:49px;' ?>
color:white;
background: #dc0909;
border:none;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
</style>
Էջանիշներ