function showName(theName) {
$("h1#yourGeneratedName").fadeOut("slow",function() {
renderName(theName);
$("h1#yourGeneratedName").fadeIn("slow");
});
}
function renderName(theName) {
document.getElementById("yourGeneratedName").innerHTML=theName;
// Fat.fade_element("yourGeneratedName",60,600,"#FFFFFF","#000000","textcolor","");
}
function closeTags(){
document.getElementById('bgTrans').style.display='none'
document.getElementById('tagPrompt').style.display='none'
}
function tagThisName(nameToTag) {
// Fade in the transparentBG, then fade in the prompt
tagValues = prompt("Enter tags for '"+nameToTag+"', separated by commas.");
if (tagValues) {
doTag(tagValues, nameToTag)
}else{
}
}
function doTag(tagName,nameToTag) {
// Send data to get tagged...
if (tagName) $.getJSON("nameGeneratorHandler.php?tn="+nameToTag+"&t="+tagName+"&h=3494c6b9072735f2456da2ec7d602905", function(json) {
showTagResult(json[0].tagResult);
});
}
function showTagResult(tagResult) {
document.getElementById("yourGeneratedName").innerHTML=tagResult+ "