PDA

View Full Version : Tab Content Script



zoliky
08-14-2007, 02:38 PM
1) Script Title:
Tab Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem:
Someone know how to embed the following code in xhtml strict ?:



<script type="text/javascript">
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
initializetabcontent("maintab")
</script>


BTW, Tab Content Script work with XHTML?

Thanks!

ddadmin
08-14-2007, 05:40 PM
Try wrapping a CDATA tag around the script for XHTML validity. See this article: http://www.dynamicdrive.com/style/blog/entry/updating-a-javascript-to-be-xhtml-compliant/