Grupa: Viesis

UWM FORUMS · PORTFOLIO · VIETŅU TOP
JAUNĀKAIS FORUMĀ · BIEDRU SARAKSTS · INFO MEKLĒTĀJS · IZSEKOTĀS TĒMAS · NOBALSO


Ierakstus pievienot var tikai reģistrējies lietotājs!
  UWM AKTUĀLI: DISKUSIJA: Reputācijas restarts - DISKUSIJA: Steam spēļu izloze - NODERĪGI: "CW sistēma" uCoz modulī
  • Lappuse 1 no 1
  • 1
uWM // FORUMS » uWEBMEISTARS // WEBLAPU PLATFORMAS » WEBLAPU APLIKĀCIJAS, SKRIPTI, SPRAUDŅI » uCoz » Jauns privātās vēstules izskats ar 2 versijām
Jauns privātās vēstules izskats ar 2 versijām
Antikrists
Otrdiena, 18.07.2017, 10:57:45 | Ieraksts #1
FORUMA APSARGS
Foruma ieraksti: 602

UWM Reputācija:

uWEBMEISTARS ordeņi:

1. līmenis

2. līmenis

3. līmenis


Jaunākie apbalvojumi:


@Antikrists raksta .. :

Ejam uz http://majaslapa.lv/panel/?a=setup atķeksējam, ka var izmantot API un mājaslapas apakšā liekam -

Code
  <!--PV-->  
