Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Insert javascript code
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

Hello,
I am trying to insert javascript code for image slider on behalf main banner how can i add it?
As i have JavaScript code and inserted in js folder :: js/slideshow/fadeslideshow.js

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagikTejas
Sr. Member
 
Avatar
Total Posts:  150
Joined:  2009-07-29
 

Hello,

You need to add the js in pagex.ml file of your theme’s layout folder under -

<block type="page/html_head" name="head" as="head">
        --- --
        ------
        <
action method="addJs"><script>js/slideshow/fadeslideshow.js</script></action>
</
block>
Hope this will help you.
 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

hey,
i had added it and is visible when i see it from \"view page source\” but i am unable to see that it is working…
same the main banner is there

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top