在启动Joomla时运行脚本

时间:2015-04-12 09:14:28

标签: javascript jquery joomla

如何在Joomla启动时运行此脚本https://code.google.com/p/jqueryrotate/

我尝试制作如下代码:

<link rel="stylesheet" href="templates/theme2029/style.css" media="screen">


<audio id="radio" preload="true">
    <source src="http://sc8.1.fm:8030/;" type="audio/mpeg" />
</audio>
<div id="player" >

    <div class="top-wrapper">
        <div class="top-part" id="leftsp"><img src="templates/theme2029/imgs/speaker.png"></div>
        <div class="top-part" id="logo-fm"><img src="templates/theme2029/imgs/logo.png"></div>
        <div class="top-part" id="rightsp"><img src="templates/theme2029/imgs/speaker.png"></div>
    </div>
    <div class="bottom-wrapper">
        <div class="down-part" id=sound><img src="templates/theme2029/imgs/soundbx.png">
            <div id="vol-stat"></div>
            <div id="pointer"><img src="templates/theme2029/imgs/soundp.png" id="rol"></div>
            <div id="volup"><button id="plus" disabled onclick="document.getElementById('radio').volume+=0.25"></button></div>
            <div id="voldon"><button id="min" disabled onclick="document.getElementById('radio').volume-=0.25"></button></div>
        </div>
        <div class="down-part" id="playbx"><img src="templates/theme2029/imgs/playCirc.png">
            <div><button id="run" class="contbtn"></button></div>
        </div>
        <div class="down-part" id="tune"><img src="templates/theme2029/imgs/tunebx.png" id="tunebg">
            <div id="chonp"><img src="templates/theme2029/imgs/tunep.png" id="channelp"></div>
            <div class="tunedon" id="changtune"></div>
        </div>
    </div>

</div>



<script src="<?php echo JURI::base().'templates/'.$this->template.'/js/jQueryRotate.js'; ?>"></script>

我在检查元素时收到了这条消息:

  

无法加载资源:服务器响应状态为403(禁止)

这意味着什么以及我需要做些什么来添加这个lib。进入我的joomla指数

0 个答案:

没有答案