![]() |
|
|
|
#1 (permalink) |
|
Administrator
![]() Üyelik tarihi: Nov 2004
Nerden: İstanbul
Mesajlar: 354
İtibar Gücü: 10
![]() |
Değişen Buton
Değişen Buton
Butonda belirtilen linkler sürekli değişiyor. <HEAD>..</HEAD> arasına eklenecek kod : <BASE TARGET="welcome"> <SCRIPT LANGUAGE="JavaScript"> var startTime =null; var timerID =null; var initial =new Date(); var pos =0; var menuItem =null; function initArray() { this.length = initArray.arguments.length for (var i = 0; i < this.length; i++) { this[i+1] = initArray.arguments[i] } } function parsemenuItem(data,num) { for(var i=0;i<data.length;i++) { if(data.substring(i,i+1)=="|") break; } if (num==0) return(data.substring(0,i)); else return(data.substring(i+1,data.length)); } function startTimer() { initial = new Date(); startTime=initial.getTime(); stopTimer(); menuItem = new initArray("Netscape|http://www.netscape.com", "Microsoft|http://www.microsoft.com", "BHS|http://www.bhs.com", "Yahoo|http://www.yahoo.com", "Excite|http://www.excite.com", "Hotbot|http://www.hotbot.com", "Online Solutions|http://www.onsol.com", "Email|mailto:info@onsol.com" ); showTimer(); } function stopTimer() { timerID=null; menuItem=null; } function showTimer() { pos= (pos == menuItem.length) ? 1 : pos + 1; document.forms[0].elements[0].value=parsemenuItem(menuItem[pos],0); timerID=window.setTimeout('showTimer()',1000); } function goToUrl() { this.location=parsemenuItem(menuItem[pos],1); return (false); } </SCRIPT> <BODY>..</BODY> arasına eklenecek kod : <FORM> <INPUT TYPE="button" VALUE=" NEREYE? " NAME="goTo" onClick="window.goToUrl()"> </FORM> NOT : <body> tagını <BODY onLoad="window.startTimer()"> olarak değiştirin.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ] | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
|
|
|
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
|
|
| Donanım forumu - oyun - gta - oyun hileleri - oyun - voip - eğlence - barbie oyunları |