Admin DueLLoYöneticisi
Mesaj Sayısı : 928 Doğum tarihi : 06/07/90 Yaşı : 34 Nerden : Antalya İş/Hobiler : Webtasarım - Öğrenci Lakap : Site sahibi Rep Puanı : 735008
| Konu: Dual Function Button (ing) Cuma Ara. 04, 2009 7:52 pm | |
| - Kod:
-
<script type="text/javascript"> /* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: Mr J | http://www.huntingground.net/ */ var i=0
function dualButt(){ i++ if (i==1){ one() document.forms[0].elements[0].value="One" }
if (i==2){ two() document.forms[0].elements[0].value="Two" i=0 } }
function one(){ alert('This is would be the first function') }
function two(){ alert('This is would be the second function') } </script>
<form> <input type="button" value="One" onClick="dualButt()"> </form>
| |
|