Home
» component, javascript, joomla, stylesheet » How to add external javascript and stylesheet in joomla component
How to add external javascript and stylesheet in joomla component
| September 17, 2009 | Posted by Subikar under component, javascript, joomla, stylesheet |
This is very easy step you can add external javascript or css in head tag of the page. According to seo you cannot add javascript/css in the middle of the page.
So here is the code snippet.
$document =& JFactory::getDocument();
$document->addStyleSheet($stylesheeturl.’styles.css’);
$document->addScript($jsurl.’scripts.js’);
Have a happy w3c validate page
Great beat ! I would like to apprentice at the same time as you amend your web site, how could i subscribe for a weblog web site? The account aided me a appropriate deal. I have been tiny bit acquainted of this your broadcast offered vivid clear concept