How do I (script )... Where can I find (Bilgi ve de bilgi) ... Why doesn't (İnternet ve virusler )...
  Pop up
Source code  


Bir linke ya da grafige basinca acilan yeni bir sayfa. Fotografcilik bölümünde oldugu gibi.
codu:


  <HTML>
<HEAD>
<TITLE>POP UP</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">
<SCRIPT LANGUAGE="JavaScript">

<!-- Stealth

function Popper (str)
{
var popOneUp = window.open(str,"popOneUp","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=1,width=600,height=600"); }

// End of stealth

//-->

</SCRIPT>

</HEAD>
<BODY>
<A HREF="javascript:Popper('popup_icinde_acilacak_olan_sayfa.html')" onMouseOver="window.status='Büyük Imaj'; return true;" onMouseOut="window.status=' '; return true;">Pop up</a>
</BODY>
</HTML>

Back to Top

 

  Pop up - 2
Source code  


Bu örnekte sadece maus ile bir grafik ya da linkin üstüne gidince yeni bir pencere aciliyor ve bu pencere mouse üzerinde durdugu sürece acik kaliyor.
Örnek icin buraya basiniz.

<HTML>
<HEAD>
<TITLE>POP UP</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">
<SCRIPT LANGUAGE="JavaScript">

<!--

   function fenster(anzeige){

         self.name = "beschreibung";

              info = window.open ('', 'fenster','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,WIDTH=300,HEIGHT=100')

             if(info != null){

                 if(info.opener == null){

                      info.opener = self;

                  }

              }  
              info.document.clear()

              info.document.open()
              info.document.write("<HTML><HEAD><TITLE>zoQue.coM!</TITLE>");
              info.document.write("<BODY BGCOLOR=#00000  TEXT=#fffff>")
              info.document.write("<CENTER><TABLE><TR><TD ALIGN=CENTER VALIGN=MIDDLE><FONT SIZE=2 FACE=TAHOMA><B>")
              info.document.write(anzeige)
              info.document.write("</B><BR></TD></TR></TABLE></BODY></HTML>")
              info.document.close()
              return true;
}

        function fensterzu(){
        info.close()
        return true;
}


// -->

</SCRIPT>

</HEAD>
<BODY>

<A HREF = "size_ait_link.html" onmouseover = "fenster('http://www.zoque.com')", onmouseout = "fensterzu()">touCH Me !</A>

</BODY>
</HTML>


Back to Top


  Pop up - 3
Source code  


Sayfaya girince otomatik olarak acilan yeni bir pencere (pop up).

HTML>
<HEAD>
<TITLE>Pop up - 3</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">

<SCRIPT LANGUAGE="JavaScript">
<!--
window.open('acilacak_olan_sayfa.html','Popup_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=300')
// -->
</SCRIPT>

</HEAD>
<BODY>
</BODY>
</HTML>
Back to Top

  Pop up - 4
Source code  


Sayfadan cikinca otomatik olarak acilan yeni bir pencere (pop up).
<HTML>
<HEAD>
<script>
<!--
window.onerror=null;
function domaincheck() {
checkw=window.open('acilacak_sayfa.htm', 'check', 'width=300,height=200,toolbar=0,directories=0,menubar=0,status=0,resizable=0')
}

// -->
</script>

</HEAD>
<BODY>
</BODY>
</HTML>


Back to Top


  Drop down menü
Source code  


Menüden sectiginiz linke yönlendiriliyorsunuz.
Örnek icin buraya basiniz.
<html>
<head>
<title>Pull Down Menü</title>
<script LANGUAGE="JavaScript">
 
<!--  
var urls = new Array("", "http://www.zoque.com", "http://www.zoque.com/frameset_muzik.html", "http://www.zoque.com/frameset_konukdfteri.html"); 

function wechsleSeite(form){  
    i = form.menu.selectedIndex;  
    if (i != 0) {  
        window.location.href = urls[i]; }  
}  
//--> 

</script> 
</head> 
<BODY TEXT="#000000" BGCOLOR="#ffffff">
<table border=0 CELLSPACING=0 CELLPADDING=0  WIDTH=90% HEIGHT=90% ALIGN="CENTER" VALIGN="MIDDLE">
<TR>
        <TD ALIGN="MIDDLE">
        <font face="Tahoma,Verdana,Arial" size="2" COLOR="#767676">
