Hello guys, I am new to posting here but have really learned a lot from reading these forums. I have a question in regards to some tabbed content script. I have it installed and working correctly on my site now although I would like to change something about it. Currently there are two include files which I placed in the header. In the body is the following code: <ul id="countrytabs" class="shadetabs"> <li><a href="#" rel="country1" class="selected">Item Description</a></li> <li><a href="#" rel="country2" class="selected">Party Planning Tips</a></li> </ul><div style="border:1px solid gray; width:480px; height:200px; margin-bottom: 1em; padding: 10px"> <div id="country1" class="tabcontent"> Tab content 1 here </div> <div id="country2" class="tabcontent"> Tab content 2 here </div> <br /> </div> <div id="country3" class="tabcontent"> Tab content 3 here<br />Tab content 3 here<br /> </div> <div id="country4" class="tabcontent"> Tab content 4 here<br />Tab content 4 here<br /> </div> </div> <script type="text/javascript"> var countries=new ddtabcontent("countrytabs") countries.setpersist(true) countries.setselectedClassTarget("link") //"link" or "linkparent" countries.init() </script> What I would like to do is use some type pf include statement in the body which would call all of the code above. My goal here is that instead of updating each individual item I could just update one file and every item that had the include statement would be updated on the fly. Is this possible? Thanks.
You could make use of the JavaScript 'document.write' function. However, if you're using this you need to make sure to escape necessary single or double quotes. I hope I understood what it is that you're wanting - if not, let me know and I'll try to help you further.