Web Siteniz İçin Çok Yararlı JS Kodlar

'Asp Scriptler' forumunda aSENSE tarafından 13 Şubat 2018 tarihinde açılan konu

  1. aSENSE

    aSENSE Defacer

    Mesaj:
    76
    Alınan Beğeniler:
    35
    Uzmanlık Alanları:
    _
    Sitenize Alt Çizgi Ekleme ;

    Kod:
    <hr width="750" size="1" color="#ffffff">
    Sitenizde Geri Butonu(Bir Önceki Sayfaya Geri Dönme);
    Kod:
    <input type=button value="Geri" onClick="history.go(-1)">


    Scrollbar'ı Renklendirin;

    Kod:
    <STYLE TYPE="text/css"><!--
    BODY {
    scrollbar-arrow-color:blue;
    scrollbar-track-color:green;
    scrollbar-shadow-color:yellow;
    scrollbar-face-color:eek:range;
    scrollbar-highlight-color:violet;
    scrollbar-darkshadow-color:eek:range;
    scrollbar-3dlight-color:yellow;
    }
    //--></STYLE>



    Sitende Şuanda Online Olan Kişi Sayısı;

    Kod:
    <script src="http://fastonlineusers.com/online.php?d=www.siteadi.com"></script>

    Sağ Tuş Ve Kopyalama Yasağı;

    Kod:
    **********
    window.********.body.oncontextmenu = cncl;
    window.********.body.onselectstart = cncl;
    window.********.body.ondragstart = cncl;
    function cncl(){ if(window.event && window.event.returnValue)window.event.returnValue = false; return false; }
    </SCRIPT>

    Türkçe Olarak Sitende Günü Göster;

    Kod:
    <HEAD>
    <script language=JavaScript>
    <!--
    function showDate() {
    // Günler
    var weekday = new Array(7);
    weekday[1] = 'Pazar';
    weekday[2] = 'Pazartesi';
    weekday[3] = 'Sali';
    weekday[4] = 'Carsamba';
    weekday[5] = 'Persembe';
    weekday[6] = 'Cuma';
    weekday[7] = 'Cumartesi';
    // Aylar
    var month = new Array(12);
    month[1] = 'Ocak';
    month[2] = 'Subat';
    month[3] = 'Mart';
    month[4] = 'Nisan';
    month[5] = 'Mayis';
    month[6] = 'Haziran';
    month[7] = 'Temmuz';
    month[8] = 'Agustos';
    month[9] = 'Eylul';
    month[10] = 'Ekim';
    month[11] = 'Kasim';
    month[12] = 'Aralik';

    var today = new Date();
    yr_st = " 19";
    yr = today.getYear();
    if ( yr > 99 )
    {
    yr_st =" ";
    if ( yr < 2000 ) yr += 1900;
    }
    return today.getDate() + ' ' + month[today.getMonth()+1] + ' , ' +weekday[today.getDay()+1]+' , '
    +yr_st+ yr;
    }
    // -->
    </SCRIPT>
    </HEAD>
    Sitenizi Sık Kullanılanlara Ekleme;

    Kod:
    <script language=JavaScript>
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

    var url="http://www.sizinsiteniz.com";
    var title="Siteniz.Com";
    var bookmarkicon="favicon.ico"
    ********.write('<A HREF="javascript:window.ext');
    ********.write('ernal.AddFavorite(url,title);" ');
    ********.write('onMouseOver=" window.status=');
    ********.write("'Sitenizi favorilere ekleyin!'; return true ");
    ********.write('"onMouseOut=" window.status=');
    ********.write("' '; return true ");
    ********.write('"><font color="#000066" size="2">Favorilere ekleyin.</a>');
    }
    else {
    var msg = "Don't forget to bookmark us!";
    if(navigator.appName == "Netscape") msg += " (CTRL-D)";
    ********.write(msg);
    }

    // End -->
    </SCRIPT>
    Sitenizi Ana Sayfa Yapma;

    Kod:
    <A href="http://www.sizinsiteniz.com/"
    onClick="this.style.behavior='url(#default#homepage)';
    this.setHomePage('http://sizinsiteniz.com');"><FONT
    color=#000066 size=2>Giriş Sayfası Yap</A>
    Web Sitenizi Yönlendirin;

    Kod:
    <**** **********='*******' content='3;URL=http://www.siteniz.com'>

    Yıldızlar 4 Taraftan Gelsin ( Gayet Hoş );

    Kod:
    <head>
    <**** **********="Content-Type" content="text/html; charset=windows-1254">
    <title>z-mouse_animasyonu-1</title>

    <script language="JavaScript">
    <!-- Mouse attack Script by [email protected]
    var speed=20,divTop=0,divLeft=0,angle=0,ypos=0,xpos=0,amount=13;
    if (********.layers){
    for (i = 0; i < amount; i++)
    {********.write('<layer name=nsa'+i+' top=0 left=0 width='+i/3+' height='+i/3+' bgcolor=#ffffff></layer>');}
    window.captureEvents(Event.MOUSEMOVE);
    function nsMouse(evnt){
    xpos=evnt.pageX;ypos=evnt.pageY;
    }
    window.onMouseMove = nsMouse;
    }
    else if (********.all){
    ********.write('<div style="position:absolute;top:0px;left:0px">');
    ********.write('<div style="position:relative">');
    for (i = 0; i < amount; i++)
    {********.write('<div id=k style="position:absolute;top:0px;left:0px;width:'+i/3+';height:'+i/3+';background:#ffffff;font-size:'+i/3+'"></div>')}
    ********.write('</div></div>');
    function iMouse(){xpos=event.x;ypos=********.body.scrollTop+event.y}
    ********.onmousemove = iMouse;
    }
    function getAngle(){
    Y = ypos - divTop;X = xpos - divLeft;angle = Math.round(Math.atan2(Y,X) * 180/Math.PI);
    if (angle < 0)angle += 360;
    }
    function bomb(){
    if (********.layers){
    Yscroll=window.pageYOffset;
    ybase=Math.round(Math.random()*window.innerHeight);xbase=Math.round(Math.random()*window.innerWidth);
    yybase=window.innerHeight-10;xxbase=window.innerWidth-10;
    }
    else if (********.all){
    Yscroll=********.body.scrollTop;
    ybase=Math.round(Math.random()*window.********.body.offsetHeight);xbase=Math.round(Math.random()*window.********.body.offsetWidth);
    xxbase=window.********.body.offsetWidth-10;yybase=window.********.body.offsetHeight-10;
    }
    if ((xbase > 10 && xbase < xxbase) && (ybase > 10 && ybase < yybase))
    bomb();
    else
    {
    if ((divLeft > xpos-speed/1.5) && (divLeft < xpos+speed/1.5) && (divTop >= ypos-speed/1.5) && (divTop <= ypos+speed/1.5))
    {divTop=ybase+Yscroll;divLeft=xbase}
    y = Math.round(speed*Math.sin(angle*Math.PI/180));x = Math.round(speed*Math.cos(angle*Math.PI/180));
    divTop+=y;divLeft+=x;
    getAngle();
    T=setTimeout('bomb()',20);
    }
    }
    function Split(){
    Clrs=new Array('fff000','ffffff','ffa500')
    var ntscp=********.layers,msie=********.all;

    if (********.layers){
    for (i = 0; i < amount; i++)
    {
    if (i < amount-1)
    {ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left}
    else
    {ntscp['nsa'+i].top=divTop;ntscp['nsa'+i].left=divLeft}
    }
    }
    else if (********.all){
    for (i = 0; i < amount; i++)
    {
    if (i < amount-1)
    {msie.k.style.top=msie.k[i+1].style.top;msie.k.style.left=msie.k[i+1].style.left}
    else
    {msie.k.style.top=divTop;msie.k.style.left=divLeft}
    }
    }
    for (i=0; i < amount-1; i++)
    {
    for (n=0; n < Clrs.length; n++)
    {var x=Math.round(Math.random()*n)}
    if (********.layers){ntscp['nsa'+i].bgColor=Clrs[x]}
    else if (********.all){msie.k.style.background=Clrs[x]}
    }
    setTimeout("Split()",20);
    }
    function StArT(){bomb();Split()}
    window.onload=StArT;
    //-->
    </script></head>

    <body bgcolor="#000000" text="#FFFFFF">
    </body>

    </html>
     

Bu Sayfayı Paylaş

Share