<B>Gitmek istediginiz sayfayi secin</B> 
<FORM> 
<SELECT NAME="menu" onChange="wechsleSeite(this.form)"> 
<OPTION>Linkler 
<OPTION>Homepage
<OPTION>Müzik 
<OPTION>Konuk defteri
</SELECT> 
</FORM> 
        </TD>
</TR>
</TABLE>
</body> 
</html> 

Back to Top


  Listing Mouseover
Source code  


Linklerin üzeine mouse ile gittiginiz zaman degisen yazilar.
Örnek icin buraya basiniz.
<html>
<head>
<title>Listing MouseOver</title>
<script language="JavaScript"> 
<!-- 
nachricht=new Array(); 
nachricht[0]="Yukaridaki linklere..."; 
nachricht[1]="Su an Menü 1'desiniz."; 
nachricht[2]="Menü 2'desiniz."; 
nachricht[3]="Su an Menü 3'desiniz."; 
//Unterscheidung IE und NC 
if (document.layers){//NC 
ausgabe = "document.text.document.write('<p style=\"font-family:tahoma; font-size:20px\">'+nachricht[zaehler]+'</p>')"; 
ende = "document.text.document.close()"; 
} 
if (document.all){//IE 
ausgabe = "text.innerText=nachricht[zaehler]"; 
ende = ""; 
} 
function wechseln(zaehler){ 
eval(ausgabe); 
eval(ende); 
} 
// --></script>

</head> 
<body><font face="Tahoma,Verdana,Arial" SIZE=2 COLOR="#727272">
<a href="#" onmouseover="wechseln(1)" onmouseout="wechseln(0)"><p>Menü 1</a>
<a href="#" onmouseover="wechseln(2)" onmouseout="wechseln(0)">Menü 2</a> 
<a href="#" onmouseover="wechseln(3)" onmouseout="wechseln(0)">Menü 3</a>
</FONT>
</p> 
<div id="text" style="position:absolute; left:30; top:100;
font-family:tahoma"> 
<p>Yukaridaki linklere...</p> 
</div>
</p> 
</body> 
</html> 

Back to Top


  Ticker
Source code  


Birbiri arkasi degisen yazilar.
Örnek icin buraya basiniz.
<html>
<head>
<title>Ticker 1</title>
<script language="javascript">
<!--

/*
    Titel: DHTML Ticker
    Autor: Christoph Bergmann
    email: cb@acc.de

    Copyright (c) Milch und Zucker - c. Bergmann und j. Gamperl, 1998. 
    All rights reserved. Alle Rechte vorbehalten. URL: http://dhtml.seite.net

    Dieser Code darf für nicht-kommerzielle  sowie kommerzielle Zwecke frei
    genutzt und angepaßt werden, solange dies unentgeltlich erfolgt und
    dieser Vermerk bestehen bleibt. 
*/

var delay=20;
var nextm=0;

var msg=new Array
(
        'Müzik, mimarlik, sanat',
        'Fotografcilik, webmaster kaynaklari',
        'Az ama öz - less is more',
        'www.zoque.com'
);


function start_ticker()
{
        do_ticker(msg[0], 0, 1);
}

function do_ticker(text, pos, dir)
{
        var out='<font face="Tahoma,Verdana,Arial, Helvetica">[ <font color=#808080><font size=-1>'+text.substring(0, pos)+'</font></font> ]</font>';

        if(navigator.appName=="Netscape")
                with(document.ticker.document)
                {
                        open(); write(out); close();
                }
        else
                ticker.innerHTML=out;

        pos+=dir;

        if(pos>text.length)
                setTimeout('do_ticker("'+text+'",'+pos+','+(-dir)+')', delay*10);
        else
        {
                if(pos<0)
                {
                        if(++nextm>=msg.length)
                                nextm=0;
                        text=msg[nextm];
                        dir=-dir;
                }

                setTimeout('do_ticker("'+text+'",'+pos+','+dir+')', delay);
        }
}


// -->

