Codice HTML:
<!--
if (window.SymRealWinOpen) { window.open = SymRealWinOpen; }
if (window.NS_ActualOpen) { window.open = NS_ActualOpen; }
var mrw_url = "http://www.mrwebmaster.it";
var mrw_title = "Mr. WebMaster";
function Link_Add_Bookmark()
{
if (document.all)
{
document.write("<a href=\"Javascript:window.external.AddFavorite(mrw_url, mrw_title);\">Preferiti</a>");
}
else if (window.sidebar && window.sidebar.addPanel)
{
document.write("<a href=\"Javascript:window.sidebar.addPanel(mrw_title, mrw_url, '');\">Preferiti</a>");
}
else
{
document.write("<a href=\"Javascript:alert('Il tuo Browser non supporta questa funzione!');\">Preferiti</a>");
}
}
function Link_Set_Home()
{
if (document.all)
{
document.write("<a href=\"#\" OnClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('" + mrw_url + "');\">HomePage!</a>");
}
else if (window.sidebar && window.sidebar.addPanel)
{
document.write("<a href=\"Javascript:alert('Per settare come HomePage di Firefox:\\n\\nStrumenti > Opzioni > Generale\\n\\nPoi clicca "Usa Pagina Corrente"')\">HomePage!</a>");
}
else
{
document.write("<a href=\"Javascript:alert('Il tuo Browser non supporta questa funzione!')\">HomePage!</a>");
}
}
function open_popup(url,h,w)
{
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open(url,"","scrollbars,dependent,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function fla_preview(id,res)
{
if (res==1){
var w = 600;
var h = 400;
}
else if (res==2){
var w = 750;
var h = 540;
}
else if (res==3){
var w = 950;
var h = 680;
}
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("anteprima.asp?id="+id+"&res="+res,"","scrollbars=no,dependent,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function template_preview(id)
{
window.open("anteprima.asp?id=" + id)
}
function acquista_libro(id,isbn)
{
var w = Math.floor((screen.width/100)*90);
var h = Math.floor((screen.height/100)*80);
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("buy_redir.asp?id="+id+'&isbn='+isbn,"","scrollbars,dependent,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function download_font(file)
{
var w = 500;
var h = 400;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
var url = "/font/download.asp?file=" + file;
window.open(url,"","scrollbars=no,dependent,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function download_pic(file)
{
var w = 500;
var h = 400;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
var url = "/gif/download.asp?pic=" + file;
window.open(url,"","scrollbars=no,dependent,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function download_file(tb,id)
{
var w = 500;
var h = 400;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
var url = "/script/download.asp?id=" + id;
window.open("/ut_download.asp?tb=" + tb + "&id=" + id,"","scrollbars=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function stampa(tb,id,pag)
{
var w = 600;
var h = 400;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("/ut_stampa.asp?tb=" + tb + "&id=" + id + "&pag=" + pag,"","scrollbars,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function linka(tb,id)
{
var w = 500;
var h = 420;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("/ut_linka.asp?tb=" + tb + "&id=" + id,"","scrollbars=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function tellafriend(tb,id)
{
var w = 500;
var h = 350;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("/ut_invia.asp?tb=" + tb + "&id=" + id,"","scrollbars=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function broken_link(tb,id)
{
var w = 500;
var h = 350;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("/ut_brokenlink.asp?tb=" + tb + "&id=" + id,"","scrollbars=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function redirect_to(tb, id)
{
window.open("/ut_redirect.asp?tb=" + tb + "&id=" + id);
}
function aggiungi_preferiti()
{
if (document.all)
{
window.external.AddFavorite(document.URL, document.title);
}
else if (window.sidebar && window.sidebar.addPanel)
{
window.sidebar.addPanel(document.title, document.URL, '');
}
else
{
alert('Il tuo Browser non supporta questa funzione!');
}
}
//-->
Estrapola estrapola