Giriş yap
En son konular
Similar topics
Forumlariniz icin degisik Kodlar [konu 1]
+130
CHieF
bugra5454
NiLLy Lee
İMRAN FM
FerDi
Sezen Delisi
KaN
Anka0613
Efastus
::PATRON::
fearles577
Chazy Chazz
terlan
TuaL
Safaceza51
AktiForum
WeLeT
Müc@hid
Muro
Emule
BomBaCi
i-r-f-a-n
bin903
Ahçı Süngerbob
Paradso
yoshy5555
serk@n
Carucci
-=[UFUK]=-
çiko
cYpeRz
lutfenyardim
saLih*aLcay
ozan72
Punk Princess
Bilgici92
Dr.Seytandiss
frokolar
humanely1
CyBeRaY
wandeLLas
CaspeR1994
walasiga
TA2FORUM
zuzu
ahmet-yunus
Adslook
RaFa-eL MenDeZ.ıIIı.
[ *Joe Jonas* ]
orjinalkiz
İmaginative
NurBahcesi
shekran
zeynep20
ѕ¢я
RuBi
muselmansuffe
madrox
muratwebdesıgner
Musa
adana01
cHndGn
YONCA_ÇINAR
_KaraDumaN_
_LoRd_
DeJaVu
hakkidegirmenci
e.prenses_138
djalper01
yoshy55
**ZeHiR**
EnginWeb
The_TokaT60
ertac97
DENiZEVi
admın-cemre
hakan52
hackermert
ebrarli
Kizil Kabus
Paradiz
By_MiCRoP
orhanizm2
terminator37
pırto
Y.u.G.a.F
DeRiN DaRBe
ouz
cemix22
linkin43
ouroboros
the_finishlife
elo
çağrıbaba
romaryu
bekir_fb
mervinho
infazcı_kafkef_61
Er-Ryan
ßeyazZ_meLeq
Gamze
djosse
sedaa
BERXUDAN
srmthfg
Alphonso
TeHLiXe
Rocq^PrenseSi's
hackerbaba
MyNq
ManiacTurk
PinxGirL
buyukcanlar
ismetdus
buz_mavisi
ustad
Rapci.Kız
kemik95
tam-90
LeganD
wanted35
Patron
MaSuM_GuDi
digitex
AdminTR
RaP BaBa
KrAl_1990
sedat5453
kalaf
shanex
134 posters
23 sayfadaki 34 sayfası
23 sayfadaki 34 sayfası • 1 ... 13 ... 22, 23, 24 ... 28 ... 34
Forumlariniz icin degisik Kodlar [konu 1]
Konunun ilk mesajı :
ZİYARETÇİ BİLGİ
ZİYARETÇİ BİLGİ
- Kod:
<center><script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=Ülke : <COUNTRY> <FLAG> İp Adresiniz Kayıt Edildi: <IP> Şehir : <CITY>"></script></center>
- Kod:
<!-- Start ip2location.com Link --> <IFRAME SRC="http://www.ip2location.com/ib1/" WIDTH="404" HEIGHT="86" MARGINWIDTH="1" SCROLLING="no" FRAMEBORDER="0"></IFRAME><!-- End ip2location.com Link -->
- Kod:
<!-- Start ip2location.com Link --><IFRAME SRC="http://www.ip2location.com/ib2/" WIDTH="204" HEIGHT="162" MARGINWIDTH="1" SCROLLING="no" FRAMEBORDER="0"></IFRAME><!-- End ip2location.com Link -->
- Kod:
<!-- Start BrowserObject.com Link --><IFRAME SRC="http://www.browserobject.com/ib1/" WIDTH="404" HEIGHT="86" MARGINWIDTH="1" SCROLLING="no" FRAMEBORDER="0"></IFRAME><!-- End BrowserObject.com Link -->
- Kod:
<center><img src="http://www.wieistmeineip.de/ip-address" alt="Bilgileriniz sistemimize kaydedilmektedir."></center>
En son shanexx tarafından Ptsi 12 Ocak 2009 - 11:42 tarihinde değiştirildi, toplamda 4 kere değiştirildi
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Mousenuzun etrafından cursorlarin sürekli dönüp durduğu başka bir animasyon.
Kod:
Kod:
- Kod:
<script language="JavaScript">
<!-- Updated Stars Script by kurt.grigg( at )virgin.net
var images='cursor.gif';//Put your image name here!!
var amount=8; //Number of images here!!
var yBase = 150;
var xBase = 200;
var step = .2;
var currStep = 0;
var Xpos = 5;
var Ypos = 5;
var i = 0;
var j = 0;
if (document.all)
{
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">')
document.write('<div id="c" style="position:relative">');
for (n=0; n < amount; n++)
document.write('<img src=" '+images+'" style="position:absolute;top:0px;left:0px">')
document.write('</div>')
document.write('</div>')
function MsieMouseFollow(){
Xpos = document.body.scrollLeft+event.x-5;
Ypos = document.body.scrollTop+event.y-5;
}
document.onmousemove = MsieMouseFollow;
}
else if (document.layers)
{
window.captureEvents(Event.MOUSEMOVE);
for (ns=0; ns < amount; ns++)
document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0><IMG SRC='"+images+"'></LAYER>");
function NsMouseFollow(evnt){
Xpos = evnt.pageX-5;
Ypos = evnt.pageY-5;
}
window.onMouseMove = NsMouseFollow;
}
function Swirl(){
if (document.all)
{
yBase = window.document.body.offsetHeight/4;
xBase = window.document.body.offsetWidth/4;
}
else if (document.layers)
{
yBase = window.innerHeight/4;
xBase = window.innerWidth/4;
}
if (document.all)
{
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase
*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);
ieDiv.all.c.all[i].style.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase
*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);
}
}
else if (document.layers)
{
for ( j = 0 ; j < ns ; j++ ) //7 is number of NS layers!
{
var temp="n"+j
document.layers[temp].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase
*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
document.layers[temp].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase
*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
}
}
currStep += step;
setTimeout("Swirl()", 10);
}
Swirl();
// -->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Mousenuzun etrafından cursorlarin sürekli dönüp durduğu başka bir animasyon.
Kod:
Kod:
- Kod:
<script language="JavaScript">
<!-- Pulse-Spin Script by kurt.grigg( at )virgin.net
image=new Image();
image.src='cursor.gif'; //Your image name here.
var speed;
var currStep = 0;
var Xpos=0;
var Ypos=0;
var Base=100;
var N=5;
var Split=360/N;
if (document.layers){
for (i=0; i < N; i++)
document.write('<LAYER NAME="nsstars'+i+'" TOP=-200 LEFT=0><IMG SRC="'+image.src+'"></LAYER>');
}
if (document.all){
document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');
for (i=0; i < N; i++)
document.write('<img src="'+image.src+'" id="iestars" style="position:absolute;top:0px;left:0px">');
document.write('</div></div>');
}
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
Ypos = (document.layers)?evnt.pageY:event.y;
Xpos = (document.layers)?evnt.pageX:event.x;
}
(document.layers)?window.onMouseMove=Mouse:document.onmousemove=
Mouse;
function PulseSpin(){
if (document.all) ie.style.top=document.body.scrollTop;
if (currStep < 0.0550) speed=0.001;
for (i=0; i < N; i++){
var L=(document.layers)?document.layers["nsstars"+i]:iestars[i].style;
L.top=Ypos+Base*Math.sin(currStep+i*Split*Math.PI/180)
*Math.sin((currStep)*150);
L.left=Xpos+Base*Math.cos(currStep+i*Split*Math.PI/180)
*Math.sin((currStep)*150);
if (currStep > 0.0540){
speed+=0.0003;
L.top=Ypos+Base*Math.sin(currStep+i*Split*Math.PI/180);
L.left=Xpos+Base*Math.cos(currStep+i*Split*Math.PI/180);
}
}
if (speed > 0.21){
speed=0.21;
Base-=8;
}
var W=(document.layers)?-window.innerWidth*2:-document.body.clientWidth*2;
if (Base < 0){
Base-=30;speed=0;
}
if (Base <= W){
currStep=0;
speed=0.001;
Base=100;
}
currStep+=speed;
setTimeout('PulseSpin()',10);
}
PulseSpin();
//-->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Mousenuzun etrafında yarasaların uçuşmasını ister misiniz?
Kod:
Kod:
- Kod:
<script language="JavaScript">
<!-- bats script by kurt.grigg( at )virgin.net
amount=7; //minimum must be 3 !!
function pRe(){
Img0=new Image();
Img0.src="bbat1.gif";
Img1=new Image();
Img1.src="bbat2.gif";
Img2=new Image();
Img2.src="bbat3.gif";
setTimeout('pRe()',3000)
}
brwsr=(document.layers)?1:0;
if (brwsr){
window.captureEvents(Event.MOUSEMOVE);
for (i=0; i < amount; i++)
document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><IMG SRC='bat1.gif' NAME='nsi'></LAYER>");
}
else{
document.write('<div id="ie" style="position:absolute;top:0;left:0"><div style="position:relative">');
for (i=0; i < amount; i++)
{document.write('<img name="msieBats" src="bat1.gif" style="position:absolute;top:-50;left:0">')}
document.write('</div></div>');
}
bats=new Array('bbat1.gif','bbat2.gif','bbat3.gif','bbat2.gif')
Xpos=0;
Ypos=-50;
yBase=0;
xBase=0;
step=0.5;
currStep=0;
a_count=0;
b_count=1;
c_count=2;
move=1;
if (brwsr){
function NsMouseFollow(evnt){
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = NsMouseFollow;
}
else{
function MsieMouseFollow(){
Xpos = event.x;
Ypos = event.y;
}
document.onmousemove = MsieMouseFollow;
}
function Swirl(){
if (!brwsr)ie.style.top=document.body.scrollTop;
yBase=(document.layers)?window.innerHeight/3
:window.document.body.offsetHeight/3;
xBase=(document.layers)?window.innerWidth/7
:window.document.body.offsetWidth/7;
for (i=0; i < amount; i++){
var layer=(document.layers)?document.layers["n"+i]:msieBats[i].style;
layer.top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/20)
layer.left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62)
}
currStep+=step;
}
function Animate(){
if (a_count == bats.length) a_count=0;
if (b_count == bats.length) b_count=0;
if (c_count == bats.length) c_count=0;
if (brwsr){
document.layers['n'+0].document.images['nsi'].src=bats[a_count];
document.layers['n'+1].document.images['nsi'].src=bats[b_count];
document.layers['n'+2].document.images['nsi'].src=bats[c_count];
}
else{
msieBats[0].src=bats[a_count];
msieBats[1].src=bats[b_count];
msieBats[2].src=bats[c_count];
}
if (amount > 2)
{
for (i=3; i < amount; i++)
{
if (brwsr)
document.layers['n'+i].document.images['nsi'].src=bats[b_count];
else
msieBats[i].src=bats[b_count];
}
}
a_count+=move;
b_count+=move;
c_count+=move;
Swirl();
setTimeout('Animate()',30)
}
//-->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Mouseunuzdan baloncuklar yükseliyor.
Kod:
Kod:
- Kod:
<script language="JavaScript">
<!-- Under Water Mouse Script by kurt.grigg( at )virgin.net
Image0=new Image();
Image0.src="whitebubble.gif";
Amount=20;
Ymouse=-50;
Xmouse=-50;
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:window.document.body.clientHeight;
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
Ymouse=(document.layers)?evnt.pageY-20:event.y-20;
Xmouse=(document.layers)?evnt.pageX:event.x;
}
(document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
for (i=0; i < Amount; i++){
Ypos[i]=Math.random()*WinHeight-Ymouse;
Xpos[i]=Xmouse;
Speed[i]=Math.random()*10+1;
Cstep[i]=0;
Step[i]=Math.random()*0.1+0.05;
grow[i]=4;
nsSize[i]=Math.random()*15+5;
rate[i]=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[i]+" height="+nsSize[i]+"></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:alpha(opacity=90)">');
}
document.write('</div></div>');
}
function MouseBubbles(){
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed[i]*Math.sin(270*Math.PI/180);
sx = Speed[i]*Math.cos(Cstep[i]*5);
Ypos[i]+=sy;
Xpos[i]+=sx;
if (Ypos[i] < -40){
Ypos[i]=Ymouse;
Xpos[i]=Xmouse;
Speed[i]= 6+Math.random()*3;
grow[i]=4;
nsSize[i]=Math.random()*15+5;
}
if (ns){
document.layers['sn'+i].left=Xpos[i]+wscrll;
document.layers['sn'+i].top=Ypos[i]+hscrll;
}
else{
si[i].style.pixelLeft=Xpos[i]+wscrll;
si[i].style.pixelTop=Ypos[i]+hscrll;
si[i].style.width=grow[i];
si[i].style.height=grow[i];
}
grow[i]+=rate[i];
Cstep[i]+=Step[i];
if (grow[i] > 24) grow[i]=25;
}
setTimeout('MouseBubbles()',10);
}
MouseBubbles();
//-->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Ziyaretçi sayfaya geldiğinde imlecine doğru bir bomba geliyor ve kaçamazsa o bomba patlıyor.
Kod:
Kod:
- Kod:
<Script language= Javascript>
<!-- Original: Diana Ugo (ugo76( at )libero.it) -->
<!-- Web Site: http://utenti.tripod.it/falcons -->
picFollow = new Image(); picFollow.src = "bomb.gif"; picExplosion = new Image(); picExplosion.src = "explode.gif"; document.onmousemove = getMousePosition; document.onmouseout = pauseBomb; document.write("<div id=\"diva\" style=\"position:absolute\">"); document.write("<img name=\"pic\"src=" + picFollow.src + "></div>"); var picX = 20; var picY = 100; var step = 10; var speed = 100; var tolerance = step/2 +1; var mouseX = 0; var mouseY = 0; var mouseOut = true; var followMouse = false; myInterval = setInterval('moveBomb()', speed); function pauseBomb() { mouseOut = true; } function getMousePosition(e) { mouseX = window.event.x + document.body.scrollLeft; mouseY = window.event.y + document.body.scrollTop; mouseOut = false; if (followMouse) { diva.style.left = mouseX - pic.width / 2; diva.style.top = mouseY - pic.height / 2;
}
}
function calcNewPos() {
if (mouseX == picX)
return;
arg = (mouseY-picY) / (mouseX-picX);
mult = 1;
if (mouseX - picX < 0)
mult = -1;
alpha = Math.atan(arg);
dx = mult * step * Math.cos(alpha);
dy = mult * step * Math.sin(alpha);
picX += dx;
picY += dy;
}
function collision() {
if ((Math.abs(picX-mouseX) < tolerance) && (Math.abs(picY-mouseY) < tolerance) && (!mouseOut)) return true; return false; } function hideAnimation() { diva.style.visibility = "hidden"; } function moveBomb() { calcNewPos(); window.status = "("+mouseX+","+mouseY+")"; diva.style.left = picX - pic.width / 2; diva.style.top = picY - pic.height / 2; if (collision()) { clearInterval(myInterval); pic.src = picExplosion.src; followMouse = true; setTimeout('hideAnimation()', 2000);
}
}
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Bu scipt ile sayfanızdaki bir resmin üzerine gelindiğinde mesaj çıkmasını sağlayabilirsiniz.
Kod:
Bu scipt ile sayfanızdaki bazı kelimelerin üzerine gelindiğinde mesaj çıkmasını sağlayabilirsiniz.
Kod:
Kod:
- Kod:
<a href="" onMouseOver="alert('BURAYA MESAJINIZI YAZIN');return true;">
<IMG SRC="BURAYA HAZIRLADIĞINIZ IMAGE DOSYANIZI YOLUNU YAZIN" border="0"></a>
Bu scipt ile sayfanızdaki bazı kelimelerin üzerine gelindiğinde mesaj çıkmasını sağlayabilirsiniz.
Kod:
- Kod:
<a href="" onMouseOver="alert('BURAYA MESAJINIZI YAZIN');return true;">
Ekranda mouse üzerine gelicek yazı </a>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Ziyaretçinizin mousenun peşi sıra istediğiniz mesajı görüntülemenize yarayan bir script.
Kod:
Kod:
- Kod:
<script language="JavaScript">
<!-- Ripple Text by kurt.grigg( at )virgin.net
msg='Javascript Bankası v1.0 Hazırlayan Serhat Sarıkaya';
font='Verdana,Arial';
size=2; // 1-7 only!
color='#ffffff';
speed=0.5;
//Alter nothing past here!!
ns=(document.layers);
ie=(document.all);
msg=msg.split('');
n=msg.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+color+">";
if (ns){
for (i=0; i < n; i++)
document.write('<layer name="nsmsg'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>');
}
if (ie){
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="iemsg" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+msg[i]+'</font></div>');
document.write('</div></div>');
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+20-(window.pageYOffset):event.y+20;
xmouse = (ns)?evnt.pageX+20:event.x+20;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
y=new Array();
x=new Array();
Y=new Array();
X=new Array();
for (i=0; i < n; i++){
y[i]=0;
x[i]=0;
Y[i]=0;
X[i]=0;
}
function assign(){
if (ie) outer.style.top=document.body.scrollTop;
for (i=0; i < n; i++){
var d=(ns)?document.layers['nsmsg'+i]:iemsg[i].style;
d.top=y[i]+scrll;
d.left=x[i]+(i*(a/2));
}
}
function ripple(){
scrll=(ns)?window.pageYOffset:0;
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (var i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
assign();
setTimeout('ripple()',10);
}
if (ns||ie)window.onload=ripple;
// -->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Mouseunuzu takip eden bir bandın içersinde mesajlarınızı verebileceğiniz bir script.
Kod:
Kod:
- Kod:
<script language="JavaScript1.2">
<!--
/*
Cursor scroller script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
//1) görüntülenecek mesajý yazýn
var scroller_msg='...BuRaYa iSTeDiGiNi Yaz...'
//2) mesajýn sayfa açýldýktan kaç saniye sonra görünmeye baþlayacaðýný yazýn (0=perpetual).
//Not: sayfaya çift klick'lendiðinde yazý kaybolacaktýr
var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px solid black;font-size:12px;background-color:red;visibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
//move cursor function for IE
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=document.body.scrollLeft+event.clientX+10
curscroll.style.top=document.body.scrollTop+event.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
//-->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 1]
saolda bak siteye ne oldu beyaz oldu arka plan profilde var link
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Arka Planda Uzay
- Kod:
<!-- THREE STEPS TO INSTALL ALIEN SPACECRAFT:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Brian Gosselin (bgaudiodr@aol.com) -->
<!-- Web Site: http://www.bgaudiodr.iwarp.com -->
<! >
<! >
<!-- Begin
var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
var _all = '';
var _style = '';
var wwidth, wheight;
var ydir = '++';
var xdir = '++';
var id1, id2, id3;
var x = 1;
var y = 1;
var x1, y1;
if(!isNS) {
_all='all.';
_style='.style';
}
function getwindowsize() {
clearTimeout(id1);
clearTimeout(id2);
clearTimeout(id3);
if (isNS) {
wwidth = window.innerWidth - 55;
wheight = window.innerHeight - 50;
} else {
wwidth = document.body.clientWidth - 55;
wheight = document.body.clientHeight - 50;
}
id3 = setTimeout('randomdir()', 20000);
animate();
}
function randomdir() {
if (Math.floor(Math.random()*2)) {
(Math.floor(Math.random()*2)) ? xdir='--': xdir='++';
} else {
(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';
}
id2 = setTimeout('randomdir()', 20000);
}
function animate() {
eval('x'+xdir);
eval('y'+ydir);
if (isNS) {
pic1.moveTo((x+pageXOffset),(y+pageYOffset))
} else {
pic1.pixelLeft = x+document.body.scrollLeft;
pic1.pixelTop = y+document.body.scrollTop;
}
if (isNS) {
if (pic1.top <= 5+pageYOffset) ydir = '++';
if (pic1.top >= wheight+pageYOffset) ydir = '--';
if (pic1.left >= wwidth+pageXOffset) xdir = '--';
if (pic1.left <= 5+pageXOffset) xdir = '++';
} else {
if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = '++';
if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = '--';
if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';
if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';
}
id1 = setTimeout('animate()', 30);
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Insert the event handlers into your BODY tag -->
<BODY OnLoad="getwindowsize()" OnResize="getwindowsize()" background="space.jpg">
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">
<img src="alien.gif" border="0">
</div>
<script language="javascript">
var pic1=eval('document.'+_all+'pic1'+_style);
</script>
<!-- Script Size: 2.62 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Arka Planda Astronot
- Kod:
<!-- TWO STEPS TO INSTALL ASTRONAUT:
1. Add the onLoad event handler into the BODY tag
2. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Insert the onLoad event handler into your BODY tag -->
<BODY bgcolor="black" onLoad="space()">
<!-- STEP TWO: Paste this code into the BODY of your HTML document -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Viswanathan Manohar (manohar_v@yahoo.com) -->
<!-- Web Site: http://www.geocities.com/manohar_v -->
<! >
<! >
<!-- Begin
astropic = "astronaut.jpg"; // location of YOUR astronaut image
var xval = new Array(); // holds star coordinates
var yval = new Array();
no = 100; // number of stars in the background
speed = 200; // speed
xp = 20 + 100 * Math.random();
yp = 20 + 100 * Math.random();
angle = 3.14 * Math.random(); // astronaut angle
xinc = 3 * Math.sin(angle);
yinc = 3;
ie = (document.all)? 1 : 0;
ns = (document.layers)? 1: 0;
if (ie) {
width = document.body.clientWidth;
height = document.body.clientHeight;
for (var i = 0; i <= no; i++) {
document.write("<div id=\"div" + i+ "\" style=\"color:white;");
document.write("position:absolute;left:100;\">.</div>");
}
document.write("<div id=\"diva\" style=\"position:absolute;\">");
document.write("<img src=" + astropic + " border=\"0\" width=\"65\" height=\"95\"></div>");
for (i = 0; i <= no; i++) {
xval[i] = width * Math.random();
yval[i] = height * Math.random();
document.all["div" + i].style.left = xval[i];
document.all["div" + i].style.top = yval[i];
}
}
if (ns) {
width = self.innerWidth;
height = self.innerHeight;
for (var i = 0; i <= no; i++) {
document.write("<layer id=\"div" + i+ "\" style=\"color:white;");
document.write("position:absolute;left:100;\">.</layer>");
}
document.write("<layer id=\"diva\" style=\"position:absolute;\">");
document.write("<img src=" + astropic + " border=\"0\" width=\"65\" height=\"95\"></layer>");
for (i = 0; i <= no; i++) {
xval[i] = width * Math.random();
yval[i] = height * Math.random();
document.layers["div" + i].left = xval[i];
document.layers["div" + i].top = yval[i];
}
}
function star() {
for (i = 0; i <= no; i = i+4) {
xval[i] +=5;
if ((i%20) == 0) xval[i] += 10;
if(xval[i] >= width) xval[i] = width * Math.random();
if (ie) document.all["div" + i].style.left = xval[i];
if (ns) document.layers["div" + i].left = xval[i];
}
return true;
}
function goangle() {
angle = 3.14 * Math.random();
xinc = 3 * Math.sin(angle);
return true;
}
function space() {
if (ie) {
document.all["diva"].style.left = xp;
document.all["diva"].style.top = yp;
}
if (ns) {
document.layers["diva"].left = xp;
document.layers["diva"].top = yp;
}
xp += xinc;
yp +=yinc;
star();
if ((xp >= (width - 50)) || (xp <= 10)) { goangle(); xinc = (-1) * xinc; }
if ((yp >= (height - 50)) || (yp <= 10)) { goangle(); yinc = (-1) * yinc; }
setTimeout('space()', speed);
}
// End -->
</script>
<!-- Script Size: 3.03 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Resmin Üzerine gelince Arkaplan olsun.
- Kod:
<!-- TWO STEPS TO INSTALL BACKGROUND CHANGER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Mark Whitnell (mwhitnel@southeast.net) -->
<!-- Web Site: http://users.leading.net/~mwhitnel -->
<! >
<! >
<!-- Begin
if (navigator.appName == "Microsoft Internet Explorer") {
image_directory = "../img/bg-changer/";
clear = new Image(); clear.src = image_directory + "clear.jpg";
pic1 = new Image(); pic1.src = image_directory + "chameleon.jpg";
pic2 = new Image(); pic2.src = image_directory + "gecko.jpg";
pic3 = new Image(); pic3.src = image_directory + "lizard.jpg";
pic4 = new Image(); pic4.src = image_directory + "toad.jpg";
}
function imagechange(imgName) {
if (navigator.appName == "Microsoft Internet Explorer") {
document.body.background = eval(imgName + ".src");
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<body background="clear.jpg" name=bg>
<a href="#" onMouseOver="imagechange('pic1');" onMouseOut="imagechange('clear');"><img src="chameleon.jpg"></a>
<a href="#" onMouseOver="imagechange('pic2');" onMouseOut="imagechange('clear');"><img src="gecko.jpg"></a>
<a href="#" onMouseOver="imagechange('pic3');" onMouseOut="imagechange('clear');"><img src="lizard.jpg"></a>
<a href="#" onMouseOver="imagechange('pic4');" onMouseOut="imagechange('clear');"><img src="toad.jpg"></a>
<!-- Script Size: 1.75 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Arka Planda Yildizlar:
- Kod:
<!-- THREE STEPS TO INSTALL PARTICLE FIELD:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Joe Lard (darg36@home.com) -->
<!-- Web Site: http://members.home.net/darg36 -->
<! >
<! >
<!-- Begin
ie4 = document.all?1:0;
ns4 = document.layers?1:0;
ns5 = (document.getElementById && !document.all)?1:0;
time0ID = 0;
time1ID = 0;
time2ID = 0;
wind = 0;
w1 = w2 = -10;
v1 = v2 = -10;
x1 = x2 = -10;
y1 = y2 = -10;
xan = yan = -.25;
// emulate snow or stars? (true | false)
snow = false; // sinewave controlled
star = true; // mouse controlled path
function wave(){ // for snow
xan = Math.sin(wind/57.3);
wind+=Math.random()*5;
if (wind>360) wind = 0;
// yan = .25 // for water
}
// for stars
function mm(e) {
if (ns5) {
xan = ((e.clientX)-csw)/csw;
yan = ((e.clientY)-csh)/csh;
}
else {
xan = (((ns4)?e.pageX:event.x)-csw)/csw;
yan = (((ns4)?e.pageY:event.y)-csh)/csh;
}
}
function init() {
if (ns4) {
z0 = document.zen.document.z0;
z1 = document.zen.document.z1;
}
if (ns5) if (document.getElementsByTagName("*")) {
document.all = document.getElementsByTagName("*")
}
if (star) {
if (ns4 || ns5) {
window.captureEvents(Event.MOUSEMOVE);
window.onmousemove = mm;
}
document.onmousemove = mm;
}
fs=(ns4)? "":"; font-size:25px";
ret=""; tem=(ns4)? "<font size=5>":"";
for (t=1;t<sh/28;t++) {
for (u=1;u<sw/6;u++)
tem += (Math.random()>.99)? ((Math.random()>.9)? "<font size="+((Math.random()*50)+12)+"px>.</font size>":"."):" "; tem += "<BR>";
}
tem += (ns4)? "</font size>":"";
ret += "<div style='position:absolute; left:0px; top:0px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
ret += "<div style='position:absolute; left:"+(sw)+"px; top:0px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
ret += "<div style='position:absolute; left:0px; top:"+(sh)+"px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
ret += "<div style='position:absolute; left:"+(sw)+"px; top:"+(sh)+"px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
if (ns4) {
z0.document.write(ret);
z0.document.close();
}
if (ie4) z0.innerHTML = ret;
if (ns5) document.all.z0.innerHTML = ret;
ret=""; tem=(ns4)? "<font size=5>":"";
for (t = 1; t < sh / 28; t++) {
for (u = 1; u < sw / 6; u++)
tem += (Math.random()>.99)? ((Math.random()>.9)? "<font size="+((Math.random()*50)+12)+"px>.</font size>":"."):" ";
tem+="<BR>";
}
tem += (ns4)? "</font size>":"";
ret += "<div style='position:absolute; left:0px; top:0px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
ret += "<div style='position:absolute; left:"+(sw)+"px; top:0px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
ret += "<div style='position:absolute; left:0px; top:"+(sh)+"px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
ret += "<div style='position:absolute; left:"+(sw)+"px; top:"+(sh)+"px; width:"+sw+"px; height:"+sh+"px; color:white"+fs+"; font-family:Times'>"+tem+"</DIV>";
if (ns4) {
z1.document.write(ret);
z1.document.close();
}
if (ie4) z1.innerHTML = ret;
if (ns5) {
document.all.z1.innerHTML = ret;
z0 = document.all.z0;
z1 = document.all.z1;
}
time1ID = setInterval('z1m()',33);
time0ID = setInterval('z0m()',55);
if (snow) time2ID=setInterval('wave()',77);
}
function halt() {
if (time1ID) clearInterval(time1ID);
if (time0ID) clearInterval(time0ID);
if (time2ID) clearInterval(time2ID);
}
function z0m() {
x1 -= 4 * xan;
x2 -= 4 * yan;
a = Math.round(x1);
b = Math.round(x2);
if (w1 != a) {
w1 = a;
if (w1 > 0) x1 = w1 = -sw;
if (w1 < -sw) x1 = w1 = 0;
if (!ns4) z0.style.left = w1 + "px";
}
if (w2 != b) {
w2 = b;
if (w2 > 0) x2 = w2 = -sh;
if (w2 < -sh) x2 = w2 = 0;
if (!ns4) z0.style.top = w2 + "px";
}
if (ns4) z0.moveTo(w1,w2);
}
function z1m() {
y1 -= xan;
y2 -= yan;
a1 = Math.round(y1);
b1 = Math.round(y2);
if (v1 != a1) {
v1 = a1;
if (v1 > 0) y1 = v1 = -sw;
if (v1 < -sw) y1 = v1 = 0;
if (!ns4) z1.style.left = v1 + "px";
}
if (v2 != b1) {
v2 = b1;
if (v2 > 0) y2 = v2 = -sh;
if (v2 < -sh) y2 = v2 = 0;
if (!ns4) z1.style.top = v2 + "px";
}
if (ns4) z1.moveTo(v1,v2);
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<BODY onLoad="init()" onunload="halt()">
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<SCRIPT LANGUAGE="JavaScript">
<! >
<! >
<!-- Begin
var sw = (ie4)? document.body.offsetWidth:window.innerWidth;
var sh = (ie4)? document.body.offsetHeight:window.innerHeight;
//sw=200; sh=200; field width and height
var csw = Math.round(sw/2);
var csh = Math.round(sh/2);
ret="<STYLE TYPE='text/css'><!--\n";
ret+="#zen {position:absolute; left:0; top:0; width:"+sw+"; height:"+sh+
"; font-size:3000px; font-family:Times; clip:rect(0,"+(sw)+","+(sh)+
",0); overflow:hidden; z-Index:0}";
ret+="#z0 {position:absolute; left:-10; top:-10; width:"+(sw*2)+
"; height:"+(sh*2)+"; clip:rect(0,"+(sw*2)+","+(sh*2)+",0)}";
ret+="#z1 {position:absolute; left:-10; top:-10; width:"+(sw*2)+
"; height:"+(sh*2)+"; clip:rect(0,"+(sw*2)+","+(sh*2)+",0)}";
ret+="#ar {position:absolute; left:10; top:10; width:100; height:100;"+
" z-Index:1000; color:red}";
ret+="//-->\n</STYLE>";
if (ns4) ret+="<DIV id=zen>_"; else ret+="<DIV id=zen>";
ret+="<DIV id=z1></DIV>";
ret+="<DIV id=z0></DIV>";
ret+="</DIV>";
document.write(ret);
// End -->
</script>
<DIV id=ar><a href="javascript:halt()"> </A></DIV>
<!-- Script Size: 6.50 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Üye istedigi renk arka pölan olsun
- Kod:
<!-- TWO STEPS TO INSTALL TYPE-A-COLOR:
1. Paste the designated script into the HEAD of your HTML document
2. Add the code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this script into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Eric Stremming <estremming@hotmail.com> -->
<!-- http://www.geocities.com/SunsetStrip/Club/5970/ -->
<! >
<! >
<!-- Begin
function test(form) {
if (form.text.value == "")
alert("What\'s your favorite color?")
else {
document.bgColor=(""+form.text.value+"");
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this code to the BODY of your HTML document -->
<BODY>
<CENTER>
<FORM>
<B>Please enter your favorite<BR>
color and then click the button.<BR>
<input type="text" name="text">
<input type="button" name="button" value="click for color!" onClick="test(this.form)">
</FORM>
</CENTER>
<!-- Script Size: 1.06 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Sectiginiz Resim Ekranda dolansin:
- Kod:
<!-- ONE STEP TO INSTALL STUBBORN IMAGE:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Kien Caoxuan (kcaoxuan@caoxuan.com) -->
<!-- Web Site: http://www.caoxuan.com/ -->
<! >
<! >
<!-- Begin
N = (navigator.appName.indexOf("Netscape") != -1);
M = (navigator.appName.indexOf("Microsoft") != -1);
Vis = new Array();
Vis[0] = (M) ? "hidden":"hide";
Vis[1] = (M) ? "visible":"show";
function GetDiv(divId, divY, divX, divW, divH, bCol, visb, zInd) {
bkCol = (bCol != "")?((N)?" bgColor = "+bCol:";background:"+bCol):"";
DivTyp = (M) ? "<DIV" : "<LAYER";
if(M) {
Styl = " ID="+divId+" style = 'position:absolute; top:"+divY+"; left:"+divX+"; width:"+divW+"; height:"+divH+bkCol+"; visibility:"+Vis[visb]+"; z-index:"+zInd+"'>";
}
if(N) {
Styl = " ID = "+divId+" top = "+divY+" left = "+divX+" width = "+divW+" height = "+divH+bkCol+" visibility = "+Vis[visb]+" z-index = "+zInd+">";
}
document.writeln(DivTyp+Styl);
}
function EndDiv() {
(M)? document.writeln("</DIV>"): document.writeln("</LAYER>");
}
GetDiv('Obj', 300, 300, 20, 20, '', 1, 0);
document.write("<img src=../img/logo.gif width=100 height=40>");
EndDiv();
if(document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = newPos;
function newPos(e) {
X = (navigator.appName.indexOf("Microsoft") != -1)?event.clientX:e.pageX;
Y = (navigator.appName.indexOf("Microsoft") != -1)?event.clientY:e.pageY;
Xo = parseInt((M)?document.all.Obj.style.left:document.Obj.left);
Yo = parseInt((M)?document.all.Obj.style.top:document.Obj.top);
if(Math.abs(X - Xo) < 50 && Math.abs(Y - Yo) < 50) {
if(M) {
document.all.Obj.style.left = Math.floor(Math.random() * 400);
document.all.Obj.style.top = 100 + Math.floor(Math.random() * 300);
}
if(N) {
document.Obj.left = Math.floor(Math.random() * 700);
document.Obj.top = Math.floor(Math.random() * 500);
}
}
}
// End -->
</script>
<!-- Script Size: 2.28 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Yazi renkten renge girsin:
- Kod:
<!-- ONE STEP TO INSTALL TEXT BLINKER:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<SCRIPT LANGUAGE="JavaScript1.2">
<! >
<! >
<!-- Begin
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
}
}
var ctext = "Wow! Look at all the pretty colors! ;-)";
var speed = 1000;
var x = 0;
var color = new initArray(
"red",
"blue",
"green",
"black"
);
if(navigator.appName == "Netscape") {
document.write('<layer id="c"><center>'+ctext+'</center></layer><br>');
}
if (navigator.appVersion.indexOf("MSIE") != -1){
document.write('<div id="c"><center>'+ctext+'</center></div>');
}
function chcolor(){
if(navigator.appName == "Netscape") {
document.c.document.write('<center><font color="'+color[x]);
document.c.document.write('">'+ctext+'</font></center>');
document.c.document.close();
}
else if (navigator.appVersion.indexOf("MSIE") != -1){
document.all.c.style.color = color[x];
}
(x < color.length-1) ? x++ : x = 0;
}
setInterval("chcolor()",1000);
// End -->
</script>
<!-- Script Size: 1.31 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Sectiginiz resim ekranda ziplasin:
- Kod:
<!-- ONE STEP TO INSTALL STUBBORN IMAGE:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Kien Caoxuan (kcaoxuan@caoxuan.com) -->
<!-- Web Site: http://www.caoxuan.com/ -->
<! >
<! >
<!-- Begin
N = (navigator.appName.indexOf("Netscape") != -1);
M = (navigator.appName.indexOf("Microsoft") != -1);
Vis = new Array();
Vis[0] = (M) ? "hidden":"hide";
Vis[1] = (M) ? "visible":"show";
function GetDiv(divId, divY, divX, divW, divH, bCol, visb, zInd) {
bkCol = (bCol != "")?((N)?" bgColor = "+bCol:";background:"+bCol):"";
DivTyp = (M) ? "<DIV" : "<LAYER";
if(M) {
Styl = " ID="+divId+" style = 'position:absolute; top:"+divY+"; left:"+divX+"; width:"+divW+"; height:"+divH+bkCol+"; visibility:"+Vis[visb]+"; z-index:"+zInd+"'>";
}
if(N) {
Styl = " ID = "+divId+" top = "+divY+" left = "+divX+" width = "+divW+" height = "+divH+bkCol+" visibility = "+Vis[visb]+" z-index = "+zInd+">";
}
document.writeln(DivTyp+Styl);
}
function EndDiv() {
(M)? document.writeln("</DIV>"): document.writeln("</LAYER>");
}
GetDiv('Obj', 300, 300, 20, 20, '', 1, 0);
document.write("<img src=../img/logo.gif width=100 height=40>");
EndDiv();
if(document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = newPos;
function newPos(e) {
X = (navigator.appName.indexOf("Microsoft") != -1)?event.clientX:e.pageX;
Y = (navigator.appName.indexOf("Microsoft") != -1)?event.clientY:e.pageY;
Xo = parseInt((M)?document.all.Obj.style.left:document.Obj.left);
Yo = parseInt((M)?document.all.Obj.style.top:document.Obj.top);
if(Math.abs(X - Xo) < 50 && Math.abs(Y - Yo) < 50) {
if(M) {
document.all.Obj.style.left = Math.floor(Math.random() * 400);
document.all.Obj.style.top = 100 + Math.floor(Math.random() * 300);
}
if(N) {
document.Obj.left = Math.floor(Math.random() * 700);
document.Obj.top = Math.floor(Math.random() * 500);
}
}
}
// End -->
</script>
<!-- Script Size: 2.28 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Resmin zerine geldiginizde resim kacsin:
- Kod:
<!-- ONE STEP TO INSTALL STUBBORN IMAGE:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Kien Caoxuan (kcaoxuan@caoxuan.com) -->
<!-- Web Site: http://www.caoxuan.com/ -->
<! >
<! >
<!-- Begin
N = (navigator.appName.indexOf("Netscape") != -1);
M = (navigator.appName.indexOf("Microsoft") != -1);
Vis = new Array();
Vis[0] = (M) ? "hidden":"hide";
Vis[1] = (M) ? "visible":"show";
function GetDiv(divId, divY, divX, divW, divH, bCol, visb, zInd) {
bkCol = (bCol != "")?((N)?" bgColor = "+bCol:";background:"+bCol):"";
DivTyp = (M) ? "<DIV" : "<LAYER";
if(M) {
Styl = " ID="+divId+" style = 'position:absolute; top:"+divY+"; left:"+divX+"; width:"+divW+"; height:"+divH+bkCol+"; visibility:"+Vis[visb]+"; z-index:"+zInd+"'>";
}
if(N) {
Styl = " ID = "+divId+" top = "+divY+" left = "+divX+" width = "+divW+" height = "+divH+bkCol+" visibility = "+Vis[visb]+" z-index = "+zInd+">";
}
document.writeln(DivTyp+Styl);
}
function EndDiv() {
(M)? document.writeln("</DIV>"): document.writeln("</LAYER>");
}
GetDiv('Obj', 300, 300, 20, 20, '', 1, 0);
document.write("<img src=../img/logo.gif width=100 height=40>");
EndDiv();
if(document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = newPos;
function newPos(e) {
X = (navigator.appName.indexOf("Microsoft") != -1)?event.clientX:e.pageX;
Y = (navigator.appName.indexOf("Microsoft") != -1)?event.clientY:e.pageY;
Xo = parseInt((M)?document.all.Obj.style.left:document.Obj.left);
Yo = parseInt((M)?document.all.Obj.style.top:document.Obj.top);
if(Math.abs(X - Xo) < 50 && Math.abs(Y - Yo) < 50) {
if(M) {
document.all.Obj.style.left = Math.floor(Math.random() * 400);
document.all.Obj.style.top = 100 + Math.floor(Math.random() * 300);
}
if(N) {
document.Obj.left = Math.floor(Math.random() * 700);
document.Obj.top = Math.floor(Math.random() * 500);
}
}
}
// End -->
</script>
<!-- Script Size: 2.28 KB -->
Geri: Forumlariniz icin degisik Kodlar [konu 1]
Arka planda parlayan yildizlar:
- Kod:
<!-- TWO STEPS TO INSTALL STAR FIELD:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<style type="text/css">
.star {
position:absolute;
layer-background-color:white;
visibility:visible;
top:-50px;
width:50px;
height:50px;
font-size:1px;
background-color:white;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Brian Gosselin (bgaudiodr@aol.com) -->
<!-- Web Site: http://bgaudiodr.iwarp.com -->
<! >
<! >
<!-- Begin
var starnum = 75; // Number of stars
var isNS = (document.layers);
var _all = (isNS)? '' : 'all.';
var _style = (isNS) ? '' : '.style';
var xoffset, yoffset, w_x, w_y, tmpx, tmpy, scrlx, scrly;
function getstartpos(obj) {
obj.deltay = Math.floor(Math.random() * 12);
obj.deltax = Math.floor(Math.random() * 12);
obj.xdir = (Math.floor(Math.random() * 2) == 1) ? '+' : '-';
obj.ydir = (Math.floor(Math.random() * 2) == 1) ? '+' : '-';
obj.counter = 1;
if (isNS) {
obj.clip.width = 1;
obj.clip.height = 1;
obj.moveTo(xoffset+pageXOffset, yoffset+pageYOffset);
} else {
obj.width = 1;
obj.height = 1;
obj.pixelTop = yoffset+document.body.scrollTop;
obj.pixelLeft = xoffset+document.body.scrollLeft;
}
}
function movestar(starN) {
tmpx = starN.deltax*starN.counter+starN.counter;
tmpy = starN.deltay*starN.counter+starN.counter;
if (isNS) {
starN.clip.width = starN.counter / 3;
starN.clip.height = starN.counter / 3;
scrlx = pageXOffset;
scrly = pageYOffset;
if ((starN.left+tmpx >= w_x+scrlx) || (starN.top+tmpy >= w_y+scrly) || (starN.left-tmpx <= scrlx) || (starN.top-tmpy <= scrly)) {
getstartpos(starN);
} else {
eval('starN.moveBy('+starN.xdir+tmpx+', '+starN.ydir+tmpy+')');
}
} else {
starN.width = starN.counter/3;
starN.height = starN.counter/3;
scrlx = document.body.scrollLeft;
scrly = document.body.scrollTop;
if ((starN.pixelLeft+tmpx >= w_x+scrlx)||(starN.pixelTop+tmpy >= w_y+scrly) || (starN.pixelLeft-tmpx <= scrlx)||(starN.pixelTop-tmpy <= scrly)) {
getstartpos(starN);
} else {
eval('starN.pixelTop'+starN.ydir+'=tmpy');
eval('starN.pixelLeft'+starN.xdir+'=tmpx');
}
}
starN.counter++;
}
function animate() {
for(i=1; i <= starnum; i++) {
movestar(eval('star'+i));
}
setTimeout('animate()', 100);
}
function findwindowparams() {
w_x = (isNS) ? window.innerWidth : document.body.clientWidth;
w_y = (isNS) ? window.innerHeight : document.body.clientHeight;
xoffset = w_x / 2;
yoffset = w_y / 2;
for (i = 1; i <= starnum; i++) {
getstartpos(eval('star'+i));
}
}
function resizeNS() {
setTimeout('document.location.reload()', 400);
}
(isNS) ? window.onresize = resizeNS : window.onresize = findwindowparams;
window.onload = new Function("findwindowparams(); animate();");
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<body background="space.jpg">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
for (i = 1; i <= starnum; i++) {
document.writeln('<div id="star'+i+'" class="star"></div>');
eval('var star'+i+'=document.'+_all+'star'+i+_style);
}
// End -->
</script>
<!-- Script Size: 3.33 KB -->
23 sayfadaki 34 sayfası • 1 ... 13 ... 22, 23, 24 ... 28 ... 34
23 sayfadaki 34 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Salı 12 Ekim 2021 - 23:12 tarafından ankatr
» Çok Acil Bir Yardım Çağrısı
Çarş. 20 Ara. 2017 - 19:27 tarafından maxivizyonum
» Domain hakkinda
Çarş. 20 Ara. 2017 - 17:50 tarafından maxivizyonum
» Yıllar Önce Açtığım Siteye Ulaşamıyorum Kapatmak İstiyorum.
Cuma 15 Eyl. 2017 - 23:08 tarafından Percy
» Profil alani
Perş. 25 Mayıs 2017 - 1:37 tarafından snappy
» Portal istek
Cuma 19 Mayıs 2017 - 8:06 tarafından Kertelek
» Kategorilerin üzerine duyuru
C.tesi 13 Mayıs 2017 - 16:29 tarafından Maxelle
» SSL Sertifika güvenli değil htpps
Perş. 11 Mayıs 2017 - 17:04 tarafından Atiim
» Anasayfa Son Mesajlar Çerceve
Paz 7 Mayıs 2017 - 1:14 tarafından Maxelle