</script>
<body bgcolor=ffffff onload="start_ticker()">
<div id="ticker" style="position: absolute; top: 10; left: 10;"></div>
</body>
</html>


Back to Top



  Tarih  How do I ... ?
Source code  


Günün tarihini yazan bir java skript.
Örnek icin buraya basiniz.
<html>
<head>
<title>Tarih</title>
</head>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
<table border=0 CELLSPACING=0 CELLPADDING=0 WIDTH=90% HEIGHT=90% ALIGN="CENTER" VALIGN="MIDDLE">
<TR>
<TD ALIGN="MIDDLE">
<font face="Tahoma,Verdana,Arial" size="2" COLOR="#767676">
<script language="JavaScript">
<!--

       var DayOfWeek = new Array('Pazar','Pazartesi','Sali','Carsamba','Persembe','Cuma','Cumartesi');
       var MonthName = new Array('Ocak','Subat','Mart','Nisan','Mayis','Haziran','Temmuz','Agustos','Eylül',
                          'Ekim','Kasim','Aralik');
       var theDate = new Date();

       document.write('<NOBR>' +
               theDate.getDate() + ' ' +
               MonthName[theDate.getMonth()] + ' ' +
			   (theDate.getYear() < 100 ? theDate.getYear() + 1900 : theDate.getYear()) + ', ' +
               DayOfWeek[theDate.getDay()] + 
			  '</NOBR>');
//-->
</script>

</FONT>
</TD>
</TR>
</TABLE>
</body>
</html>

Back to Top


  Yazi
Source code  


Yanip sönen bir yazi.
Örnek icin buraya basiniz.

<HTML>
<HEAD>
<title>Yanip sönen yazi</title>

<script language=javaScript>
<!-- 
var checkNN=(navigator.appName.indexOf("Netscape")!=-1);
var farben=new Array("FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","CCCCCC","CCCCCC","999999","666666","333333","333333","000000","000000","000000","000000","000000")
index=0,vor_rueck=1

function BrowserCheck(){
        var Browser=navigator.appVersion;
        BrowserVersion=Browser.substring(0,4);
        if(BrowserVersion>=4)
                blink();
}

function blink(){
        color=farben[index];
        /*buraya text geliyor*/
        text="<font color="+color+">www.zoque.com</font>"
        if(checkNN) {
                document.beispieltext.document.write(text);
                document.beispieltext.document.close();
        }
        else 
                beispieltext.innerHTML=text
        index+=vor_rueck;
        if (index==14) 
                vor_rueck-=2;
        if (index==0) 
                vor_rueck+=2;
        /*buradan frekanz hizini ayarliyorsuinuz. su an 0,01 saniye/renk*/
        setTimeout("blink()",10);
}
//-->
</script>

</HEAD>
<BODY>
<body onload="BrowserCheck()">
<div id="beispieltext" style="position:absolute; visibility:show; left:50px; top:50px; z-index:2"></div>
</body>
</BODY>
</HTML>

Back to Top


  Kayan sayfa
Source code  


Kendiliginden asagiya dogru kayan bir sayfa.
Örnek icin buraya basiniz.

<HTML>
<HEAD>
<TITLE>Asagiya dogru kayan sayfa</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">

<script Language="JavaScript">
                      <!--
                      function scrollit(){
                      for (I=1; I<2500; I++){
                      scroll(1,I) }
                      }
                      //-->
</script>

</HEAD>
<BODY TEXT="#000000" LINK="#2e2e2e" VLINK="#000000" ALINK="#000000" BGCOLOR="#ffffff">
<table border=0 CELLSPACING=0 CELLPADDING=0  WIDTH=90% HEIGHT=90% ALIGN="CENTER" VALIGN="MIDDLE">
<TR>
	<TD ALIGN="CENTER">
		<form><input type=button value="Buraya basiniz" onClick="scrollit()"></form>
	</TD>
</TR>
</TABLE>
</body>
</html>
Back to Top

  Bookmark
Source code  


