You're basically on track, though the onClick part cannot be inserted in the <a> tag in this case, since as a tab the script already assigns an onClick event to it, overwriting what you've defined. You can however, just wrap the link inside another tag (or the other way around) such as a <span>, and add the onClick event there:
Code:
<a href="righttemp.htm" class="tablinks" rel="tabsect"><span onClick="javascript:loadjscssfile('content.css','css')">Promotions</span></a>
Another thing you can try is just to directly add "content.css" to your main page as an external CSS file. When the Ajax page is fetched, the browser will know to style it using what's defined in content.css, as that was added to the page from the get go:
Code:
<link rel="stylesheet" type="text/css" href="content.css" />
Bookmarks