• Hey

    I got this line inside a javascript file:
    $('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="' + settings.imageLoading + '"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="' + settings.imageBtnClose + '"></a></div></div></div></div>');

    (Wow that came out long)
    and i want to replace this part:
    <img src="' + settings.imageBtnClose + '">

    and somehow intergrate the template url inside it…

    i have created a var on the top of this JS file like this:
    var template_url = "<?php bloginfo('template_url'); ?>";

    and tried to insert the va into that line in many ways but i guess i just lack the know how when it comes to Js..

    can Someone advise me on the how plz?

  • The topic ‘Help with javascript and template url’ is closed to new replies.