D
d.adamkiewicz
Hello Folks
I would like to do some element manipulation via javascript onclick
event - changing 'background-image' property mainly. I was wondering
if it is a way to store element properties in html in order to use
them in a future?
A way I know - I could include some css classes (but name of class
must be hardcoded in javascript code). Then remove one class and add
another.
I was thinking about separation javascript code and html/css - a way
to let webmaster configure behaviour via (say config values) in html.
Regards
Darek
I would like to do some element manipulation via javascript onclick
event - changing 'background-image' property mainly. I was wondering
if it is a way to store element properties in html in order to use
them in a future?
A way I know - I could include some css classes (but name of class
must be hardcoded in javascript code). Then remove one class and add
another.
I was thinking about separation javascript code and html/css - a way
to let webmaster configure behaviour via (say config values) in html.
Regards
Darek