Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hey all,

I have recently taken over a website from someone written in Joomla 1.5. The problem I'm having is mostly adding my own custom code. How anyone can work with Joomla amazes me.

The problem I'm having is this. I have a javascript function that swops two images onmouseover event. This is working perfectly on the home page of the website since I added the javascript function to the index.php file op the template and the rest of the code to the images on the article. (I had to delete some of Joomla's code under libraries/joomla/filesystem I think in order to stop joomla from cleaning up my code)

Now I have another page which is not the home page. The source code shows that is has the javascript function in it but for some reason the images aren't changing. It keeps telling me that the file URL is invalid. All paths are valid and when I make this page my home page, it works fine.

So it seems like other pages (articles) does not correctly use the index.php file's head tags?? But then again the stylesheets should also not work?

I am completely lost with this as I am a pure PHP developer and do not have a lot of experience with Joomla.

Any and all help will be greatly appreciated,

Chris
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900