Joomla 3.x:如何添加或链接到外部javascript文件

Joomla 3.x:如何添加或链接到外部javascript文件,javascript,jquery,joomla,joomla3.3,Javascript,Jquery,Joomla,Joomla3.3,我想给我的Joomla用一个视差 具体来说,这一点: 如何将这些插入我的joomla页面 <script type="text/javascript" src="scripts/jquery.parallax-1.1.3.js"></script> <script type="text/javascript" src="scripts/jquery.localscroll-1.2.7-min.js"></script> <script typ

我想给我的Joomla用一个视差

具体来说,这一点:

如何将这些插入我的joomla页面

<script type="text/javascript" src="scripts/jquery.parallax-1.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.localscroll-1.2.7-min.js"></script>
<script type="text/javascript" src="scripts/jquery.scrollTo-1.4.2-min.js"></script>

我使用这个模板与螺旋框架


如果您可以访问文件、ftp或cpanel,请转到模板文件,找到heder secton并放置代码。试试这条路

temlates/your_template/index.php

如果你有权访问文件,ftp或cpanel,请转到模板文件,找到heder secton并放置代码。试试这条路

temlates/your_template/index.php

如果你有权访问文件,ftp或cpanel,请转到模板文件,找到heder secton并放置代码。试试这条路

temlates/your_template/index.php

如果你有权访问文件,ftp或cpanel,请转到模板文件,找到heder secton并放置代码。试试这条路

temlates/your_template/index.php

Joomla文档中解释了将Java脚本库添加到Joomla安装(模板或组件)中的正确方法:

<?php
  $document = JFactory::getDocument();
  $document->addScript('/media/system/js/sample.js');
?>


参考资料:

Joomla文档中介绍了将Java脚本库添加到Joomla安装(模板或组件)中的正确方法:

<?php
  $document = JFactory::getDocument();
  $document->addScript('/media/system/js/sample.js');
?>


参考资料:

Joomla文档中介绍了将Java脚本库添加到Joomla安装(模板或组件)中的正确方法:

<?php
  $document = JFactory::getDocument();
  $document->addScript('/media/system/js/sample.js');
?>


参考资料:

Joomla文档中介绍了将Java脚本库添加到Joomla安装(模板或组件)中的正确方法:

<?php
  $document = JFactory::getDocument();
  $document->addScript('/media/system/js/sample.js');
?>

参考: