Jump to content

Dynamic css into a module


Recommended Posts

Hi

 

I'm developing a new module and that module is a slider using some jquery and css properties.

 

Some of these css and js properties i want to make them dynamic

 

For example, in the module configuration page, the user can enter the height, with, background-color, speed of the animation etc.

 

I couldn't find a way to make those dynamic parameter be in the css / js files.

 

I know that when i want to include a css / js file do this :

Tools::addCSS(($this->_path).'path/to/file.css');
Tools::addJS(($this->_path).'path/to/file.js');

but i want to enter also the parameters given by the user to that module.

How to do that ?

 

Please help.

 

Thanx in advance

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...