linking jquery while making a custom joomla 1.5 template

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
biodunbills
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 10, 2011 2:55 pm

linking jquery while making a custom joomla 1.5 template

Post by biodunbills » Mon Feb 18, 2013 11:18 am

Hi there,

I am trying to link jquery the same way you link css but its not working. Please can i get jquery to work? This is what i have done below:>>

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!DOCTYPE html>
<html lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/default.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/color.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/inner.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/prettyPhoto.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/noscript.css" type="text/css" id="noscript" media="screen,all" />


<!--js links-->
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/hoverIntent.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/superfish.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/supersubs.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/jquery.jcarousel.pack.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/gallery.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/jquery.preloader.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/contact.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/gallery.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/js/ts-portfolio-fade.js"></script>



<script type="text/javascript">
jQuery(document).ready(function(){

//Menu
jQuery("ul.sf-menu").supersubs({
minWidth : 12, // requires em unit.
maxWidth : 14, // requires em unit.
extraWidth : 3 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
// due to slight rounding differences and font-family
}).superfish(); // call supersubs first, then superfish, so that subs are
// not display:none when measuring. Call before initialising
// containing tabs for same reason.



});
</script>

biodunbills
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 10, 2011 2:55 pm

Re: linking jquery while making a custom joomla 1.5 template

Post by biodunbills » Mon Feb 18, 2013 11:36 am

the css links are correct but i need to fix the js links. please help


Locked

Return to “Joomla! 1.5 Coding”