how to make this script dynamic

Discussion in 'Programming' started by cryoffalcon, Apr 24, 2012.

  1. #1
    Hi,
    I am using this script

    <script type='text/javascript'>
        var defaultnoimage=&quot;http://1.bp.blogspot.com/_u4gySN2ZgqE/SosvnavWq0I/AAAAAAAAArk/yL95WlyTqr0/s400/noimage.png&quot;;
        var maxresults=14;
        var splittercolor=&quot;none&quot;;
        var relatedpoststitle=&quot;Related Results&quot;;
        </script>
    Code (markup):
    As you can see it has a variable that lets me give a name to the results, in this case I have used Related Results. This code is used once at the back and in that way it used by my every page. So e-g if I change it to More Results it will changed everywhere on all pages. I don't want it like this, I want to be able to give a different name to every page like on one it is like 'More Images Results' while on 2nd it is something else.
    you can see a demo here at this page http://bloghutsbeta.blogspot.com/2012/04/testing-slider.html
     
    cryoffalcon, Apr 24, 2012 IP