function CreateWidgetBlogger() { var site_name = "www.4food.it"; var tipo = "2"; var id_blogger = "1679091c5a880faf6fb5e6087eb1b2dc"; var url_image_prex = "http://"+ site_name +"/images/template/"; var html = ""; switch(tipo) { case "1": html += "Acquista su "+ site_name +""; break; case "2": html += "Acquista su "+ site_name +""; break; } html += ""; document.getElementById("wdgt_blggr_dscnt").innerHTML = html; } window.onload = CreateWidgetBlogger;