The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Mon Feb 18, 2013 11:18 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Aug 10, 2011 2:55 pm
Posts: 3
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>


Top
 Profile  
 
PostPosted: Mon Feb 18, 2013 11:36 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Aug 10, 2011 2:55 pm
Posts: 3
the css links are correct but i need to fix the js links. please help


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group