Need a little help with a bit of jQuery. Im a bit of a noob jQuery wise.
I got my template_dir in a var:
$('#someID').click(function() {
var templateDir = '<?php bloginfo("template_directory") ?>';
if(autoStart) {
$(this).html('<img src=" 'TEMPLATEDIR HERE' /images/pauze-play.png" />');
} else {
$(this).html('<img src=" 'TEMPLATEDIR HERE' /images/pauze-play.png" />');
}
autoStart = !autoStart;
$('#mainSlider.royalSlider').royalSlider('toggleAutoPlay');
});
I did some stackoverflow searches and tried to figure it out but what I do it ain't working due lacking skills, though I feel it is rather simple.
Thought it was something like this:
<img src=" 'templateDir +' /images/pauze-play.png" />'
But no...
Thanks in advance
/Paul