Sayfaniza giren biri, bir klik ile sitenizi bookmarka aliyor. Bu skript ne yazik ki Internet Explorer 4.0 ve daha yukarisinda calisiyor.
Örnek icin buraya basiniz.
<HTML>
<HEAD>
<TITLE>Bookmark</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">
</HEAD>
<BODY TEXT="#000000" LINK="#2e2e2e" VLINK="#000000" ALINK="#000000" BGCOLOR="#ffffff">
<table border=0 CELLSPACING=0 CELLPADDING=0 WIDTH=90% HEIGHT=90% ALIGN="CENTER" VALIGN="MIDDLE">
<TR>
<TD ALIGN="CENTER">
	<A href=
                     "javascript:window.external.AddFavorite('http://www.millenniumekol.org',
                     'millenniumekol.org - less is more')">Sayfayi bookmark'a almak icin buraya basiniz.
	</A>
	
	</TD>
</TR>



Back to Top


  Baslangis sayfasi
Source code  


Sayfaniza giren biri, bir klik ile sitenizi baslangic sayfasi yapabiliyor. Bu skript ne yazik ki Internet Explorer 4.0 ve daha yukarisinda calisiyor.
Örnek icin buraya basiniz.

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">
</HEAD>
<BODY>
<table border=0 CELLSPACING=0 CELLPADDING=0 WIDTH=90% HEIGHT=90% ALIGN="CENTER" VALIGN="MIDDLE">
<TR>
<TD ALIGN="CENTER">

<a href="test.htm" class="chlnk"
onmouseover="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.millenniumekol.org');">Baslangic sayfasi</A>
	
</TD>
</TR>

Back to Top


  Plugin'e göre otomatik yönlendirme Where can I find ... ?
Source code  


Sitenize giren kisiler sahip olduklari plugin'lere göre farkli sayfalara yönlendiriliyorlar. Source code'da göreceginiz java skript "Shockwave Flash" plugin icin olan yönlerndirmeyi gösteriyor.

<HTML>
<HEAD>
<title>Plugin'e göre yönlendirme</title>

<script LANGUAGE="JavaScript">
                      <!-- Original: Mattias Jonsson (gt96mjn@blg.du.se) -->
                      <!-- Web Site: http://www.du.se/~gt96mjn -->
                      <!-- Begin
                      var plugin=navigator.plugins["Shockwave Flash"];
                      if (plugin) {
                      window.location=('http://www.plugin'le.calisan.sayfa.com');
                      }
                      else {
                      window.location=('http://www.plugin'siz.calisan.sayfa.com');
                      }
                      // End -->
</script>

</HEAD>
<BODY>

 
 
</BODY>
</HTML>


Back to Top



  Cözünürlüge göre yönlendirme
Source code  


Bu skript ise sitenize giren kisiler monitor cözünürlüklerine göre farkli sayfalara yönlendiriliyorlar.

<HTML>
<HEAD>

<script LANGUAGE="JavaScript">
                           <!-- Begin
                           function redirectPage() {
                           var url640x480 = "http://www.isim.com/640x480";
                           var url800x600 = "http://www.isim.com/800x600";
                           var url1024x768 ="http://www.isim.com/1024x768";
                           if ((screen.width == 640) && (screen.height == 480)) 
                           window.location.href= url640x480;
                           else if ((screen.width == 800) && (screen.height == 600))
                           window.location.href= url800x600;
                           else if ((screen.width == 1024) && (screen.height == 768))
                           window.location.href= url1024x768;
                           else window.location.href= url640x480;
                           }
                           // End -->
</script>

</HEAD>
<BODY>

 Back to Top



  Browser'ya göre yönlendirme
Source code  


Eger Netscape ve Explorer icin farkli sayfalar hazirladiysaniz, bu skript sitenize girenleri kullandiklari browser'lara göre yönlendirecek.

<HTML>
<HEAD>
</HEAD>
<BODY>
<table>
<TR>
<TD ALIGN="CENTER">
<script LANGUAGE="JavaScript">
                                           <!-- Begin
                                           var name = navigator.appName
                                           if (name == "Microsoft Internet Explorer")
                                           url=("msie.html");
                                           else
                                           url=("netscape.html")

                                           document.write('<A HREF="' + url + '"><center><font face=verdana><small>Brwser göre düzenlenmis sayfaya girmek icin...</A></small></center>');

                                           // End -->
</script>


</TD>
</TR>
</TABLE>
</body>
</html>


Back to Top