Jump to content
CMSTOOLS.ru - форум поддержки и развития CMS

Recommended Posts

Прост в установке, скопировать код в main.js



кнопка  вызова  

<a class="top_nav_link" id="top_support_link" href="/"><div class="help_lang_ru">радио</div></a>

сам код . вСАВИТЬ В main.js

  1. //RADIO
  2. var radio = {
  3. box: function(){
  4. var tmp = '<div class="miniature_box" id="radio">'+
  5. '<div class="miniature_pos" style="width:350px;background: rgba(19, 73, 2, 0.7);/* background:url(https://longdating.ru/img/bg.gif); */">'+
  6. '<div class="miniature_title fl_l apps_box_text" style="color:#00afde;">Онлайн радио от kisq.ru</div><a class="cursor_pointer fl_r" style="font-size:12px;color:#00afde;" onClick="$(\'#radio\').hide(); $(\'html, body\').css(\'overflow-y\', \'auto\');">Закрыть</a>'+
  7. '<div class="clear"></div>'+
  8. '<div style="margin-left:-20px;margin-bottom:-20px;"><iframe width="400" height="160" src="//www.habbocreate.com/embedded-radio/iframe?autoplay=true&agency=" frameborder="0"></iframe></div>'+
  9. '<div class="clear"></div>'+
  10. '</div>'+
  11. '<div class="clear" style="height:20px"></div>'+
  12. '</div>';
  13. var check = $('#radio').length;
  14. if(!check){
  15. if(is_moz && !is_chrome) scrollTopForFirefox = $(window).scrollTop();
  16. $('html, body').css('overflow-y', 'hidden');
  17. if(is_moz && !is_chrome) $(window).scrollTop(scrollTopForFirefox);
  18. $('body').append(tmp);
  19. } else
  20. $('#radio').show();
  21. }
  22. }
Скопировать код



обновление - открываем main.tpl и вставляем кнопку радио

  1. [logged]<a href="//radiopleer.net" id="radiopleer" class="link" title="Слушать радио онлайн"><div class="help_lang_ru">Радио</div></a><script type="text/javascript" src="//radiopleer.net/embed/button.js"></script>
Скопировать код




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...