Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

lightbulb-o Add Script Declarations according to page

More
11 years 9 months ago #1796 by popdelart
Thank you Olivier Buisard for this great plugin, its running perfectly on Joomla 3.0.3.

I'm using the plugin to add Vegas Background jQuery to the site, its working.
But I would like to change the backgrounds or use another function according to page,
how can I target them in the Add Script Declarations?

this is what I have:
jQuery( function() {
 jQuery.vegas('slideshow', {
  backgrounds:[
    { src:'/launch/bike_01.jpg', fade:1000 },
    { src:'/launch/bike_02.jpg', fade:1000 },
    { src:'/launch/bike_03.jpg', fade:1000 },
    { src:'/launch/bike_04.jpg', fade:1000 }
  ]
})('overlay', {
    src:'/vegas/overlays/01.png'
  });
});

best regards,
Duarte

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago - 11 years 9 months ago #1799 by admin
Hello,
you cannot do that here with the plugin. You probably have to tweak your template and add declarations manually depending on the menu item you are on OR you could use one of those extensions that allow you to add javascript to a module and make those modules available according to the menu items there are in. The last solution may be the simplest one.
And thank you!

Olivier.
Last edit: 11 years 9 months ago by admin.

Please Log in or Create an account to join the conversation.