Ссылки создания Новой темы и Опроса в топике (Romych)
в html-низ:
Код
<script type="text/javascript">
$('#pun-viewtopic').map(function () {
var Loc = $(this).find('#pun-crumbs1 a:last').attr('href');
Loc = Loc.slice(Loc.indexOf('?id=')+4);
$(this).find('.postlink').append('<span style="padding-left:12px;padding-right:12px"><a rel="nofollow" href="http://'+window.location.hostname+'/post.php?fid='+Loc+'">Новая тема</a></span><span><a rel="nofollow" href="http://'+window.location.hostname+'/poll.php?fid='+Loc+'">Опрос</a></span>').css('width','auto');
})
</script>
$('#pun-viewtopic').map(function () {
var Loc = $(this).find('#pun-crumbs1 a:last').attr('href');
Loc = Loc.slice(Loc.indexOf('?id=')+4);
$(this).find('.postlink').append('<span style="padding-left:12px;padding-right:12px"><a rel="nofollow" href="http://'+window.location.hostname+'/post.php?fid='+Loc+'">Новая тема</a></span><span><a rel="nofollow" href="http://'+window.location.hostname+'/poll.php?fid='+Loc+'">Опрос</a></span>').css('width','auto');
})
</script>
Просмотров: 816, Загрузок: 0, Оценка: 5.0 (1)
Страницы: | |