jquery - html string into css - how to? -


i using plax jquery plugin, uses html-string: data-xrange="" data-yrange=""

here's fiddle of project: http://jsfiddle.net/4krdl/

i responsive, i've did. problem now, when window minimized, data-xrange="" data-yrange=""-string makes elements move much, because of window size.

i not great @ jquery here's question(s): possible adjust data-xrange="" data-yrange="" either css or jquery? , how done?

if element has id (or class - doesn't matter), jquery , change attribute:

$('#your-element')     .attr('data-xrange', 'new value')     .attr('data-yrange', 'new value');  // can dynamically redefine range of layer // running plaxify() on again. $('#your-element').plaxify(); 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -