Скрипт script type text javascript function icqmess get index 14 funct

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Скрипт:
<script type="text/javascript">
function icqmess(){
$.get('/index/14',function(data){
$('.unread',data).each(function(){
username = $(this).parent().next().text()
link = $(this).parent().attr('href')
$.get($(this).parent().attr('href'),function(data1){
mytext = $('td[colspan=2]:odd',data1).text().split('[ Написать ответ ]')
if(mytext[0].length>40){
mn = ' ...'
}else {mn = ''}
_uWnd.alert('<a class="messlink" target="blank" href="'+link+'">' + mytext[0].slice(0, 40) + mn + '</a>' ,username,{name: 'ls' +mytext, close:1,tm:100000})
}//data1
)//get1
$('body').append('<embed type="application/x-shockwave-flash" src="http://s104.ucoz.net/flash/audio1.swf?song_url=http://mjj-club.com/audio/MJ_hithisisMJ.mp3&autoplay=1&loop=0" width="0" height="0"/>')
})//each
} //data
)//get
setTimeout(icqmess,10000)
}//function
icqmess()
</script>
<style>
.messlink{text-decoration: none!important}
</style>