Помогите разобрать скрипт и его преимущества..
- Код: Выделить всё
<script type="text/javascript">rating = function (_t, id, name, link) { if (_t.selectedIndex && confirm(_t.options[_t.selectedIndex].text + '?')) {$(_t).attr('disabled', 1); $.get('/load/0-1-' + _t.value + '-' + id + '-3', function (a) { _uWnd.alert(String($(a).text().match(/'(.*)','/ig)).match(/'(.*)',/)[1], '', { w: 230, h: 80, tm: 3000 }); $('#rt' + id).hide(); if (! ($(a).text().indexOf('уже') != -1)) $.getJSON('http://log.clubtone.net/save.php?act=vote&user=$USERNAME$&uid=$USER_ID$&eid=' + id + '&ename=' + name.replace(/&/g, '') + '&link=' + decodeURIComponent(link) + '&data=' + _t.value + '&callback=?'); }); }; }</script>
И далее в нужном месте стоит вот это :
- Код: Выделить всё
<a target="blank" href="#" onclick="window.open('http://clubtone.net/load/0-0-1-150825-20','Mix','width=850,height=530,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-135)+''); $.getJSON('http://log.clubtone.net/save.php?act=load&user=$USERNAME$&uid=$USER_ID$&eid=150825&ename='+decodeURIComponent($('#name456').text().replace(/&/g, ''))+'&link='+decodeURIComponent(location.href)+'&data=0&callback=?'); return false;">
<b>
СКАЧАТЬ
</b>
</a>