Html Kodlari

keyni

New member
mause kodu

<head><br /> <title>Mouse Attack</title><br /> </head><br /> <body bgcolor="#000000"><br /> <br /> <br /> <br /> <script language="JavaScript"><br />
<!-- Mouse Attack by Kurt Grigg - http://www.btinternet.com/~kurt.grigg/javascript<br />
<br />
var num=10;//Number of dots!<br />
var vel=20;//Speed!<br />
var col=new Array('#eecc00','#ffffff','#0000ff','#ff0000');//Dot colours, min 2!<br />
var stopafter=60; //Stop and clear after x secondS!<br />
//Nothing needs altering past here....................<br />
var y=0;<br />
var x=0;<br />
var py=0;<br />
var px=0;<br />
var angle=0;<br />
var distance=0;<br />
var rep;<br />
var ry=0;<br />
var rx=0;<br />
var tmr=null;<br />
var n4=(document.layers);<br />
var n6=(document.getElementById&&!document.all);<br />
var ie=(document.all);<br />
var o6=(navigator.appName.indexOf("Opera") != -1)?true:false;<br />
var _d=(n4||ie)?'document.':'document.getElementById(" ';<br />
var _a=(n4||n6)?'':'all.';<br />
var _r=(n6)?'")':'';<br />
var _s=(n4)?'':'.style';<br />
var v=(n4)?"show":"visible";<br />
var put=false;<br />
stopafter*=1000;<br />
if (n4||n6){<br />
window.captureEvents(Event.MOUSEMOVE);<br />
function mouse1(e){<br />
if (put) return false;<br />
y = e.pageY-window.pageYOffset;<br />
x = e.pageX; <br />
}<br />
if (n4) window.onMouseMove=mouse1; <br />
else document.onmousemove=mouse1;<br />
}<br />
if (ie||o6){<br />
function mouse2(){<br />
if (put) return false;<br />
y = (ie)?event.clientY:event.clientY-window.pageYOffset;<br />
x = event.clientX;<br />
} <br />
document.onmousemove=mouse2;<br />
}<br />
if (n4){<br />
for (i=0; i < num; i++)<br />
document.write('<layer name=dots'+i+' top=0 left=0 width='+i/3+' height='+i/3+' bgcolor=#ffffff></layer>');<br />
}<br />
else{<br />
if (ie&&!o6){<br />
document.write("<div id='outer' style='position:absolute;top:0px;left:0px'>");<br />
document.write("<div style='position:relative'>");<br />
}<br />
for (i=0; i < num; i++)<br />
document.write('<div id="dots'+i+'" style="position:absolute;top:0px;left:0px;width:'+ i/3+';height:'+i/3+';background:#ffffff;font-size:1">.</div>');<br />
if (ie&&!o6) document.write("</div></div>");<br />
}<br />
function pos(){<br />
h=(ie)?document.body.clientHeight:window.innerHeig ht-20;<br />
w=(ie)?document.body.clientWidth:window.innerWidth -20;<br />
ry=Math.round(Math.random()*h);<br />
rx=Math.round(Math.random()*w);<br />
rep=Math.round(Math.random()*3);<br />
if (rep == 3)ry=0;<br />
if (rep == 2)ry=h;<br />
if (rep == 1)rx=0;<br />
if (rep == 0)rx=w;<br />
py=ry;<br />
px=rx;<br />
}<br />
pos();<br />
function followleader(){<br />
sy=(!ie)?window.pageYOffset:0;<br />
sx=(!ie)?window.pageXOffset:0;<br />
if (ie) outer.style.top=document.body.scrollTop;<br />
for (i=0; i < num; i++){<br />
randomcol=col[Math.floor(Math.random()*col.length)];<br />
temp1=eval(_d+_a+"dots"+i+_r+_s);<br />
temp1.visibility=v;<br />
if (i < num-1){<br />
temp2=eval(_d+_a+"dots"+(i+1)+_r+_s);<br />
temp1.top=temp2.top;<br />
temp1.left=temp2.left<br />
} <br />
else{<br />
temp1.top=py+sy;<br />
temp1.left=px;<br />
}<br />
if (n4)temp1.bgColor=randomcol;<br />
else temp1.background=randomcol;<br />
}<br />
}<br />
function bomb(){<br />
ay=y-py;<br />
ax=x-px;<br />
angle=Math.round(Math.atan2(ay,ax)*180/Math.PI);<br />
if (angle < 0) angle += 360;<br />
dy=py-y;<br />
dx=px-x;<br />
distance=Math.floor(Math.sqrt(dx*dx+dy*dy));<br />
go_y = Math.round(vel*Math.sin(angle*Math.PI/180));<br />
go_x = Math.round(vel*Math.cos(angle*Math.PI/180));<br />
py+=go_y;<br />
px+=go_x;<br />
if (distance < vel) pos();<br />
followleader();<br />
tmr=setTimeout("bomb()",20);<br />
}<br />
bomb();<br />
function dsbl(){<br />
v=(n4)?"hide":"hidden";<br />
put=true;<br />
x=0;<br />
y=0;<br />
setTimeout('clearTimeout(tmr)',stopafter+100);<br />
}<br />
setTimeout('dsbl()',stopafter);<br />
//--><br />
</script><br /> <br /> <br /> </BODY><br /> </HTML>

