Html- kodları jawascprt
4/4/2008
-
html-site-kodları-2
RENKLİ BUTON
<****** language = "**********"> ******>
MAUSE MESAJ KUTUSU
<****** language="JavaScript1.2"> www.html-kodlari.tr.gg var scroller_msg=' html-kodlari.tr.gg-Link ve Eğlence Merkezi' var dismissafter=0 var initialvisible=0 if (document.all) document.write(''+scroller_msg+' ') ******** followcursor(){ 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 } ******** dismissmessage(){ curscroll.style.visibility="hidden" } if (document.all){ document.onmousemove=followcursor document.ondblclick=dismissmessage if (dismissafter!=0) setTimeout("dismissmessage()",dismissafter*1000) } //--> ******>
DAKTİLO YAZI
<****** LANGUAGE="JavaScript"> text = " www.html-kodlari.tr.gg-Link ve Eğlence Merkezi" word = text.split('.') i = 0; //letter count j = 0; //which word in array is to be spelled start = 0; //variable to hold cycles of the blink scount = 0; //variable to hold cycles of the mispell ******** checkIt() { with(document.all.anima) { if(innerText.charAt(innerText.length-1) == "_") { innerText = innerText.substring(0, innerText.length - 1); return true; } else { innerText = innerText + "_"; return false; } } } ******** blinkfor(count, timing) { with(document.all.anima) { if(start < count) { if(checkIt()) { start++; } mistake = 'blinkfor('+count+','+timing+')'; setTimeout('eval(mistake)', timing); } else { start = 0; i++; call_It(); } } } ******** mispell(offset,correction) { with(document.all.anima) { if(scount < offset) { if(!checkIt()) { innerText = innerText.substring(0, innerText.length-2) + "_"; scount++; } mistake = 'mispell(' + offset + ', "' + correction + '")'; setTimeout("eval(mistake)", 150); } else { if(correction == '' && scount == offset ) { i = i - offset; scount++; } if(offset > 0) { if(checkIt()) { innerText += correction.charAt(correction.length - offset) + "_"; offset--; } mistake = 'mispell(' + offset + ',"' + correction + '")'; setTimeout("eval(mistake)", 150); } else { scount = 0; j++; innerText = innerText.substring(0, innerText.length - 1); call_It(); } } } } ******** spellit(string) { with(document.all.anima) { if(i <= string.length) { if(string.charAt(i) == '/') { NumErrs = string.charAt(i + 1); NewLets = string.substring(i + 2, i + NumErrs); mispell(NumErrs,NewLets); } else if(i <= string.length - 1) { i++; innerText = string.substring(0,i) + "_"; mistake = 'spellit("' + string + '")'; setTimeout("eval(mistake)", 150); } else { innerText = string.substring(0, i); j++; call_It(); } } } } ******** call_It() { with(document.all) { if(i == -1){ blinkfor(4, 150); } else if(j <= word.length - 1) { spellit(anima.innerText + " " + word[j]); } else { blinkfor(100,230); } } } if(document.all) { call_It(); } // End --> ******>
SAYFADA DÖNEN YAZI
<****** language="JavaScript"> if (document.all){ msg="www.html-kodlari.tr.gg "; msgColor="lime"; msgFont="Verdana"; msg=msg.split(''); n=msg.length; e=360/n; yp=0; xp=0; yb=40; xb=60; sa=0.07; sb=0; pa=new Array(); pb=new Array(); for (i=0; i '+msg[i]+'
'); } ******** donus(){ yp=document.body.scrollTop+50; xp=document.body.scrollLeft+window.document.body.clientWidth-725; for (i=0; i
******>
EKRAN KAYDIRMA
<****** language="JavaScript1.2"> // Link ve Eğlence Merkezi --> www.html-kodlari.tr.gg var currentpos=0,alt=1,curpos1=0,curpos2=-1 ******** initialize(){ startit() } ******** scrollwindow(){ if (document.all) temp=document.body.scrollTop else temp=window.pageYOffset if (alt==0) alt=1 else alt=0 if (alt==0) curpos1=temp else curpos2=temp if (curpos1!=curpos2){ if (document.all) currentpos=document.body.scrollTop+1 else currentpos=window.pageYOffset+1 window.scroll(0,currentpos) } else{ currentpos=0 window.scroll(0,currentpos) } } ******** startit(){ setInterval("scrollwindow()",10) } window.onload=initialize ******>
DOĞUM GÜNÜ BULMA
<****** language="JavaScript">******>
STATÜS BARDA YAZI
<****** language="JavaScript"> var ar = new Array() ar[0]="*html-kodlari.tr.gg***Link ve Eğlence Merkezi*" var speed = 2 var pause = 1000 var timerID = null var bannerRunning = false var message = 0 var state = "" clearState() ******** stopBanner() { if (bannerRunning) clearTimeout(timerID) timerRunning = false } ******** startBanner() { stopBanner() showBanner() } ******** clearState() { state = "" for (var i = 0; i < ar[message].length; ++i) { state +="0" } } ******** showBanner() { if (getString()) { message++ if (ar.length <= message) message = 0 clearState() timerID = setTimeout("showBanner()", pause) } else { var str = "" for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } window.status = str timerID = setTimeout("showBanner()", speed) } } ******** getString() { var full = true for (var j = 0; j < state.length; ++j) { if (state.charAt(j) == 0) full = false } if (full) return true while (1) { var num = getRandom(ar[message].length) if (state.charAt(num) == "0") break } state = state.substring(0, num) + "1"+ state.substring(num + 1,state.length) return false } ******** getRandom(max) { var now = new Date() var num = now.getTime() * now.getSeconds() * Math.random() return num % max } startBanner() ******>
BUTONDA KAYAN YAZI
<****** language="Java******"> ******>
BROWSER BİLGİLERİ
<****** language="Java******"> ******> ******>
SAĞ TUŞ KİLİDİ
<****** language="Java******1.2"> ******>
HESAP MAKİNESİ
<****** LANGUAGE="JavaScript"> ******>
YANDAN AÇILAN MENÜ
Insert Your Title <****** language="JavaScript1.2"> /* Sliding Menu Bar Script- © html-kodlari.tr.gg (www.html-kodlari.tr.gg) For full source code, installation instructions, 100's more DHTML ******s, and Terms Of Use, visit html-kodlari.tr.gg */ if (document.all) document.write('') themenu=document.all.slidemenubar2.style rightboundary=0 leftboundary=-150 } else{ themenu=document.layers.slidemenubar rightboundary=150 leftboundary=10 } ******** pull(){ if (window.drawit) clearInterval(drawit) pullit=setInterval("pullengine()",50) } ******** draw(){ clearInterval(pullit) drawit=setInterval("drawengine()",50) } ******** pullengine(){ if (document.all&&themenu.pixelLeftleftboundary) themenu.pixelLeft-=5 else if(document.layers&&themenu.left>leftboundary) themenu.left-=5 else if (window.drawit) clearInterval(drawit) } ******>
YUKARIDAN İNEN YAZI
Web Sitemize Hos Geldiniz!
WWW.html-kodlari.tr.gg-Link ve Eğlence Merkezi
<****** language=JavaScript FPTYPE="dynamicanimation8"> www.html-kodlari.tr.gg dynamicanimAttr = "dynamicanimation8" animateElements = new Array() currentElement = 0 speed = 0 stepsZoom = 8 stepsWord = 8 stepsFly = 12 stepsSpiral = 16 steps = stepsZoom step = 0 outString = "" ******** dynAnimation8() { var ms = navigator.appVersion.indexOf("MSIE") ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4) if(!ie4) { if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion.substring(0, 1)) >= 4)) { for (index=document.layers.length-1; index >= 0; index--) { layer=document.layers[index] if (layer.left==10000) layer.left=0 } } return } for (index=document.all.length-1; index >= document.body.sourceIndex; index--) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if(null != animation) { if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord") { ih = el.innerHTML outString = "" i1 = 0 iend = ih.length while(true) { i2 = startWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, false, "") if(i2 == iend) break i1 = i2 i2 = endWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, true, animation) if(i2 == iend) break i1 = i2 } document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } if(animation == "zoomIn" || animation == "zoomOut") { ih = el.innerHTML outString = "" outString += ih outString += " " document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } } } i = 0 for (index=document.body.sourceIndex; index < document.all.length; index++) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if (null != animation) { if(animation == "flyLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = 0 } else if(animation == "flyRight") { el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth el.style.posTop = 0 } else if(animation == "flyTop" || animation == "dropWord") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "flyBottom") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight } else if(animation == "flyTopLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "flyTopRight" || animation == "flyTopRightWord") { el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "flyBottomLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight } else if(animation == "flyBottomRight" || animation == "flyBottomRightWord") { el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight } else if(animation == "spiral") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "zoomIn") { el.style.posLeft = 10000 el.style.posTop = 0 } else if(animation == "zoomOut") { el.style.posLeft = 10000 el.style.posTop = 0 } else { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = 0 } el.initLeft = el.style.posLeft el.initTop = el.style.posTop animateElements[i++] = el } } window.setTimeout("animate();", speed) } ******** offsetLeft(el) { x = el.offsetLeft for (e = el.offsetParent; e; e = e.offsetParent) x += e.offsetLeft; return x } ******** offsetTop(el) { y = el.offsetTop for (e = el.offsetParent; e; e = e.offsetParent) y += e.offsetTop; return y } ******** startWord(ih, i) { for(tag = false; i < ih.length; i++) { c = ih.charAt(i) if(c == '<') tag = true if(!tag) return i if(c == '>') tag = false } return -1 } ******** endWord(ih, i) { nonSpace = false space = false while(i < ih.length) { c = ih.charAt(i) if(c != ' ') nonSpace = true if(nonSpace && c == ' ') space = true if(c == '<') return i if(space && c != ' ') return i i++ } return -1 } ******** outWord(ih, i1, i2, dyn, anim) { if(dyn) outString += "" outString += ih.substring(i1, i2) if(dyn) outString += " " } ******** animate() { el = animateElements[currentElement] animation = el.getAttribute(dynamicanimAttr, false) step++ if(animation == "spiral") { steps = stepsSpiral v = step/steps rf = 1.0 - v t = v * 2.0*Math.PI rx = Math.max(Math.abs(el.initLeft), 200) ry = Math.max(Math.abs(el.initTop), 200) el.style.posLeft = Math.ceil(-rf*Math.cos(t)*rx) el.style.posTop = Math.ceil(-rf*Math.sin(t)*ry) } else if(animation == "zoomIn") { steps = stepsZoom el.style.fontSize = Math.ceil(50+50*step/steps) + "%" el.style.posLeft = 0 } else if(animation == "zoomOut") { steps = stepsZoom el.style.fontSize = Math.ceil(100+200*(steps-step)/steps) + "%" el.style.posLeft = 0 } else { steps = stepsFly if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord") steps = stepsWord dl = el.initLeft / steps dt = el.initTop / steps el.style.posLeft = el.style.posLeft - dl el.style.posTop = el.style.posTop - dt } if (step >= steps) { el.style.posLeft = 0 el.style.posTop = 0 currentElement++ step = 0 } if(currentElement < animateElements.length) window.setTimeout("animate();", speed) } //--> ******>
SAYFANIN ALTINDA SAAT
<****** language="JavaScript">
Yorum yaz! ::
Arkadaşına Gönder!
2008-04-13 17:27:40 - sayfayı yazdır butonu