Cerca nel forum:
Cerca


Autore Messaggio
Messaggio15/03/2009, alle 17:45 (UTC)    
Oggetto: [JavaScript] Accetare I Termini



Codice:
<script>

//"Accept terms" form submission- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}

</script> <br />
<br />
<form onSubmit="return defaultagree(this)" name="agreeform">
    <strong>Paso 1 &ordm;-<br />
    </strong>
<textarea>
Qui I Termini Da Accettare
</textarea>   
 <br />
    <input type="checkbox" onClick="agreesubmit(this)" name="agreecheck" /><strong>I </strong><strong>I agree to the above terms</strong><br />
    <a href="la web donde llevara el boton ">    <input type="submit" disabled="" value="Submit!" /> </a>
</form>
<script>
//warioteayuda.es.tl
</script>
<p align="center"><font size="-2" face="Arial">Free DHTML scripts provided by<br />
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>



fonte: www.dynamicdrive.com

-----------------------------------------------
copia primaria by warioteayuda
copia secondaria by Mondo-Web, Sloong And Hikiing
Topic Originale: http://es.tl/forum/viewtopic.php?t=24661
Fonte Secondaria: www.paginawebgratis.es
Traduzione Spagnolo-Italiano By: Mondo-Web, Sloong And Hikiing


L'ultima modifica di hikiing il 15.03.2009, 18:46, modificato 1 volta
Mostra prima i messaggi di:   


Powered by phpBB © 2001, 2005 phpBB Group
phpbb.it