Forum'da ara:
Ara


« Önceki başlık :: Sonraki başlık »  
Yazar Mesaj
Mesaj06.07.2007, 12:54 (UTC)    
Mesaj konusu: SİTENİZ İÇİN BUTON KODLARI

ALARMLI BUTON
Kod:
<CENTER>

<FORM>

<INPUT TYPE="button" VALUE="Buraya İstediğiniz Metni Yazabilirsiniz." onClick='alert("Burayada Yazın Ne Olcak Sanki , Bir hata oluştu bilgisayarınıza format atmak zorunda kaldık:))))")'>

</FORM>

</CENTER>
BUTON 1
Kod:
<SCRIPT LANGUAGE="JavaScript">

<!-- Original:  Premshree Pillai (premshree( at )hotmail.com ) -->
<!-- Begin
count=0;
var inv_button_flag=0;
if (navigator.appName=="Microsoft Internet Explorer" || (navigator.appName=="Netscape" && navigator.appVersion >= "5"))
{
document.write('<form name="qiksearch_ticker"><input type="button" name="qiksearch_ticker" onclick="goURL();" style="background:#FFFFFF; width:377; height:22; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background='#BDDCFF';return true" onmouseout="this.style.background='#FFFFFF';return true" onmousedown="this.style.background='#FFD543';return true"><input type="button" value="5" onclick="javascript:inv_button();inv_msg();inv_URL();" style="width:22; height:22; font-family:webdings; background:#FFFFFF; border-left-width:0; border-right-width:1px; border-top-width:1px; border-bottom-width:1px; border-color:#000000; cursor:hand" name="inv_but" title="Yukarı Çevirmek için Tıkla"></form>');
}
else
{
document.write('<form name="qiksearch_ticker"><input type="button" name="qiksearch_ticker" onclick="goURL();" width="349" border="0"><input type="button" width="50" value="up" onclick="javascript:inv_button();inv_msg();inv_URL();" name="inv_but"></form>');
}

var ticker_speed=1;
 
 // Ticker messages
 var ticker_msg = new Array(
     "www.javascriptbankasi.com.tr.tc sitesine hoşgeldiniz.",
     "Javascript Bankası programını",
     "Beğendiniz mi?",
     "Bize javascript göndermek için",
     "Sitemize Uğrayın" ); // No comma after last ticker msg

 // Ticker URLs
 var ticker_url = new Array(
     "http://www.javascriptbankasi.com.tr.tc",
     "http://www.javascriptbankasi.com.tr.tc",
     "http://www.javascriptbankasi.com.tr.tc",
     "http://www.javascriptbankasi.com.tr.tc",
     "http://www.javascriptbankasi.com.tr.tc" ); // No comma after last ticker url

function tick()
{
 if(count<ticker_msg.length)
 { 
  this.document.qiksearch_ticker.qiksearch_ticker.value=ticker_msg[count];
  count++;
  if(count==ticker_msg.length)
  {
   count=0;
  }
  setTimeout("tick();",ticker_speed*1000);
 }
}

function goURL()
{
 if(this.document.qiksearch_ticker.qiksearch_ticker.value==ticker_msg[ticker_msg.length-1])
 {
  location.href=ticker_url[ticker_msg.length-1];
 }
 else
 {
  location.href=ticker_url[count-1];
 }
}

function inv_button()
{
 if (navigator.appName=="Microsoft Internet Explorer" || (navigator.appName=="Netscape" && navigator.appVersion >= "5"))
 {
  if (inv_button_flag==0)
  {
   this.document.qiksearch_ticker.inv_but.value="6";
   this.document.qiksearch_ticker.inv_but.title="Aşşağı Çevirmek için Tıkla";
   inv_button_flag=1;
  }
  else
  {
   this.document.qiksearch_ticker.inv_but.value="5";
   this.document.qiksearch_ticker.inv_but.title="Yukarı Çevirmek için Tıkla";
   inv_button_flag=0;
  }
 }
 else
 {
  if (inv_button_flag==0)
  {
   this.document.qiksearch_ticker.inv_but.value="Down";
   inv_button_flag=1;
  }
  else
  {
   this.document.qiksearch_ticker.inv_but.value="Up";
   inv_button_flag=0;
  }
 }
}

function inv_msg()
{
 for(var i=0;i<Math.floor(ticker_msg.length/2);i++)
 {
  var temp=ticker_msg[i];
  ticker_msg[i]=ticker_msg[ticker_msg.length-1-i];
  ticker_msg[ticker_msg.length-1-i]=temp;
 }
}

function inv_URL()
{
 for(var i=0;i<Math.floor(ticker_msg.length/2);i++)
 {
  var temp=ticker_url[i];
  ticker_url[i]=ticker_url[ticker_msg.length-1-i];
  ticker_url[ticker_msg.length-1-i]=temp;
 }
}

tick();
//  End -->
</script>
BUTON 2
Kod:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Happy Smart -->
<!-- Begin
var message="   Javascript Bankası   ";//Put Your Message Here
function ButtonURL(){
window.location="test.html"
}
function scroll()
{
  message = message.substring(1,message.length) + message.substring(0,1);
  document.bs.bs.value = message;
  setTimeout("scroll()",140);
}
window.onload=scroll
document.write('<style type="text/css">')
document.write('.select{background: blue;border-color:"yellow";color:"white";font-family:Arial,Helvetica,Verdana;font-size:10pt;font-weight: bold;}')
document.write('</STYLE>')
document.write('<form name=bs><INPUT class="select" TYPE="button" NAME="bs" value="" onclick="ButtonURL()"></FORM>') //  End -->
</script>
GERİDÖN BUTONU
Kod:
<input onclick="history.back();" type="button" value="<<geri dön">
UZAYIP KISALAN BUTON
Kod:
<SCRIPT LANGUAGE="JavaScript">

<!--

var timerID = null

var timerRunning = false

var charNo = 0

var charMax = 0

var lineNo = 0

var lineMax = 2                                     // number of URL's you will use

var lineArr = new Array(lineMax)

var urlArr = new Array(lineMax)

lineArr[1] = "Geri Dön......."                 

urlArr[1] = "java2.htm"

lineArr[2] = "Ana Menü......."                 

urlArr[2] = "main.htm"

 

var lineText = lineArr[1]

 

function StartShow() {

                StopShow()

                ShowLine()

                timerRunning = true

}

 

function FillSpaces() {

                for (var i = 1; i <= lineWidth; i++) {

                               spaces += " "

}

}

 

function StopShow() {

                if (timerRunning) {

                               clearTimeout(timerID)

                               timerRunning = false

}

}

 

function ShowLine() {

                if (charNo == 0) { // Next line

                               if (lineNo < lineMax)               {

                                               lineNo++

}

                               else {

                                               lineNo = 1

}

                               lineText = lineArr[lineNo]

                               charMax = lineText.length

}

                if (charNo <= charMax) {  // Next char

                               document.formDisplay.buttonFace.value = lineText.substring(0, charNo)

                               charNo++

                               timerID = setTimeout("ShowLine()", 100)

}

                else {

                               charNo = 0

                               timerID = setTimeout("ShowLine()", 3000)

}

}

 

function GotoUrl(url)

{

                top.location.href = url

}

//-->

</SCRIPT>

 

<SCRIPT LANGUAGE="JavaScript">

<!--

document.write("<FORM NAME=\"formDisplay\">");

document.write("<INPUT TYPE=\"BUTTON\" NAME=\"buttonFace\" VALUE=\"&{lineText}\" SIZE=\"18\" onClick=\"GotoUrl(urlArr[lineNo])\">");

document.write("</FORM>");

StartShow();

//-->

</SCRIPT>

Mesaj01.09.2007, 01:42 (UTC)    
Mesaj konusu:

TESEKKÜRLER EMEGINE SAGLIK MURAT KARDES
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu