62,046
社区成员
发帖
与我相关
我的任务
分享
<script language="JavaScript">
if (location.search.indexOf('clients') != -1) {
document.getElementById("tagOddcast").style.display = "none";
document.getElementById("oddcastLogo").getElementsByTagName('a')[0].href = "http://www.oddcast.com/";
}
if (location.search.indexOf('ttsapi') != -1) {
document.getElementById("flashcontainer").style.width = "1px";
document.getElementById("flashcontainer").style.height = "1px";
document.getElementById("flashcontainer").style.overflow = "hidden";
document.getElementById("tagOddcast").style.display = "none";
}
function DoAction(sText, sEffect){
debug("doaction() called");
if (sText.length < 1)
return;
speechCount = readCookie('speeches');
debug(speechCount);
/*if (speechCount == false)
{
debug('first time speech')
setCookie('speeches', 1, null, '/', 'oddcast.com');
previewTTSVoice(sText, sEffect);
}
else if (parseInt(speechCount) > speechLimit && !fromOddcast)
{
debug('passed speech limit')
location.replace('tts_example_limit.html?' + location.search.substring(1) + '&version=translation');
//location.replace('tts_example_limit.html' + location.search);
}
else
{
debug('not first time, but within limit')
speechCount = parseInt(speechCount);
speechCount++;
setCookie('speeches', speechCount, null, '/', 'oddcast.com');
*/
previewTTSVoice(sText, sEffect);
//}
}
function UpdateStatusImg(iStatus){
var oImg = document.getElementById('StatusImg');
if (iStatus == 1)
oImg.style.visibility = 'visible';
else if (iStatus == 0)
oImg.style.visibility = 'hidden';
}
function debug(sText){
//alert(sText);
}
</script>