-------------------------------------------------------------------------------------------------------
yıldızlı mause kodu


<style type="text/css">
<!--
h1 {
color:#cc3333;
font-family:"Comic Sans MS",Helvetica;
}
h3 {
color:#993333;
font-family:"Comic Sans MS",Helvetica;
}
.kisser {
position:absolute;
top:0;
left:0;
visibility:hidden;
}
-->
</style>

<script language="JavaScript1.2" type="text/JavaScript">
<!-- cloak

kisserCount = 15 //maximum number of images on screen at one time
curKisser = 0 //the last image DIV to be displayed (used for timer)
kissDelay = 1000 //duration images stay on screen (in milliseconds)
kissSpacer = 50 //distance to move mouse b4 next heart appears
theimage = "http://www.ladylony.com/est12.gif" //the 1st image to be displayed
theimage2 = "http://www.ladylony.com/est12.gif" //the 2nd image to be displayed


//Browser checking and syntax variables
var docLayers = (document.layers) ? true:false;
var docId = (document.getElementById) ? true:false;
var docAll = (document.all) ? true:false;
var docbitK = (docLayers) ? "document.layers['":(docId) ? "document.getElementById('":(docAll) ? "document.all['":"document."
var docbitendK = (docLayers) ? "']":(docId) ? "')":(docAll) ? "']":""
var stylebitK = (docLayers) ? "":".style"
var showbitK = (docLayers) ? "show":"visible"
var hidebitK = (docLayers) ? "hide":"hidden"
var ns6=document.getElementById&&!document.all
//Variables used in script
var posX, posY, lastX, lastY, kisserCount, curKisser, kissDelay, kissSpacer, theimage
lastX = 0
lastY = 0
//Collection of functions to get mouse position and place the images
function doKisser(e) {

posX = getMouseXPos(e)
posY = getMouseYPos(e)
if (posX>(lastX+kissSpacer)||posX<(lastX-kissSpacer)||posY>(lastY+kissSpacer)||posY<(lastY-kissSpacer)) {
showKisser(posX,posY)
lastX = posX
lastY = posY
}
}
// Get the horizontal position of the mouse
function getMouseXPos(e) {
if (document.layers||ns6) {
return parseInt(e.pageX+10)
} else {
return (parseInt(event.clientX+10) + parseInt(document.body.scrollLeft))
}
}
// Get the vartical position of the mouse
function getMouseYPos(e) {
if (document.layers||ns6) {
return parseInt(e.pageY)
} else {
return (parseInt(event.clientY) + parseInt(document.body.scrollTop))
}
}
//Place the image and start timer so that it disappears after a period of time
function showKisser(x,y) {
var processedx=ns6? Math.min(x,window.innerWidth-75) : docAll? Math.min(x,document.body.clientWidth-55) : x
if (curKisser >= kisserCount) {curKisser = 0}
eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".left = " + processedx)
eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".top = " + y)
eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".visibility = '" + showbitK + "'")
if (eval("typeof(kissDelay" + curKisser + ")")=="number") {
eval("clearTimeout(kissDelay" + curKisser + ")")
}
eval("kissDelay" + curKisser + " = setTimeout('hideKisser(" + curKisser + ")',kissDelay)")
curKisser += 1
}
//Make the image disappear
function hideKisser(knum) {
eval(docbitK + "kisser" + knum + docbitendK + stylebitK + ".visibility = '" + hidebitK + "'")
}