<?if($USER_LOGGED_IN$)?>  
  <div id="one_pm" class="bounceIn animated"></div>  
  <script type="text/javascript">  
  var no_ava = 'http://ucozwebmeistars.ucoz.lv/avatar/10/8646-866461.jpg';  
  var this_mess_link = '';  
  function m_reload() {  
  if($('#one_pm').html()=='') {  
  $.get('/index/14?'+Math.random(), function (data) {  
  $('b.unread', data).each(function (i,index) {  
  getLink = $(index).parent().attr("href");  
  this_mess_link = getLink;  
  getText = $(index).parent().text();  
  getAuthorName = $(index).parent().parent().children('a').eq(1).text();  
  getAuthor = $(index).parent().parent().children('a').eq(1).attr("href");  
  getID = '#one_pm'+i;  
  var xml = $.ajax({  
  type: 'GET',  
  url: '/api/index/8-0-'+getAuthorName.replace('-','~'),  
  dataType: 'xml',  
  async: false  
  }).responseText;  
  var urlAvatar = $(xml).find('struct:first member:contains("USER_AVATAR")').find('string').text();  
  var userName = $(xml).find('struct:first member:contains("USER_NAME")').find('string').text();  
  $('#one_pm').html('<div id="one_pm'+i+'" style="display:none" class="bounceIn animated">'  
  +'<div class="h_newpm">'  
  +'<div class="h_npin" align="center"><a class="h_nover" href="'+getLink+'"></a>'  
  +'<div class="h_nptitle">Jauna vēstule</div><span class="h_del" onclick="h_del();return false;"></span>'  
  +'<div class="h_npl"><div class="h_npimg"><a href="#" id="hnp_avatar"></a></div></div>'  
  +'<div class="h_npr"><a href="#" id="hnp_author"></a> <a id="hnp_text" href="'+getLink+'">'+getText+'</a></div>'  
  +'</div>'  
  +'</div>'  
  +'</div><div id="hnp_sound"></div>');  
  $(getID+' #hnp_author').attr('href', getAuthor);  
  $(getID+' #hnp_avatar').attr('href', getAuthor);  
  $(getID+' #hnp_author').html(userName);  
  $(getID+' #hnp_avatar').html('<img src="'+ (urlAvatar == '' ? no_ava : urlAvatar )+'">');  
  setTimeout(function(){$(getID).slideDown(200);},200);   
  });  
  });  
  }  
  }  
  function h_del() {$('#one_pm').fadeOut(200,function(){$('#one_pm').html('<i></i>')});$.get(this_mess_link);}  
  m_reload();setInterval(function(){m_reload()}, 15000);  
  </script>  
  <style type="text/css">  
  #one_pm { position: fixed;  
  top: 80px;  
  right: 10px;
  cursor: pointer;  
  font-family: Tahoma,Arial,Verdana,sans-srif;  
  width: 300px;}  
  #hnp_sound {position:absolute;top:-1000px;left:-1000px}  
  #hnp_author span {display:none}  
  .h_newpm { position: relative;  
  height: 110px;  
  margin-bottom: 20px;  
  color: #555;  
  padding: 8px 8px!important;  
  background: #fff!important;  
  border-radius: 0px;}  

  .h_npin {padding:5px;padding-top:5px}  
  .h_nptitle {color:#555;font-size:13px;font-weight:bold;padding-bottom:0px}  
  .h_npimg {width:57px;height:57px;overflow:hidden;-webkit-border-radius: 90px;-moz-border-radius:90px;border-radius: 90px;}  
  .h_npimg img {width:100%;-webkit-border-radius: 90px;-moz-border-radius: 90px;border-radius: 90px;}  
  .h_npl {position:absolute;left:13px;top:45px;z-index:3;width:70px}  
  .h_npr {position:absolute;left:84px;top:45px;z-index:3;color:#555;font-size:13px;padding-right:14px}  
  .h_npr #hnp_text, .h_npr #hnp_text:hover {display:block;text-decoration:none;color:#555}  
  .h_newpm:hover .h_del {display:inline-block;}  
  .h_del {display: none;cursor: pointer;position: absolute!important;right: 10px;top: 40px;margin: 0!important;z-index: 10014!important;width: 36px!important;height: 36px!important;background: url(http://ucozwebmeistars.ucoz.lv/_fr/50/3445999.png) no-repeat!important;}  
  .h_del:hover {background-position:0px 18px}  
  .h_nover {position:absolute;top:0px;left:0px;width:100%;height:100%;}  
  .animated {  
  -webkit-animation-duration: 1s;  
  animation-duration: 1s;  
  -webkit-animation-fill-mode: both;  
  animation-fill-mode: both;  
  }  

  .animated.infinite {  
  -webkit-animation-iteration-count: infinite;  
  animation-iteration-count: infinite;  
  }  

  .animated.hinge {  
  -webkit-animation-duration: 2s;  
  animation-duration: 2s;  
  }  

  /*the animation definition*/  

  @-webkit-keyframes bounceIn {  
  0%, 100%, 20%, 40%, 60%, 80% {  
  -webkit-transition-timing-function: cubic-bezier(0.215, .61, .355, 1);  
  transition-timing-function: cubic-bezier(0.215, .61, .355, 1)  
  }  
  0% {  
  opacity: 0;  
  -webkit-transform: scale3d(.3, .3, .3);  
  transform: scale3d(.3, .3, .3)  
  }  
  20% {  
  -webkit-transform: scale3d(1.1, 1.1, 1.1);  
  transform: scale3d(1.1, 1.1, 1.1)  
  }  
  40% {  
  -webkit-transform: scale3d(.9, .9, .9);  
  transform: scale3d(.9, .9, .9)  
  }  
  60% {  
  opacity: 1;  
  -webkit-transform: scale3d(1.03, 1.03, 1.03);  
  transform: scale3d(1.03, 1.03, 1.03)  
  }  
  80% {  
  -webkit-transform: scale3d(.97, .97, .97);  
  transform: scale3d(.97, .97, .97)  
  }  
  100% {  
  opacity: 1;  
  -webkit-transform: scale3d(1, 1, 1);  
  transform: scale3d(1, 1, 1)  
  }  
  }  

  @keyframes bounceIn {  
  0%, 100%, 20%, 40%, 60%, 80% {  
  -webkit-transition-timing-function: cubic-bezier(0.215, .61, .355, 1);  
  transition-timing-function: cubic-bezier(0.215, .61, .355, 1)  
  }  
  0% {  
  opacity: 0;  
  -webkit-transform: scale3d(.3, .3, .3);  
  -ms-transform: scale3d(.3, .3, .3);  
  transform: scale3d(.3, .3, .3)  
  }  
  20% {  
  -webkit-transform: scale3d(1.1, 1.1, 1.1);  
  -ms-transform: scale3d(1.1, 1.1, 1.1);  
  transform: scale3d(1.1, 1.1, 1.1)  
  }  
  40% {  
  -webkit-transform: scale3d(.9, .9, .9);  
  -ms-transform: scale3d(.9, .9, .9);  
  transform: scale3d(.9, .9, .9)  
  }  
  60% {  
  opacity: 1;  
  -webkit-transform: scale3d(1.03, 1.03, 1.03);  
  -ms-transform: scale3d(1.03, 1.03, 1.03);  
  transform: scale3d(1.03, 1.03, 1.03)  
  }  
  80% {  
  -webkit-transform: scale3d(.97, .97, .97);  
  -ms-transform: scale3d(.97, .97, .97);  
  transform: scale3d(.97, .97, .97)  
  }  
  100% {  
  opacity: 1;  
  -webkit-transform: scale3d(1, 1, 1);  
  -ms-transform: scale3d(1, 1, 1);  
  transform: scale3d(1, 1, 1)  
  }  
  }  

  .bounceIn {  
  -webkit-animation-name: bounceIn;  
  animation-name: bounceIn  
  }  
   
  </style>  
  <?endif?>




============================
============================

Cits izskats ar ieslēgtu API

Code
<?if($USER_LOGGED_IN$)?>
<?if($UNREAD_PM$>0)?>
<!--PV-->
<div id="one_pm"></div>
<script type="text/javascript">
var no_ava = 'http://ucozwebmeistars.ucoz.lv/_fr/50/3184686.png';
var this_mess_link = '';
function m_reload() {
if($('#one_pm').html()=='') {
$.get('/index/14?'+Math.random(), function (data) {
$('b.unread', data).each(function (i,index) {
getLink = $(index).parent().attr("href");
this_mess_link = getLink;
getText = $(index).parent().text();
getAuthorName = $(index).parent().parent().children('a').eq(1).text();
getAuthor = $(index).parent().parent().children('a').eq(1).attr("href");
getID = '#one_pm'+i;
var xml = $.ajax({
type: 'GET',
url: '/api/index/8-0-'+getAuthorName.replace('-','~'),
dataType: 'xml',
async: false
}).responseText;
var urlAvatar = $(xml).find('struct:first member:contains("USER_AVATAR")').find('string').text();
var userName = $(xml).find('struct:first member:contains("USER_NAME")').find('string').text();
$('#one_pm').html('<div id="one_pm'+i+'" style="display:none">'
+'<div class="h_newpm" id="fadeIn" >'
+'<div class="h_npin"><a class="h_nover" href="'+getLink+'"></a>'
+'<div class="h_nptitle">Jauna vēstule</div><span class="h_del" onclick="h_del();return false;">X</span>'
+'<div class="h_npl"><div class="h_npimg"><a href="#" id="hnp_avatar"></a></div></div>'
+'<div class="h_npr"><a href="#" id="hnp_author"></a> <a id="hnp_text" href="'+getLink+'">'+getText+'</a></div>'
+'</div>'
+'</div>'
+'</div><div id="hnp_sound"></div>');
$(getID+' #hnp_author').attr('href', getAuthor);
$(getID+' #hnp_avatar').attr('href', getAuthor);
$(getID+' #hnp_author').html(userName);
$(getID+' #hnp_avatar').html('<img src="'+ (urlAvatar == '' ? no_ava : urlAvatar )+'">');
setTimeout(function(){$(getID).slideDown(200);},200);
$('#hnp_sound').html('<audio src="http://ucozwebmeistars.ucoz.lv/_fr/50/MP3PV.mp3" volume="1" autoplay></audio>');setTimeout(function(){$('#hnp_sound').html('')},2000);
});
});
}
}
function h_del() {$('#one_pm').fadeOut(200,function(){$('#one_pm').html('<i></i>')});$.get(this_mess_link);}
m_reload();setInterval(function(){m_reload()}, 15000);
</script>

<style type="text/css">
#one_pm {position:fixed;left:20px;bottom:0px;cursor:pointer;font-family:Tahoma,Arial,Verdana,sans-srif}
#hnp_sound {position:absolute;top:-1000px;left:-1000px}
#hnp_author span {display:none}
.h_newpm {
text-align: center;
font-size: 16px;
line-height: 16px;
background: #E92C32;
position: fixed;
bottom: 10px;
left: 60px; /*Pa kreisi vai pa labi*/
z-index:99;
width: 300px;
padding: 40px 10px 10px;
color: #fff!important;;
border-top: 5px solid #292C33;
}
.h_newpm #hnp_author {color:#a4dcfa!important;font-weight:bold;text-decoration:none;}
.h_newpm #hnp_author:hover {color:#a4dcfa!important;text-decoration:underline}
.h_npin {padding:14px;padding-top:10px}
.h_nptitle {color: #FFF!important;
font-size: 13px;
font-weight: bold;
margin: 40px 0 -15px 140px;
}
.h_npimg {width:70px;height:70px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,0.3);-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;margin-top: -17px;}
.h_npimg img {width:100%;-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;}
.h_npl {position:absolute;left:13px;top:38px;z-index:3;width:70px}
.h_npr {position:absolute;left:84px;top:38px;z-index:3;color:#FFF !important;font-size:13px; padding: 0 14px 0 10px;}
.h_npr #hnp_text, .h_npr #hnp_text:hover {display:block;text-decoration:none;color:#FFF !important;}
.h_newpm:hover .h_del {display:inline-block;}
.h_del {
display: block;
position: absolute;
background: #292C33;
top: 0;
left: 140px;
line-height: 25px;
font-weight: bold;
width: 50px;
height: 25px;
text-align: center;
color: #fff;
cursor: pointer;
-webkit-border-bottom-left-radius: 50px;
-webkit-border-bottom-right-radius: 50px;
-moz-border-radius-bottomleft: 50px;
-moz-border-radius-bottomright: 50px;
border-bottom-left-radius: 50px;
border-bottom-right-radius: 50px;
}
.h_del:hover {
background: #27AE60;
color: #000;
}
.h_nover {position:absolute;top:0px;left:0px;width:100%;height:100%;}
#fadeIn{
animation-name: fadeIn;
-webkit-animation-name: fadeIn;
animation-duration: 0.8s;
-webkit-animation-duration: 0.8s;
animation-timing-function: ease-in-out;
-webkit-animation-timing-function: ease-in-out;
visibility: visible !important;
}
@keyframes fadeIn {
0% {transform: scale(0.7);opacity: 0.5;}
80% {transform: scale(1.1);}
100% {transform: scale(1);opacity: 1;}
}
@-webkit-keyframes fadeIn {
0% {-webkit-transform: scale(0.7);opacity: 0.5;}
80% {-webkit-transform: scale(1.1);}
100% {-webkit-transform: scale(1);opacity: 1;}
}
</style>
<?endif?>
<?endif?>



Pielikumi: 3445999.png(1.8 Kb) · 4930248.png(6.9 Kb) · 3184686.png(0.7 Kb) · MP3PV.mp3(96.3 Kb) · 5892332.png(5.1 Kb)



.
.


uWM // FORUMS » uWEBMEISTARS // WEBLAPU PLATFORMAS » WEBLAPU APLIKĀCIJAS, SKRIPTI, SPRAUDŅI » uCoz » Jauns privātās vēstules izskats ar 2 versijām
  • Lappuse 1 no 1
  • 1
Meklēšana:

UWM apmeklēja:

RESPEKTABLĀKIE PORTĀLA FORUMA KLAVIATŪRISTI :
Foruma viszinis
Korijs
UWM karma: 380
Foruma atkarīgais
wuxmachine
UWM karma: 157
Foruma atkarīgais
Robiits
UWM karma: 87
Foruma šamanis
0wn3r
UWM karma: 80
Foruma atkarīgais
H[o_0]LiGaN
UWM karma: 78
Foruma atkarīgais
Spanky
UWM karma: 76
Foruma viszinis
Ar4ssS
UWM karma: 74
Foruma atkarīgais
Profth3tic
UWM karma: 55
Foruma atkarīgais
emciits
UWM karma: 52
Foruma atkarīgais
JackDaniel
UWM karma: 51
Foruma atkarīgais
Antikrists
UWM karma: 51
Foruma atkarīgais
Ken_D
UWM karma: 50
Ielāde...