function writeWimpyButton(theFile, wimpyWidth, wimpyHeight, wimpyConfigs, backgroundColor){
var defaultWidth = 17;
var defaultHeight = 17;
var defaultConfigs = "";
var baseURL = "";
var wimpySwf = "//www.irish-sayings.com/scripts/wimpy_button.swf";
var wimpyWidth = (wimpyWidth == null) ? defaultWidth : wimpyWidth;
var wimpyHeight = (wimpyHeight == null) ? defaultHeight : wimpyHeight;
var wimpyConfigs = (wimpyConfigs == null) ? defaultConfigs : wimpyConfigs;
var backgroundColor = (backgroundColor == null) ? false : backgroundColor;
var myid = Math.round((Math.random()*1000)+1);
var flashCode = "";
var newlineChar = "\n";
var backgroundColor = (backgroundColor == null) ? false : backgroundColor;
if(typeof(backgroundColor) == "string"){
var Astring = backgroundColor.split("");
if(Astring[0] == "#"){
Astring.shift();
backgroundColor = Astring.join("");
}
}
if(backgroundColor == false){
tptParam = ''+newlineChar;
tptEmbed = 'wmode="transparent"'+newlineChar;
} else {
tptParam = ''+newlineChar;
tptEmbed = 'bgcolor="#'+backgroundColor+'"';
}
flashCode += ' ';
document.write(flashCode);
}
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)