Off Topic - What You Get For Subscrever »IYWT título>
Bb2_addLoadEvent função (função) (
Var oldonload = window.onload;
Se (typeof window.onload! = 'Função') (
Window.onload = função;
) Mais (
Window.onload = função () (
Oldonload ();
Fun ();
)
)
)
Bb2_addLoadEvent (função () (
Por (i = 0; Eu Se (document.forms [eu]. Método == "post") (
Var myElement = document.createElement ( 'entrada');
MyElement.setAttribute ( 'tipo', 'oculto');
MyElement.name = 'bb2_screener_';
MyElement.value 70.86.208.194 ='1192716451 ';
Document.forms [eu]. AppendChild (myElement);
)
)
));
/ / --> O script>
Script> o script>
Script>
Script>
Var txID'65cb058bdc8fe8363cedd154ec6b337f = ';
Função customContactEmail () (
Var errMsg = "";
Var campo = document.getElementById ( 'field_1');
Se (field.value == nulo | | field.value =='') (
ErrMsg + = "\ nO Nome";
)
Var campo = document.getElementById ( 'field_2');
Se (field.value == nulo | | field.value =='') (
ErrMsg + = "\ nO e - mail";
)
Var campo = document.getElementById ( 'field_4');
Se (field.value == nulo | | field.value =='') (
ErrMsg + = "\ nO Message";
)
Se (errMsg == "") (
Var URL = 'http://freetraffictip.com/wp-content/plugins/custom-contact/custom-contact-email.php';
Var parms = novo Array ();
Parms [0] = novo Array ( 'rane_tx_id', txID);
Parms [1] = novo Array ( 'field_1', document.getElementById ( 'field_1'). Valor);
Parms [2] = novo Array ( 'field_2', document.getElementById ( 'field_2'). Valor);
Parms [3] = novo Array ( 'field_3', document.getElementById ( 'field_3'). Valor);
Parms [4] = novo Array ( 'field_4', document.getElementById ( 'field_4'). Valor);
AJAXPost (URL, parms, handleContactEmail);
) Mais (
Alerta ( "A Campo obrigatório está ausente:" + errMsg);
Retorne falso;
)
)
Função handleContactEmail (código, mensagem, dados) (
Se (código == 3) (
Location.href = rane_get_data_string (dados);
) Mais (
/ / Alerta (mensagem);
Se (código == 0) (
TxID = rane_get_data_string (dados);
Document.getElementById ( 'custom_contact_form'). InnerHTML = '' + mensagem + " h2> ';
/ / Document.getElementById ( 'field_1'). Valor ='';
/ / Document.getElementById ( 'field_2'). Valor ='';
/ / Document.getElementById ( 'field_3'). Valor ='';
/ / Document.getElementById ( 'field_4'). Valor ='';
)
)
)
Script>