function kissbegin(){
//Let the browser know when the mouse moves
if (docLayers) {
document.captureEvents(Event.MOUSEMOVE)
document.onMouseMove = doKisser
} else {
document.onmousemove = doKisser
}
}
window.onload=kissbegin
// decloak -->
</script>

<script language="JavaScript" type="text/JavaScript">
<!-- cloak
// Add all DIV's of hearts
if (document.all||document.getElementById||document.layers){
for (k=0;k<kisserCount;k=k+2) {
document.write('<div id="kisser' + k + '" class="kisser"><img src="' + theimage + '" alt="" border="0"></div>\n')
document.write('<div id="kisser' + (k+1) + '" class="kisser"><img src="' + theimage2 + '" alt="" border="0"></div>\n')
}
}

// decloak -->
</script>

-----------------------------------------------------------------------------------------------------------

sitenize kalpler yağsın

<marquee behavior="scroll" direction="down" scrollamount="5" style="position: absolute; left: 127px; top: 150px; width:16px; height: 511px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="5" style="position:absolute; left: 179px; top: 170px; width: 16px; height:383px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="1" style="position: absolute;left: 229px; top: 190px; width: 16px; height: 304px;"><br /><br /><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 276px; top: 180px; width:16px; height: 529px;"><br /><br /><span style="color: rgb(25, 25, 112) !important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="4" style="position:absolute; left: 324px; top: 160px; width: 16px; height:404px;"><br /><br /><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left:232px; top: 190px; width: 16px; height: 230px;"><br /><br /><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 142px; top: 150px; width:16px; height: 237px;"><br /><br /><span style="color: rgb(25, 25, 112) !important;">¦</span></marquee> <br /><br /><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 295px; top: 170px; width: 16px; height: 273px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee><br /><br /><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 105px; top: 230px; width: 16px; height: 246px;"><span style="color: rgb(25, 25, 112) !important;">¦</span></marquee> <br /><br /><marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left: 370px; top: 190px; width: 16px; height: 435px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 392px;top: 150px; width: 16px; height: 522px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 433px; top: 170px; width:16px; height: 416px;"><span style="color: rgb(25, 25, 112) !important;">¦</span><br /><br /></marquee> <marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 466px; top: 200px; width: 16px; height: 411px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee><br /><br /><marquee behavior="scroll" direction="down" scrollamount="1" style="position: absolute; left: 566px; top: 170px; width: 16px; height: 497px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 586px; top: 200px; width: 16px; height: 445px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior= "scroll" direction="down" scrollamount="1" style="position: absolute; left: 532px; top: 170px; width: 16px; height: 382px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 610px; top: 200px; width: 16px; height: 331px;"><span style="color: rgb(25, 25, 112) ! important;">¦<br /><br /></span></marquee> <marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 649px; top: 250px; width: 16px; height: 403px;"><br /><br /><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee><br /><br /><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 695px; top: 290px; width: 16px; height: 523px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 650px; top: 180px; width: 16px; height: 259px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction=" downs" scrollamount="6" style="position: absolute; left: 689px; top: 160px; width: 16px; height: 219px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span><br /><br /></marquee> <marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 727px; top: 200px; width: 16px; height: 406px;"><span style="color: rgb(25, 25, 112) ! important;">¦</span></marquee> <marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 755px; top: 150px; width: 16px; height: 528px;"><span style="color: rgb(25, 25, 112) ! important;">¦<br /><br /></span></marquee> <marquee behavior="scroll" direction="down" scrollamount="2" style= "position: absolute; left: 786px; top: 180px; width: 16px; height: 414px;"><span style ="color: rgb(25, 25, 112) ! important;">¦</span></marquee>



koddaki işaretlerin bazıları ağlama simleyi olarak çıkıyo nasıl düzelticem
 

HTML

Üst