questo il codice da inserire nella pagina
Codice: Seleziona tutto
<script type="text/javascript"> var av_chat_lang = 'it'; </script>
<script type="text/javascript" src="http://nightassassin.altervista.org/chat.js"></script>
Codice: Seleziona tutto
document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
document.writeln("<html>");
document.writeln("<head>");
document.writeln("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=7\" />");
document.writeln("<title>chat</title>");
document.writeln("<style type=\"text/css\">");
document.writeln("#av-chat {width: 398px;height: 78px;border: 1px solid #e0e0e0; background-color: #F3F3F3;font-family: Verdana, Arial, Helvetica, sans-serif;}");
document.writeln("#av-chat form {margin: 0;text-align: center;padding: 10px 0;}");
document.writeln("#av-chat #btn-open {cursor: pointer;border: 0;height: 28px;width: 90px;padding: 3px 2px 6px 2px;background: url('http://im.altervista.org/cp/btn-chat.gif') no-repeat 0 0;font-size: 12px;font-weight: bold;text-align: center;color: white;font-family: Arial, sans-serif;margin: 0;}");
document.writeln("#av-chat #btn-open:hover {background-position: 0 -28px;}");
document.writeln("#av-chat #av-user {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;color: #333;padding: 5px 2px;border-top: 1px solid #7c7c7c;border-left: 1px solid #c3c3c3;border-right: 1px solid #c3c3c3;border-bottom: 1px solid #ddd;background: white url('http://im.altervista.org/cp/fieldbg.gif') repeat-x top;margin: 0;}");
document.writeln("p.av-info {font-size: 11px;margin:0;padding: 5px 10px;color: #333;text-align: center;}");
document.writeln("</style>");
document.writeln("</head>");
document.writeln("<body>");
document.writeln("<div id=\"av-chat\">");
document.writeln("<form action=\"http://chat.altervista.org/chat_settings.php\" method=\"post\" id=\"\" target='_blank' onsubmit='return openChat(this)'><input type=\"text\" name=\"user\" id=\"av-user\" value=\"nickname\" onfocus=\"this.value=''\" />");
document.writeln("<input type=\"hidden\" id=\"channel\" name=\"channel\" value=\"\">");
if(typeof(av_chat_lang) == "undefined") {
var av_chat_lang = "it";
}
document.writeln("<input type=\"hidden\" name=\"lang\" value=\""+ av_chat_lang +"\">");
document.writeln("<input type=\"submit\" value=\"chat\" id=\"btn-open\" /></form>");
document.writeln("<p class=\"av-info\">Powered by <a href=\"http://www.nightassassin.altervista.org\" title=\"Night Assassin\"><img alt=\"AlterVista\" src=\"http://nightassassin.altervista.org/favicon.ico\" width=\"80\" height=\"15\" border=\"0\" style=\"vertical-align: text-bottom;\" /></a>");
document.writeln("</p>");
document.writeln("</div>");
document.writeln("</body>");
document.writeln("</html>");
function openChat(form){
var av_u, i, s;
if (av_u = document.location.host.match(/([a-zA-Z0-9]+)\.altervista\.org$/)) av_u = av_u[1];
else if (av_u = document.location.host.match(/([a-zA-Z0-9-]+\.[a-zA-Z]+)$/)) av_u = av_u[1];
form.channel.value = av_u;
s = [];
for (i = 0; i < form.elements.length; i++) if (form.elements[i].name) s.push(form.elements[i].name+'='+form.elements[i].value);
window.open(form.action+'?'+s.join('&'), "chat_window","status=0,toolbar=0,location=0,menubar=0,resizable=1,width=720,height=640");
return false;
}
Qualcuno sa come si fa?
Qui ho la chat in sperimentale