Before I answer your question, if you want the page external5.htm (and others like it) to work as a stand alone page, you would need to put the script, external script tag and style link for Tab Content Script on them but, this would only be desirable if they get indexed by search engines or have links to them elsewhere on your page or site. Doing this could cause problems but, if so, those could be worked out.
On to your question. Anything that you want run against the Tab Content Script content on the demo.htm or 'top page' of this scheme should be able to be included here:
Code:
<script type="text/javascript">
function pollC(id, load){
if (!load&&document.getElementById(id)){
document.getElementById(id).id='';
return;
}
else if (load&&document.getElementById(id)){
if (id=='regtab') {
initializetabcontent('regtab');
extra code for this page's Tab Content Script's HTML content
goes here,
use as many or as few lines as needed.
}
else if (id=='unique_1')
initializetabcontent('exttab1');
return;
}
else if (load&&!document.getElementById(id))
setTimeout("pollC('"+id+"', 'load')", 60);
}
</script>
and here:
Code:
<script type="text/javascript">
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
initializetabcontent("regtab")
extra code for this page's Tab Content Script's HTML content
goes here,
use as many or as few lines as needed.
</script>
Also, if you want extra code for any of the external pages, put that with their initialization test:
Code:
else if (id=='unique_1')
initializetabcontent('exttab1');
else if (id=='unique_2') {
initializetabcontent('exttab2');
code here will run against
exttab2's content once it
is loaded and initialized
}
else if (id=='unique_3')
initializetabcontent('exttab3');
Bookmarks