Bildiğiniz gibi kod içinde bulunan bölümlere istediğinizi yazmalısınız!
Sayfanin arkasinda akan rtesim...
<!-- Dit zet u in de head van de pagina-->
<script language="JavaScript">
<!-- Voor de leukste scripts gaat u naar...-->
<!-- Selcan's Javascript! The source for all your Javascript and PHP -->
<!-- http://www.selcan.net-->
<!--
function sup(size)
{
var maxsize=size;
var backgroundOffset=size;
clearInterval(ScrollTimer);
ScrollTimer=window.setInterval("scrollup()",64);
return;
}
function scrollup()
{
backgroundOffset-=1;
if (backgroundOffset<0) backgroundOffset=maxsize;
document.body.style.backgroundPosition="0 "+backgroundOffset;
}
function sdown(size)
{
var maxsize=size;
var backgroundOffset=0;
clearInterval(ScrollTimer);
ScrollTimer=window.setInterval("scrolldown()",64);
return;
}
function scrolldown()
{
backgroundOffset+=1;
if (backgroundOffset>maxsize) backgroundOffset=0;
document.body.style.backgroundPosition="0 "+backgroundOffset;
}
var maxsize=138;
var backgroundOffset=0;
var ScrollTimer=window.setInterval("scrollup()",64);
// -->
</script>
</head>
<!-- Dit zet u in de body van de pagina-->
<body background="resmi koyun buraya">
Javascript ile sadece rakam ve harf girilen textbox
Özel Karakter Kabul Etmeyen TextBox
<script>
function Kontrol( e) {
olay = document.all ? window.event : e;
tus = document.all ? olay.keyCode : olay.which;
if(tus==39||tus==34||tus==43||tus==44||tus==40||tu s==41||tus==39||tus==32||tus==46||tus==47||tus==60 ||tus==62||tus==63||tus==64||tus==126||tus==45||tu s==58||tus==59||tus==94||tus==38||tus==92||tus==91 ||tus==93||tus==123||tus==125||tus==61||tus==42) {
if(document.all) { olay.returnValue = false; } else { olay.preventDefault(); }
}
}
</script>
<input type="text" onkeypress="Kontrol(event)">
--------------------------------------------------------------------------------
Her defasinda farkli resim...
Her sayfaya girildiginde veya yenilendidiginde farkli bir resim
<SCRIPT LANGUAGE="JavaScript">
today=new Date();
jran=today.getTime();
function rnd() {
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
return jran/(im*1.0);
};
function rand(number) {
return Math.ceil(rnd()*number);
};
document.write("<CENTER>");
for(i=1;i<=1;i++) {
myNum=(rand(12));
if(myNum == 1) document.write("<img src='header1.jpg'>");
if(myNum == 2) document.write("<img src='header2.jpg'>");
if(myNum == 3) document.write("<img src='header3.jpg'>");
if(myNum == 4) document.write("<img src='header4.jpg'>");
if(myNum == 5) document.write("<img src='header1.jpg'>");
if(myNum == 6) document.write("<img src='header2.jpg'>");
if(myNum == 7) document.write("<img src='header3.jpg'>");
if(myNum == Karizmatik document.write("<img src='header4.jpg'>");
if(myNum == 9) document.write("<img src='header1.jpg'>");
if(myNum == 10) document.write("<img src='header2.jpg'>");
if(myNum == 11) document.write("<img src='header3.jpg'>");
if(myNum == 12) document.write("<img src='header4.jpg'>");
else {
document.write();
}
};
document.write("</CENTER>");
</SCRIPT>
--------------------------------------------------------------------------------
Analog saat
<body bgcolor="000000"> // arka alanı siyah yapar...
<script language="JavaScript">
fCol='#FFFFFF'; //face colour.
sCol='#80FFFF'; //seconds colour.
mCol='#80FF80'; //minutes colour.
hCol='#FF0000'; //hours colour.
Ybase=30; //Clock height.
Xbase=30; //Clock width.
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
NS4=(document.layers);
NS6=(document.getElementById&&!document.all);
IE4=(document.all);
Ypos=0;
Xpos=0;
dots=12;
Split=360/dots;
if (NS6){
for (i=1; i < dots+1; i++){
document.write('<div id="n6Digits'+i+'" style="position:absolute;top:0px;left:0px;width:30 px;height:30px;font-family:Arial;font-size:10px;color:#'+fCol+';text-align:center;padding-top:10px">'+i+'</div>');
}
for (i=0; i < M.length; i++){
document.write('<div id="Ny'+i+'" style="position:absolute;top:0px;left:0px;width:2p x;height:2px;font-size:2px;background:#'+mCol+'"></div>');
}
for (i=0; i < H.length; i++){
document.write('<div id="Nz'+i+'" style="position:absolute;top:0px;left:0px;width:2p x;height:2px;font-size:2px;background:#'+hCol+'"></div>');
}
for (i=0; i < S.length; i++){
document.write('<div id="Nx'+i+'" style="position:absolute;top:0px;left:0px;width:2p x;height:2px;font-size:2px;background:#'+sCol+'"></div>');
}
}
if (NS4){
dgts='1 2 3 4 5 6 7 8 9 10 11 12';
dgts=dgts.split(' ')
for (i=0; i < dots; i++){
document.write('<layer name=nsDigits'+i+' top=0 left=0 height=30 width=30><center><font face=Arial size=1 color='+fCol+'>'+dgts+'</font></center></layer>');
}
for (i=0; i < M.length; i++){
document.write('<layer name=ny'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>');
}
for (i=0; i < H.length; i++){
document.write('<layer name=nz'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>');
}
for (i=0; i < S.length; i++){
document.write('<layer name=nx'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>');
}
}
if (IE4){
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=1; i < dots+1; i++){
document.write('<div id="ieDigits" style="position:absolute;top:0px;left:0px;width:30 px;height:30px;font-family:Arial;font-size:10px;color:'+fCol+';text-align:center;padding-top:10px">'+i+'</div>');
}
document.write('</div></div>')
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++){
document.write('<div id=y style="position:absolute;width:2px;height:2px;font -size:2px;background:'+mCol+'"></div>');
}
document.write('</div></div>')
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++){
document.write('<div id=z style="position:absolute;width:2px;height:2px;font -size:2px;background:'+hCol+'"></div>');
}
document.write('</div></div>')
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++){
document.write('<div id=x style="position:absolute;width:2px;height:2px;font -size:2px;background:'+sCol+'"></div>');
}
document.write('</div></div>')
}
function clock(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.57 + Math.PI * hr/6 + Math.PI*parseInt(time.getMinutes())/360;
if (NS6){
Ypos=window.pageYOffset+window.innerHeight-Ybase-25;
Xpos=window.pageXOffset+window.innerWidth-Xbase-30;
for (i=1; i < dots+1; i++){
document.getElementById("n6Digits"+i).style.top=Yp os-15+Ybase*Math.sin(-1.56 +i *Split*Math.PI/180)
document.getElementById("n6Digits"+i).style.left=X pos-15+Xbase*Math.cos(-1.56 +i*Split*Math.PI/180)
}
for (i=0; i < S.length; i++){
document.getElementById("Nx"+i).style.top=Ypos+i*Y base/4.1*Math.sin(sec);
document.getElementById("Nx"+i).style.left=Xpos+i* Xbase/4.1*Math.cos(sec);
}
for (i=0; i < M.length; i++){
document.getElementById("Ny"+i).style.top=Ypos+i*Y base/4.1*Math.sin(min);
document.getElementById("Ny"+i).style.left=Xpos+i* Xbase/4.1*Math.cos(min);
}
for (i=0; i < H.length; i++){
document.getElementById("Nz"+i).style.top=Ypos+i*Y base/4.1*Math.sin(hrs);
document.getElementById("Nz"+i).style.left=Xpos+i* Xbase/4.1*Math.cos(hrs);
}
}
if (NS4){
Ypos=window.pageYOffset+window.innerHeight-Ybase-20;
Xpos=window.pageXOffset+window.innerWidth-Xbase-30;
for (i=0; i < dots; ++i){
document.layers["nsDigits"+i].top=Ypos-5+Ybase*Math.sin(-1.045 +i*Split*Math.PI/180)
document.layers["nsDigits"+i].left=Xpos-15+Xbase*Math.cos(-1.045 +i*Split*Math.PI/180)
}
for (i=0; i < S.length; i++){
document.layers["nx"+i].top=Ypos+i*Ybase/4.1*Math.sin(sec);
document.layers["nx"+i].left=Xpos+i*Xbase/4.1*Math.cos(sec);
}
for (i=0; i < M.length; i++){
document.layers["ny"+i].top=Ypos+i*Ybase/4.1*Math.sin(min);
document.layers["ny"+i].left=Xpos+i*Xbase/4.1*Math.cos(min);
}
for (i=0; i < H.length; i++){
document.layers["nz"+i].top=Ypos+i*Ybase/4.1*Math.sin(hrs);
document.layers["nz"+i].left=Xpos+i*Xbase/4.1*Math.cos(hrs);
}
}
if (IE4){
Ypos=document.body.scrollTop+window.document.body. clientHeight-Ybase-20;
Xpos=document.body.scrollLeft+window.document.body .clientWidth-Xbase-20;
for (i=0; i < dots; ++i){
ieDigits.style.pixelTop=Ypos-15+Ybase*Math.sin(-1.045 +i *Split*Math.PI/180)
ieDigits.style.pixelLeft=Xpos-15+Xbase*Math.cos(-1.045 +i *Split*Math.PI/180)
}
for (i=0; i < S.length; i++){
x.style.pixelTop =Ypos+i*Ybase/4.1*Math.sin(sec);
x.style.pixelLeft=Xpos+i*Xbase/4.1*Math.cos(sec);
}
for (i=0; i < M.length; i++){
y.style.pixelTop =Ypos+i*Ybase/4.1*Math.sin(min);
y.style.pixelLeft=Xpos+i*Xbase/4.1*Math.cos(min);
}
for (i=0; i < H.length; i++){
z.style.pixelTop =Ypos+i*Ybase/4.1*Math.sin(hrs);
z.style.pixelLeft=Xpos+i*Xbase/4.1*Math.cos(hrs);
}
}
setTimeout('clock()',100);
}
clock();
//-->
</script>
</body>
--------------------------------------------------------------------------------
Java script
Güzel bir resim scripti
<div CLASS="jsbrand" ID="jsbrand" STYLE="position:absolute;top:1;visibility:hide;"
zIndex="1000" ALIGN="right"><a HREF="http://www.java.hizmetleri.com" TARGET="_top">
<dd><img SRC="buraya ad.jpg" ALT=" Bilen Java Dünyasi" BORDER="0" width="88" height="31"></a>
</dd>
</div><script language="Javascript1.2">
<!--
var window_says = "www.java.hizmetleri.com";
var image_width = 88; //resiminizin genisligi
var image_height = 31; //resiminizin yüksekligi
var left_from_corner = 10;
var up_from_corner = 1;
var JH = 0;
var JW = 0;
var JX = 0;
var JY = 0;
var left = image_width + left_from_corner + 50; //resminizin sag köseden uzakligi
var up = image_height + up_from_corner + 15; // resminizin alt köseden uzakligi
if(navigator.appName == "Netscape") {
var wm = document.jsbrand;
}
if (navigator.appVersion.indexOf("MSIE") != -1){
var wm = document.all.jsbrand;
}
wm.onmouseover = msover
wm.onmouseout = msout
function watermark() {
if(navigator.appName == "Netscape") {
JH = window.innerHeight
JW = window.innerWidth
JX = window.pageXOffset
JY = window.pageYOffset
wm.visibility = "hide"
wm.top = (JH+JY-up)
wm.left = (JW+JX-left)
wm.visibility= "show"
}
if (navigator.appVersion.indexOf("MSIE") != -1){
if (navigator.appVersion.indexOf("Mac") == -1){
wm.style.display = "none";
JH = document.body.clientHeight;
JW = document.body.clientWidth;
JX = document.body.scrollLeft;
JY = document.body.scrollTop;
wm.style.top = (JH+JY-up);
wm.style.left =(JW+JX-left);
wm.style.display = "";
}
}
}
function msover(){
window.status = window_says
return true;
}
function msout(){
window.status = ""
return true;
}
setInterval("watermark()",100);
//-->
</script>
--------------------------------------------------------------------------------
Farkli bir pencere
Bu koda bayilacaksiniz %100 gerçek pencere
<DIV
STYLE="position:absolute;
left:150;
top:50;
width:300;
height:200;
clip:rect(0,324,224,0);"
>
<IFRAME
SRC="http://www.suskunlar.com"
WIDTH="300"
HEIGHT="200"
MARGINWIDTH=0
MARGINHEIGHT=0
FRAMEBORDER="NO"
SCROLLING="YES"
STYLE="border-width:12;
border-color:#445599;
border-style:solid;"
>
</IFRAME>
</DIV>
--------------------------------------------------------------------------------
Status barda sabit yazi
Status barda sabit bir yazi.. ayrica linklerin üzerine gelindiginde url görünmüyor..
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('images/OK3.gif')" bgproperties="fixed" bottommargin="0" topmargin="0" leftmargin="0" onMouseOver="status='www.suskunlar.com forumcular buraya...'; return true">
--------------------------------------------------------------------------------
Sitenizdeki resimlerin ziyaretçiler tarafindan kaydedilmesin
Sitenizdeki resimlerin ziyaretçiler tarafindan kaydedilmesini istemiyorsaniz bu kodu mutlaka kullanin
Sakın iki kere sağ klik yapma!...
<script language="JavaScript">
document.onmousedown=click
var times=0;
function click(){
if ((event.button==2) || (event.button==3)) {
alert("Bu sayfadaki bilgilerin kopyalanması yasaktır.Lütfen ikinci kez denemeyin.Yoksa biz sorumlu değiliz..Kötü birşey değil ama isterseniz bir deneyin!...");
if (times>=1) { sarsinti(); }
times++;
}// if
} // click
function sarsinti(){
alert("Keşke Basmasaydın..Durdurabilmek için Ctrl+Alt+Delete'ye bas belki işe yarar!");
var i=0;
var ix=1;
do {
i+=ix;
window.moveTo(i,i);
if(i==10 || i==0){ix=-ix;}
}while(i<12);
} //sarsinti
// -->
</script>
--------------------------------------------------------------------------------
Arka planda yildizlar
Bu kod ile veb sitenizin arka planinda yildizlar olacak ziyaretcileriniz uzay hissine kapilacak
<!--
<div style="position:relative"> - Rest of page - </div>
-->
<script language="JavaScript">
<!-- 3D Space Trip Script by kurt.grigg@virgin.net
Nstars=15;
Y=new Array();
X=new Array();
Sstars=new Array();
Dstars=new Array();
Brwsr=(document.layers)?1:0;
iH=(document.layers)?window.innerHeight:window.doc ument.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.docu ment.body.clientWidth;
offvis=(document.layers)?'hide':'hidden';
onvis=(document.layers)?'show':'visible';
for (i=0; i < Nstars;i++)
{
Y=iH/2;
X=iW/2;
Dstars=Math.round(Math.random()*360);
Sstars=Math.round(Math.random()*5+2);
}
if (Brwsr){
for (i=0; i < Nstars;i++)
document.write("<LAYER NAME='nstar"+i+"' TOP=0 LEFT=0 BGCOLOR=#aaaaaa WIDTH=1 HEIGHT=1></LAYER>");
}
else{
document.write('<div id="Outer" style="position:absolute"><div style="position:relative">');
for (i=0; i < Nstars;i++)
{document.write('<div id="istar" style="position:absolute;width:1px;height:1px;back ground:#aaaaaa;font-size:1px"></div>')}
document.write('</div></div>');
}
function fly(){
H=(document.layers)?window.innerHeight:window.docu ment.body.clientHeight;
W=(document.layers)?window.innerWidth:window.docum ent.body.clientWidth;
hscrll=(document.layers)?window.pageYOffset:docume nt.body.scrollTop;
wscrll=(document.layers)?window.pageXOffset:docume nt.body.scrollLeft;
for (i=0; i < Nstars;i++){
var layer=(document.layers)?document.layers["nstar"+i]:istar.style;
Sstars+=0.3;
//Dstars+=2; //Can spin using this!!
Y+=Math.round(Sstars*Math.sin(Dstars*Math.PI/180));
X+=Math.round(Sstars*Math.cos(Dstars*Math.PI/180));
if ((Y > H) || (Y < 0 ) || (X > W) || (X < 0))
{
Y=H/2;
X=W/2;
Dstars=Math.round(Math.random()*360);
Sstars=Math.round(Math.random()*5+2);
}
layer.top=Y+hscrll;
layer.left=X+wscrll;
if ((X < W/2-W/8) || (X > W/2+W/8) || (Y < H/2-H/8) || (Y > H/2+H/8))
{
if (Brwsr) {layer.bgColor='cccccc';layer.clip.height=2;layer. clip.width=2}
else {layer.background='cccccc';layer.height=2;layer.wi dth=2;layer.fontSize=2}
}
if ((X < W/2-W/6) || (X > W/2+W/6) || (Y < H/2-H/6) || (Y > H/2+H/6))
{
if (Brwsr) layer.bgColor='dddddd';
else layer.background='dddddd';
}
if ((X < W/2-W/2.5) || (X > W/2+W/2.5) || (Y < H/2-H/2.5) || (Y > H/2+H/2.5))
{
if (Brwsr){layer.bgColor='ffffff';layer.clip.height=3 ;layer.clip.width=3}
else {layer.background='ffffff';layer.height=3;layer.wi dth=3;layer.fontSize=3}
}
if ((X < (W/2)-10 ) || (X > W-(W/2)+10 ) || (Y < (H/2)-10) || (Y > H-(H/2)+10))
layer.visibility=onvis;
else{
layer.visibility=offvis;
if (Brwsr){layer.bgColor='aaaaaa';layer.clip.height=1 ;layer.clip.width=1}
else {layer.background='aaaaaa';layer.height=1;layer.wi dth=1;layer.fontSize=1}
}
}
setTimeout('fly()',10);
}
window.onload=fly;
//-->
</script>
--------------------------------------------------------------------------------
Hosgeldin mesaji
Ziyaretçileriniz sitenize girdiginde hosgeldin mesaji verir...
<script language="javascript">
<!--
alert("---Sitenizin Adı--- Hoşgeldiniz...")
window.status="---Sitenizin Adı--- Sayfama Hoşgeldiniz..."
-->
</script>
--------------------------------------------------------------------------------
Degisen link renkleri
Degisen link renkleri
<!-- ONE STEP TO INSTALL DANCING LINKS:
1. Add the first code in the HEAD of your HTML document -->
<!-- STEP ONE: Add the first code to the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this = initArray.arguments;
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"blue",
"green",
"purple",
"black",
"tan",
"red");
delay = .5; // seconds
link = 0;
vlink = 2;
function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance()",delay*1000);
}
linkDance();
// End -->
</script>
Saat & tarih kodları
<BODY onLoad="clock()">
<!--Aşağıdaki kodu sayfanızın Body'sine yerleştiriniz-->
<!-- Adjust the placement of the clock in the line below -->
<span id="pendule" style="position:absolute;left:300;top:20;"></span>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function clock() {
if (!document.layers && !document.all) return;
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm;
if (document.layers) {
document.layers.pendule.document.write(dispTime);
document.layers.pendule.document.close();
}
else
if (document.all)
pendule.innerHTML = dispTime;
setTimeout("clock()", 1000);
}
// End -->
</script>
--------------------------------------------------------------------------------
Buton saat
<!-- Aşağıdaki kodu sayfanızın Body'sine yerleştiriniz-->
<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>
--------------------------------------------------------------------------------
Tarih
<!-- Aşağıdaki kodu sayfanızın Body'sine yerleştiriniz-->
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="Ocak";
months[2]="Şubat";
months[3]="Mart";
months[4]="Nisan";
months[5]="Mayys";
months[6]="Haziran";
months[7]="Temmuz";
months[8]="A?ustos";
months[9]="Eylül";
months[10]="Ekim";
months[11]="Kasym";
months[12]="Aralyk";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End -->
</SCRIPT>
</CENTER>
--------------------------------------------------------------------------------
Dijital saat
<!--Üç adımda dijital saat::
1.Sayfanızın HEAD kısmına kopyalayın
2. onLoad event BODY tag
3. Sayfanızın BODY sine kopyalayın-->
<!-- Birinci adım:Sayfanızın HEAD kısmına kopyalayın-->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var dn;
c1 = new Image(); c1.src = "digital-clock/c1.gif";
c2 = new Image(); c2.src = "digital-clock/c2.gif";
c3 = new Image(); c3.src = "digital-clock/c3.gif";
c4 = new Image(); c4.src = "digital-clock/c4.gif";
c5 = new Image(); c5.src = "digital-clock/c5.gif";
c6 = new Image(); c6.src = "digital-clock/c6.gif";
c7 = new Image(); c7.src = "digital-clock/c7.gif";
c8 = new Image(); c8.src = "digital-clock/c8.gif";
c9 = new Image(); c9.src = "digital-clock/c9.gif";
c0 = new Image(); c0.src = "digital-clock/c0.gif";
cb = new Image(); cb.src = "digital-clock/cb.gif";
cam = new Image(); cam.src = "digital-clock/cam.gif";
cpm = new Image(); cpm.src = "digital-clock/cpm.gif";
function extract(h,m,s,type) {
if (!document.images) return;
if (h <= 9) {
document.images.a.src = cb.src;
document.images.b.src = eval("c"+h+".src");
}
else {
document.images.a.src = eval("c"+Math.floor(h/10)+".src");
document.images.b.src = eval("c"+(h%10)+".src");
}
if (m <= 9) {
document.images.d.src = c0.src;
document.images.e.src = eval("c"+m+".src");
}
else {
document.images.d.src = eval("c"+Math.floor(m/10)+".src");
document.images.e.src = eval("c"+(m%10)+".src");
}
if (s <= 9) {
document.g.src = c0.src;
document.images.h.src = eval("c"+s+".src");
}
else {
document.images.g.src = eval("c"+Math.floor(s/10)+".src");
document.images.h.src = eval("c"+(s%10)+".src");
}
if (dn == "AM") document.j.src = cam.src;
else document.images.j.src = cpm.src;
}
function show3() {
if (!document.images)
return;
var Digital = new Date();
var hours = Digital.getHours();
var minutes = Digital.getMinutes();
var seconds = Digital.getSeconds();
dn = "AM";
if ((hours >= 12) && (minutes >= 1) || (hours >= 13)) {
dn = "PM";
hours = hours-12;
}
if (hours == 0)
hours = 12;
extract(hours, minutes, seconds, dn);
setTimeout("show3()", 1000);
}
// End -->
</script>
</HEAD>
<!-- İkinci adım:Sayfanızın BODY tagleri arasına onload event ekleyin-->
<BODY onLoad="show3()" bgcolor="#000000">
<!-- Üçüncü adım:sayfanızın BODY'sine ekleyin-->
<img height=21 src="digital-clock/cb.gif" width=16 name=a>
<img height=21 src="digital-clock/cb.gif" width=16 name=b>
<img height=21 src="digital-clock/colon.gif" width=9 name=c>
<img height=21 src="digital-clock/cb.gif" width=16 name=d>
<img height=21 src="digital-clock/cb.gif" width=16 name=e>
<img height=21 src="digital-clock/colon.gif" width=9 name=f>
<img height=21 src="digital-clock/cb.gif" width=16 name=g>
<img height=21 src="digital-clock/cb.gif" width=16 name=h>
<img height=21 src="digital-clock/cam.gif" width=16 name=j>
Sitende farenin kordinatına bak
<script>
var weite=document.body.clientWidth-2;
var hoehe=document.body.clientHeight-2;
document.write('<div id="leftright" style="position:absolute;left:0; top:0; width:1px; height:1px; z-index:100; font-size:1px; width:expression(document.body.clientWidth-2)"><table cellpadding=0 cellspacing=0 border=0 width=100% height=1><tr><td bgcolor=red></td><tr></table> </div>');
document.write('<div id="topdown" style="position:absolute;left:0;top:0;width:1px;he ight:1px; z-index:100;height:expression(document.body.clientHe ight-2)"><table cellpadding=0 cellspacing=0 border=0 width=1 height=100%><tr><td bgcolor=red></td></tr></table></div>');
if (document.all){
leftright.style.width=document.body.clientWidth-2;
topdown.style.height=document.body.clientHeight-2;
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}
function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+e vent.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+e vent.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}
function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}
if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
</script>
Siyah Baloncuklar
<SCRIPT language=JavaScript>
Image0=new Image();
Image0.src="http://www.voteonline.de/pics/bubble.gif";
Amount=20;
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
rate=new Array();
grow=new Array();
Step=new Array();
Cstep=new Array();
nsSize=new Array();
ns=(document.layers)?1:0;
WinHeight=(document.layers)?window.innerHeight:win dow.document.body.clientHeight;
WinWidth=(document.layers)?window.innerWidth:windo w.document.body.clientWidth;
for (i=0; i < Amount; i++){
Ypos = Math.round(Math.random()*WinHeight);
Xpos = Math.round(Math.random()*WinWidth);
Speed= Math.random()*5+3;
Cstep=0;
Step=Math.random()*0.1+0.05;
grow=10;
nsSize=Math.random()*15+5;
rate=Math.random()*0.5+0.1;
}
if (ns){
for (i = 0; i < Amount; i++){
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize+" height="+nsSize+"></LAYER>");
}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:a lpha(opacity=100)">');
}
document.write('</div></div>');
}
function bubbles(){
var WinHeight=(document.layers)?window.innerHeight:win dow.document.body.clientHeight;
var WinWidth=(document.layers)?window.innerWidth:windo w.document.body.clientWidth;
var hscrll=(document.layers)?window.pageYOffset:docume nt.body.scrollTop;
var wscrll=(document.layers)?window.pageXOffset:docume nt.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed*Math.sin(270*Math.PI/180);
sx = Speed*Math.cos(Cstep);
Ypos+=sy;
Xpos+=sx;
if (Ypos < -50){
Ypos=WinHeight+50;
Xpos=Math.round(Math.random()*WinWidth);
Speed=Math.random()*4+6;
grow=5;
nsSize=Math.random()*15+5;
}
if (ns){
document.layers['sn'+i].left=Xpos+wscrll;
document.layers['sn'+i].top=Ypos+hscrll;
}
else{
si.style.pixelLeft=Xpos+wscrll;
si.style.pixelTop=Ypos+hscrll;
si.style.width=grow;
si.style.height=grow;
}
grow+=rate;
Cstep+=Step;
if (grow > 124) grow=25;
}
setTimeout('bubbles()',10);
}
bubbles();
//-->
</SCRIPT>
Matrix Stili
<script language="JavaScript">if (document.all){
Cols=6;
Cl=48;//Space's are included so real length is 48!
Cs=150;
Ts=13;
Tc='#008800';
Tc1='#00ff00';
MnS=20;
MxS=30;
I=Cs;
Sp=new Array();S=new Array();Y=new Array();
C=new Array();M=new Array();B=new Array();
RC=new Array();E=new Array();Tcc=new Array(0,1);
document.write("<div id='Container' style='position:absolute;top:0;left:-"+Cs+"'>");
document.write("<div style='position:relative'>");
for(i=0; i < Cols; i++){
S=I+=Cs;
document.write("<div id='A' style='position:absolute;top:0;font-family:Arial;font-size:"
+Ts+"px;left:"+S+";width:"+Ts+"px;height:0px;color :"+Tc+";visibili ty:hidden'></div>");
}
document.write("</div></div>");
for(j=0; j < Cols; j++){
RC[j]=1+Math.round(Math.random()*Cl);
Y[j]=0;
Sp[j]=Math.round(MnS+Math.random()*MxS);
for(i=0; i < RC[j]; i++){
B='';
C=Math.round(Math.random()*1)+' ';
M[j]=B[0]+=C;
}
}
function Cycle(){
Container.style.top=window.document.body.scrollTop ;
for (i=0; i < Cols; i++){
var r = Math.floor(Math.random()*Tcc.length);
E = '<font color='+Tc1+'>'+Tcc[r]+'</font>';
Y+=Sp;
if (Y > window.document.body.clientHeight){
for(i2=0; i2 < Cols; i2++){
RC[i2]=1+Math.round(Math.random()*Cl);
for(i3=0; i3 < RC[i2]; i3++){
B[i3]='';
C[i3]=Math.round(Math.random()*1)+' ';
C[Math.floor(Math.random()*i2)]=' '+' ';
M=B[0]+=C[i3];
Y=-Ts*M.length/1.5;
A.style.visibility='visible';
}
Sp=Math.round(MnS+Math.random()*MxS);
}
}
A.style.top=Y;
A.innerHTML=M+' '+E+' ';
}
setTimeout('Cycle()',20)
}
Cycle();
}</script>
Sitenizde ekrana çok güzel renkli toplar yagsın
<SCRIPT language=JavaScript>
if (document.all){
xL=5;xH=0;xW=0;xR=0;xE=0;xMY=0;xMX=0;xWd=0;xHd=0;
xF=new Array();xY=new Array();xX=new Array();xS=new Array();
xA=new Array();xB=new Array();ini=new Array();
cl=new Array('#fff000','#0000FF','#ff0000','#00ff00','#ff 00ff','#ffa500')
document.write('<div id="xouter" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < xL; i++){
document.write('<div id="xie" style="position:absolute;top:0;left:0;width:10px;h eight:10px;'
+'font-family:Courier New;font-size:50px;color:#ffffff">.</div>');}
document.write('</div></div>');
function Set(){
for (i=0; i < xL; i++){
xH=window.document.body.offsetHeight;
xW=window.document.body.offsetWidth;
xA=Math.round(Math.random()*xH);
xB=Math.round(Math.random()*xW);
xS=Math.random()*0.07+0.05;
xR=Math.round(Math.random()*3);
xE=Math.round(Math.random()*2500+50)
if (xR == 3) xB=-xE;
if (xR == 2) xB=xW+xE;
if (xR == 1) xA=-xE;
if (xR == 0) xA=xH;
xF=xW/14;}}
Set();
function Assign(){
xouter.style.top=document.body.scrollTop;
for (i=0; i < xL; i++){
xF-=xS*25;
if (xF < 4) xF=3;
xie.style.top =xY;
xie.style.left=xX;
xie.style.fontSize=xF;
xie.style.filter='glow(color='+ini+', strength='+xF/3+')';}}
function fly(){
var N=Math.floor(Math.random()*cl.length)
xMY=window.document.body.clientHeight/2;
xMX=window.document.body.clientWidth/2;
xWd=Math.round(Math.random()*40+5);
xHd=Math.round(Math.random()*30+5);
for (i=0; i < xL; i++){
xY=xA+=(xMY-xA)*(xS);
xX=xB+=(xMX-xB)*(xS);
if ((xX > xMX-xWd) && (xX < xMX+xWd) && (xY >
xMY-xHd) && (xY < xMY+xHd)){
xH=window.document.body.offsetHeight;
xW=window.document.body.offsetWidth;
xA=Math.round(Math.random()*xH);
xB=Math.round(Math.random()*xW);
xS=Math.random()*0.05+0.05;
xR=Math.round(Math.random()*3);
xE=Math.round(Math.random()*50+50)
if (xR == 3) xB=-xE;
if (xR == 2) xB=xW+xE;
if (xR == 1) xA=-xE;
if (xR == 0) xA=xH+xE;}
if ((xX < 0) || (xX > xW) || (xY < 0) || (xY > xH)) {
xF=xW/14; ini=cl[N]; }}
Assign();
setTimeout('fly()',10);}
fly();
}
</SCRIPT> |