Toplam 3 Sayfadan 1. Sayfa 123 SonuncuSonuncu
Toplam 29 sonuçtan 1 ile 10 arasındakiler gösteriliyor.

Konu: siTeNiz İçİN JaVaScRiPT KoDlArı

  1. #1
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart siTeNiz İçİN JaVaScRiPT KoDlArı

    Status Bar'da Değişen Yazılar

    <script language="JavaScript">

    <!--
    // please keep these lines on when you copy the source
    // made by: HaLMaN www.hackturk.us
    var currentmsg = 0
    var MsgTime = 2000
    var MsgEndTime = 4000

    function initArray(n) {
    this.length = n;
    for (var i =1; i <= n; i++) {
    this[i] = ' '
    }
    }

    msg = new initArray(4)
    msg[0]="This is Message 1"
    msg[1]="Now it is Message 2"
    msg[2]="No, do not say I have to do 3 messages"
    msg[3]="Yeah, this message, 4, is the last"

    function msgrotator() {
    window.status = msg[currentmsg]

    if (currentmsg > msg.length - 1) {
    currentmsg = 0
    setTimeout("msgrotator()", MsgEndTime)
    }

    else {
    currentmsg = currentmsg + 1
    setTimeout("msgrotator()", MsgTime)
    }
    }

    msgrotator();
    //-->

    </script>

  2. #2
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Ziyaretçiyi Selamlama

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function GetCookie(name) {
    var arg=name+"=";
    var alen=arg.length;
    var clen=document.cookie.length;
    var i=0;
    while (i<clen) {
    var j=i+alen;
    if
    (document.cookie.substring(i,j)==arg)
    return "here";
    i=document.cookie.indexOf(" ",i)+1;
    if (i==0) break;
    }
    return null;
    }
    var visit=GetCookie("shant");
    if (visit==null){
    alert("Hoşgeldiniz...");
    var expire=new Date();
    expire=new
    Date(expire.getTime()+7776000000);
    document.cookie="shant=here; expires="+expire;
    }
    // -->
    </SCRIPT>

  3. #3
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Yönlendirme

    <SCRIPT LANGUAGE="JavaScript">

    //This Script is Copyright;HaLMaN© 2002
    //If you are going to use this code, you MUST leave these
    //lines of script UNEDITED!

    var shant="http://www.ahmetx.net"
    document.write('Please wait while you are forwarded to ' + shant)
    function forPage()
    {
    location.href=shant
    }
    setTimeout ("forPage()", 1000);

    </SCRIPT>

  4. #4
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Yönlendirme

    <SCRIPT LANGUAGE="JavaScript">

    //This Script is Copyright;HaLMaN© 2002
    //If you are going to use this code, you MUST leave these
    //lines of script UNEDITED!

    var shant="http://www.hackturk.us"
    document.write('Please wait while you are forwarded to ' + shant)
    function forPage()
    {
    location.href=shant
    }
    setTimeout ("forPage()", 1000);

    </SCRIPT>

  5. #5
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Çözünürlük Ayarı

    <script language="JavaScript">

    //This Script is Copyright HaLMaN© 2000
    //If you are going to use this code, you MUST leave these
    //lines of script UNEDITED!

    if ((screen.width == 1024) && (screen.height == 768))
    {
    alert('Your resolution is set at the recommended size that is required for this page to be viewed correctly.')
    }
    else
    if ((screen.width == 800) && (screen.height == 600))
    {
    alert('Ekran çözünürlüğün 1024x768 olmalıydı!')
    }
    else
    if ((screen.width == 640) && (screen.height == 480))
    {
    alert('Your resolution is too low to view this page correctly, please change it!')
    }

    document.write('Ekran çözünürlüğün - ' + screen.width + ' x ' + screen.height)

    </script>

  6. #6
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Buton Şeklinde Saat

    <SCRIPT LANGUAGE="JavaScript">






    <!-- Begin
    day = new Date();
    miVisit = day.getTime();
    function clock() {
    dayTwo = new Date();
    hrNow = dayTwo.getHours();
    mnNow = dayTwo.getMinutes();
    scNow = dayTwo.getSeconds();
    miNow = dayTwo.getTime();
    if (hrNow == 0) {
    hour = 12;
    ap = " AM";
    } else if(hrNow <= 11) {
    ap = " AM";
    hour = hrNow;
    } else if(hrNow == 12) {
    ap = " PM";
    hour = 12;
    } else if (hrNow >= 13) {
    hour = (hrNow - 12);
    ap = " PM";
    }
    if (hrNow >= 13) {
    hour = hrNow - 12;
    }
    if (mnNow <= 9) {
    min = "0" + mnNow;
    }
    else (min = mnNow)
    if (scNow <= 9) {
    secs = "0" + scNow;
    } else {
    secs = scNow;
    }
    time = hour + ":" + min + ":" + secs + ap;
    document.form.button.value = time;
    self.status = time;
    setTimeout('clock()', 1000);
    }
    function timeInfo() {
    milliSince = miNow;
    milliNow = miNow - miVisit;
    secsVisit = Math.round(milliNow / 1000);
    minsVisit = Math.round((milliNow / 1000) / 60);
    alert("There have been " + milliSince + " milliseconds since midnight, January 1, 1970. "
    + "You have spent " + milliNow + " of those milliseconds on this page. "
    + ".... About " + minsVisit + " minutes, and "
    + secsVisit + " seconds.");
    }
    document.write("<form name=\"form\">"
    + "<input type=button value=\"Click for info!\""
    + " name=button onClick=\"timeInfo()\"></form>");
    onError = null;
    clock();
    // End -->
    </SCRIPT>

  7. #7
    UZMAN ÇAVUŞ
    Üyelik tarihi
    Oct 2005
    Mesajlar
    669
    Forum Katkısı:
    0

    Standart siTeNiz İçİN JaVaScRiPT KoDlArı

    G&#252;zel &#231;alışma...

  8. #8
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Search Menüsü

    <SCRIPT>
    <!-- hide this script from non-JavaScript browsers

    // All code in this script is Copyright(C) 2002, HaLMaN, [email protected]
    // For documentation and more info, see: http://www.cs.cmu.edu/~jab/snark/
    // This is SNARK Version 1.0, 18 May 1996

    var MAX_ENGINES = 30;
    var SNARK_STRING = "hunting+the+snark";

    function MakeArray(n) {
    for (var i = 1; i <= n; i++) {
    this[i] = 0;
    }
    this.maxlen = n;
    this.len = 0;
    return this;
    }

    var engs = new MakeArray(MAX_ENGINES);

    function find_substring(needle, haystack) {
    var i, needlen = needle.length, haylen = haystack.length;
    for (i=0; i<=haylen-needlen; i++) {
    if (needle == haystack.substring(i,i+needlen))
    return i;
    }
    return false;
    }

    function Engine(name, opts, home, search) {
    var snark = find_substring(SNARK_STRING, search);
    this.name = name;
    this.opts = opts;
    this.home = home;
    this.pre_snark = search.substring(0,snark);
    this.post_snark= search.substring(snark+SNARK_STRING.length, search.length);
    }

    function Add(name, opts, home, search) {
    engs.len++;
    if (engs.len <= engs.maxlen) {
    engs[engs.len] = new Engine(name, opts, home, search)
    }
    else {
    alert("Better increase MAX_ENGINES: " + engs.len + ">" + engs.maxlen)
    }
    }

    // ADD YOUR OWN SEARCH ENGINES BELOW. (See http://www.cs.cmu.edu/~jab/snark/ )


    Add("Netnews: AltaVista", "",
    "http://altavista.digital.com/",
    "http://altavista.digital.com/cgi-bin...ing+the+snark" );

    Add("Shareware/Windows", "",
    "http://vsl.cnet.com/",
    "http://vsl.cnet.com/cgi-bin/vsl-mast...e=++&hits=200" );

    Add("Shareware/Unix", "",
    "http://vsl.cnet.com/",
    "http://vsl.cnet.com/cgi-bin/vsl-mast...e=++&hits=200" );

    Add("the Web: AltaVista", "SELECTED",
    "http://altavista.digital.com/",
    "http://altavista.digital.com/cgi-bin...ing+the+snark" );

    Add("the Web: Lycos", "",
    "http://www.lycos.com/",
    "http://twelve.srv.lycos.com/cgi-bin/...ing+the+snark" );

    Add("the Web: Yahoo!", "",
    "http://www.yahoo.com/",
    "http://search.yahoo.com/bin/search?p=hunting+the+snark" );

    Add("Weather (City, ST)", "",
    "http://www.nnic.noaa.gov/cgi-bin/page?pg=netcast",
    "http://www.nnic.noaa.gov/cgi-bin/net...&match=strong");


    // ADD YOUR OWN SEARCH ENGINES ABOVE. (See http://www.cs.cmu.edu/~jab/snark/ )

    function HandleForm(form) {
    form.submit(); // This fixes a mysterious Netscape bug. Without this line,
    // you can't use <enter> to start the search the first time.
    var i, oldq=form.query.value, newq="";
    for (i=0; i[list=1]<FORM OnSubmit="HandleForm(this); return false">');
    document.writeln('Search <SELECT name="service">');
    for (i=1; i <= engs.len; i++) {
    document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name);
    }
    document.writeln('</SELECT> for <INPUT size=26 name="query">');
    document.writeln('<input type=submit value=" GO!">');
    document.writeln('</FORM> </CENTER>');
    }

    DisplayForm();

    // done hiding from old browsers -->

    </SCRIPT>

  9. #9
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart İsteğe Göre Background

    <script language="JavaScript">
    <!--
    // please keep these lines on when you copy the source
    // made by: HaLMaN- http://www.hackturk.us

    function backbs(clr) {
    document.bgColor = clr
    }

    //-->
    </script>
    <form>
    <input type="button" value="**ua" onclick="backbs('**ua')">
    <input type="button" value="Yellow" onclick="backbs('yellow')">
    <input type="button" value="Khaki" onclicke="backbs('khaki')">
    <input type="button" value="White" onclick="backbs('white')">
    <input type="button" value="Gray" onclick="backbs('gray')">
    </form>

  10. #10
    ONBAŞI
    Üyelik tarihi
    Feb 2006
    Mesajlar
    111
    Forum Katkısı:
    0

    Standart Sağ Tuş Kilidi

    <script language="Javascript1.2">
    <!--
    // please keep these lines on when you copy the source
    // made by: AHMET EKİNLER - http://www.ahmetx.net

    var mymessage = "Sağ Tuş Kullanmanız Engellenmiştir.(www.ahmetx.net)";

    function rtclickcheck(keyp){
    if (navigator.appName == "Netscape" && keyp.which == 3) {
    alert(mymessage);
    return false;
    }

    if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
    alert(mymessage);
    return false;
    }
    }

    document.onmousedown = rtclickcheck
    //-->
    </script>

Toplam 3 Sayfadan 1. Sayfa 123 SonuncuSonuncu

Konu Bilgisi

Users Browsing this Thread

Şu anda 1 üyemiz bu konuya göz atıyor. (0 kayıtlı üye ve 1 misafir.)

Bu Konuyu Paylaşın !

Bu Konuyu Paylaşın !

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  
Garantili SEO - Moradam