Joomla! Discussion Forums



It is currently Sun Nov 22, 2009 4:28 am (All times are UTC )

 





Post new topic Reply to topic  [ 4 posts ] 
Author Message
Posted: Tue Mar 11, 2008 1:41 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 07, 2008 2:12 pm
Posts: 46
Hi,
Not sure if this is the right place to post, but here goes..

I want to use the fancyzoom javascript on my page.
Have copied the relevant files and folders to my joomla directory, and make all the necessary configuration changes.
Problem is..
I have no idea how to add the following to the header:
Code:
<script src="<?php echo $tmpTools->baseurl(); ?>includes/js/FancyZoom.js" type="text/javascript" />
<script src="<?php echo $tmpTools->baseurl(); ?>includes/js/FancyZoomHTML.js" type="text/javascript" />

I tried pasting it in several locations, but it won't work. Sometimes nothing happened.. sometimes it ended up screwing up the whole layout of the site..

I only know some very basic php, so if someone could explain how this can be done, would be really grateful.

fyi, I'm using Joomla1.5, japurity template

Thanks


Top
  E-mail  
 
Posted: Fri Mar 28, 2008 5:55 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 24, 2006 11:20 pm
Posts: 18
http://www.cabel.name/2008/02/fancyzoom-10.html

also check this link - it will explain


Top
   
 
Posted: Sat Mar 29, 2008 5:33 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 07, 2008 2:12 pm
Posts: 46
Thanks ingolful.. That's where I got the script, actually.
Managed to get it to work in a few simple webpages I wrote myself.
But somehow, when trying to put it into Joomla, it doesn't work at all.
(when I clicked on the image, it became just a regular link)

I think the problem is with the link to JS file in the header, but am not sure how to fix it without destroying the template.

I found a few plugins that do exactly what I need, but unfortunately those only work for 1.0


Top
  E-mail  
 
Posted: Tue Apr 01, 2008 9:07 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Mar 27, 2008 4:45 am
Posts: 3
Check Here:

http://www.scribd.com/doc/2300110/Joomla-v-15-Adding-Javascript-to-your-Template


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 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 © 2000, 2002, 2005, 2007 phpBB Group