Giriş yap
En son konular
Similar topics
Forumlariniz icin degisik Kodlar [konu 2]
+65
KaN
Astral
Sagocu_enex
efsaneozii
arda789
pikachuvolkan
Garfield
bentürk
holisawra41
-eglenforumla-
FréésTyLéé
rapix
Cedric
SoS
bymuro_94
yetimkiz
GülçinciKız
cihan_karakaya
quardian
andelip
Supra
şeker kız
ahmedi55
RangeR
cevahir6262
Ahçı Süngerbob
arşiv
Vurucu-Tim
/MusCan\
Gamze
-BlacK-
cimbomlueray
Cagri_1o
CaRisSmA
Sanal
ozan72
otuz_3crew
xfearx
ßeyza
selore_28
BARIŞ AKARSU
KingDewil09
sair_17
carlos1994
MoRTaL58
yunus_emre
sonsuz
actionboss
burakkaralar
**FurkaN**
infazcı_kafkef_61
hizmetkar
yildirim52
DeRiN DaRBe
Since1903
Denqesz01
ido_maestro
The_TokaT60
Emule
ouzzz
Th3 BLacK DooR
Müc@hid
sedat5453
djosse
Chazy Chazz
69 posters
2 sayfadaki 34 sayfası
2 sayfadaki 34 sayfası • 1, 2, 3 ... 18 ... 34
Forumlariniz icin degisik Kodlar [konu 2]
Konunun ilk mesajı :
Bunları Yönetim Paneli>>Afiş Asmak>>Genel Bilgiler>>Anasayfa Mesajı Buraya Koyuyorduk galiba
- Kod:
<embed src="http://www.site-clocks.com/flash/clocks/modern.swf?hex=000077" width="125" height="125" wmode="transparent" type="application/x-shockwave-flash">
- Kod:
<embed src="http://www.site-clocks.com/flash/clocks/backwards.swf?hex=000000" width="125" height="125" wmode="transparent" type="application/x-shockwave-flash">
- Kod:
<embed src="http://www.site-clocks.com/flash/clocks/digital.swf?hex=00AA00" width="150" height="75" wmode="transparent" type="application/x-shockwave-flash">
- Kod:
<embed src="http://www.site-clocks.com/flash/clocks/analog.swf?hex=770000" width="125" height="125" wmode="transparent" type="application/x-shockwave-flash">
- Kod:
<embed src="http://www.site-clocks.com/flash/clocks/classy.swf?hex=000000" width="125" height="125" wmode="transparent" type="application/x-shockwave-flash">
- Kod:
<embed src="http://www.site-clocks.com/flash/clocks/diamond.swf?hex=555555" width="125" height="125" wmode="transparent" type="application/x-shockwave-flash">
Bunları Yönetim Paneli>>Afiş Asmak>>Genel Bilgiler>>Anasayfa Mesajı Buraya Koyuyorduk galiba
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Açılır Menü
Kod:
Kod:
- Kod:
---------- Bu kisim Sayfanin <head>..</head> etiketleri arasina gelecek ----------
<SCRIPT LANGUAGE="JavaScript">
<!--
function jumpBox(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
//-->
</SCRIPT>
---------- Bu kisim menüyü koymak istediginiz yere gelecek ----------
<FORM NAME="form">
<SELECT NAME="site" size=1 onChange="javascript:jumpBox()">
<OPTION VALUE="">Menü
<OPTION VALUE="http://www.mydesign.gen.tr">mydesign.gen.tr
<OPTION VALUE="http://www.d0gma.org">D0gma.org
</SELECT>
</FORM>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Animasyonlu Pencere Açma
Kod:
Kod:
- Kod:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Animasyonlu Pencere Açmak</title>
<script>
<!--
var mylocation="http://ksabitk.awardspace.com"
var winheight=100
var winsize=100
var x=5
function go(){
win2=window.open("","","scrollbars")
if (!document.layers&&!document.all){
win2.location=mylocation
return
}
win2.resizeTo(100,100)
win2.moveTo(0,0)
go2()
}
function go2(){
if (winheight>=screen.availHeight-3)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5){
win2.location=mylocation
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",50)
}
//-->
</script>
<a href="javascript:go()" onMouseover="window.status='open window';return true" onMouseout="window.status=''" >Pencereyi Aç</a>
</head>
<body>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Arka Plan Müziği
Kod:
Kod:
- Kod:
<!-- START MUSIC CODE -->
<script language="JavaScript" type="text/javascript">
if (navigator.appName == "Microsoft Internet Explorer") {
document.write('<bgsound src="background.mid" LOOP="true">');
}
else {
document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src="background.mid" AutoStart="true" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" volume="1" HEIGHT="1" WIDTH="1" loop="true"><br>');
}
// End -->
</script>
<!-- END MUSIC CODE -->
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Kayan Yazı(Marque Değil)
Kod:
Kod:
- Kod:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<title>Aşağıdan Yukarı Kayan Web Sayfası</title>
</head>
<body bgcolor="#FFFFFF">
<p align="center"><!--webbot bot="HTMLMarkup" startspan --><script language="JavaScript1.2">
//kayma hızı aşağıdan değiştirilecek
var speed=1
//_________________//
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}
function scrollwindow(){
if (document.all)
temp=iecompattest().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=iecompattest().scrollTop+speed
else
currentpos=window.pageYOffset+speed
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",10)
}
window.onload=initialize
</script><!--webbot bot="HTMLMarkup"
endspan --></p>
<div align="center"><center>
<table border="0" width="100%" cellspacing="3" cellpadding="0" bgcolor="#008000">
<tr>
<td width="100%"><div align="center"><center><table border="0" width="100%"
bgcolor="#FFFFFF" cellspacing="3" cellpadding="0">
<tr>
<td width="100%" valign="top" align="left">
<iframe src="http://ksabitk.awardspace.com" scrolling="no" width="100%" height="825"></iframe>
<iframe src="http://ksabitk.awardspace.com" scrolling="no" width="100%" height="825"></iframe>
</td>
</center></div></td>
</tr>
</table>
</center></div>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Aşağı Doğru Açılan Menü
Kod:
Kod:
- Kod:
<html>
<head>
<script type="text/javascript">
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0)
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}
function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Aşağya doğru açılan menü örnekleri</title>
</head>
<body>
<b><a href="search.htm" onClick="return overlay(this, 'subcontent')">Arama Motoru</a> </b><p> </p>
<p> </p>
<p> </p>
<p align="right"><b>
<a href="search.htm" onClick="return overlay(this, 'subcontent2', 'rightbottom')">Tıklayın</a> </b><br />
</p>
<DIV id="subcontent" style="position:absolute; border: 1px solid orange; background-color: #E1DD93; width: 300px; padding: 8px; display:none; left:12px; top:37px">
<p><b>Google Arama</b></p>
<!-- Search Google -->
<center>
<form method="get" action="http://www.tr.cc/asp/arama.html" target="_top">
<table bgcolor="#E1DD93">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<label for="sbi" style="display: none">Arama terimlerinizi girin</label>
<input type="text" name="q" size="31" maxlength="255" value="host" id="sbi"></input>
<label for="sbb" style="display: none">Arama formu gönder</label>
<input type="submit" name="sa" value="Ara" id="sbb"></input>
<input type="reset" value=" Sil ">
<input type="hidden" name="client" value="pub-1744912431168977"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-9"></input>
<input type="hidden" name="oe" value="ISO-8859-9"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11"></input>
<input type="hidden" name="hl" value="tr"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->
<div align="right"><a href="#" onClick="overlayclose('subcontent'); return false">
<span style="text-decoration: none">
<font color="#FF0000"><b>Kapat</b></font></span></a></div>
</DIV>
<p style="padding-left: 800px" align="left"><br /></p>
<DIV id="subcontent2" style="position:absolute; display:none; border: 1px solid gray; background-color: #E1DD93; width: 400px; height: 400px; padding: 8px; left:370px; top:186px">
İlgili metni , resmi vb. bilgileri buraya yerleştirebilirsiniz<p><a href="mailto:ksabitk( at )hotmail.com">
ksabitk( at )hotmail.com</a> <br>
<p><a href="http://www.saab.tr.cx">www.saab.tr.cx</a></p>
<div align="right"><a href="#" onClick="overlayclose('subcontent2'); return false">
<span style="text-decoration: none">
<font color="#FF0000"><b>Kapat</b></font></span></a></div>
</DIV>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Başlık Çubuğunda Kayan Yazı
Kod:
Kod:
- Kod:
<html>
<head>
<title> _Kayan Başlık Çubuğu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<script language="javascript">
<!--
//Begin dHTML Toolltip Timer
var tipTimer;
//End dHTML Toolltip Timer
function locateObject(n, d) { http://v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=locateObject(n,d.layers[i].document); return x;
}
function hideTooltip(object)
{
if (document.all)
{
locateObject(object).style.visibility="hidden"
locateObject(object).style.left = 1;
locateObject(object).style.top = 1;
return false
}
else if (document.layers)
{
locateObject(object).visibility="hide"
locateObject(object).left = 1;
locateObject(object).top = 1;
return false
}
else
return true
}
function showTooltip(object,e, tipContent, backcolor, bordercolor, textcolor, displaytime)
{
window.clearTimeout(tipTimer)
if (document.all)
{
locateObject(object).style.top=document.body.scrollTop+event.clientY+20
locateObject(object).innerHTML='<table style="font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px; border: '+bordercolor+'; border-style: solid; border-top-width: 1px; border-right-width: 1px;
border-bottom-width: 1px; border-left-width: 1px; background-color: '+backcolor+'" width="10" border="0" cellspacing="1"
cellpadding="1"><tr><td nowrap><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color:
'+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table> '
if ((e.x + locateObject(object).clientWidth) > (document.body.clientWidth +
document.body.scrollLeft))
{
locateObject(object).style.left = (document.body.clientWidth +
document.body.scrollLeft) - locateObject(object).clientWidth-10;
}
else
{
locateObject(object).style.left=document.body.scrollLeft+event.clientX
}
locateObject(object).style.visibility="visible"
tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
return true;
}
else if (document.layers)
{
locateObject(object).document.write('<table width="10" border="0" cellspacing="1" cellpadding="1"><tr
bgcolor="'+bordercolor+'"><td><table width="10" border="0" cellspacing="0" cellpadding="2"><tr bgcolor="'+backcolor+'"><td
nowrap><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color:
'+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table></td></tr></table>')
locateObject(object).document.close()
locateObject(object).top=e.y+20
if ((e.x + locateObject(object).clip.width) > (window.pageXOffset + window.innerWidth))
{
locateObject(object).left = window.innerWidth - locateObject(object).clip.width-10;
}
else
{
locateObject(object).left=e.x;
}
locateObject(object).visibility="show"
tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
return true;
}
else
{
return true;
}
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
color: #FF0000;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
}
-->
</style>
<!-- ##BEGIN SCROLLING TITLE -->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
// Scrolling Title Script is the source of RigTechnologies, Author M.Ravi kumar
// Being of Scrolling Title
var scroller
var speed=400 // To increase the speed of scrolling decrease the value, to reduce speed of scrolling increase the value here
var actualtitle=document.title+" "
function antiMilitaryTime() {
if (hr == "12"){
ampm="P.M."
}
else if (hr == "13"){
hr="1"
}
else if (hr == "14"){
hr="2"
}
else if (hr == "15"){
hr="3"
}
else if (hr == "16"){
hr = "4"
}
else if (hr == "17"){
hr = "5"
}
else if (hr == "18"){
hr = "6"
}
else if (hr == "19"){
hr = "7"
}
else if (hr == "20"){
hr = "8"
}
else if (hr == "21"){
hr = "9"
}
else if (hr == "22"){
hr = "10"
}
else if (hr == "23"){
hr = "11"
}
else if (hr == "24"){
hr = "12"
}
}
function addZero(){
if (min <= "9"){
min = "0"+min
}
if (sec<= "9"){
sec = "0"+sec
}
if (hr <=9){
hr = "0"+hr
}
}
function time(){
dt=new Date()
sec=dt.getSeconds()
hr=dt.getHours()
min=dt.getMinutes()
}
function scroll(){
time()
antiMilitaryTime()
addZero()
var scroller=" saat: "+hr+":"+min+":"+sec
document.title=actualtitle+scroller
var timeout=setTimeout("scroll()", 1000)
}
if (document.all||document.getElementById)
scroll()
var repeat=1 //enter 0 to not repeat scrolling after 1 run, To Scroll continously enter 1
var leng=document.title.length
var start=1
function titlemove(){
titl=document.title.substring(start, leng) + document.title.substring(0, start)
document.title=titl
start++
if (start==leng+1) {
start=0
if (repeat==0)
return
}
setTimeout("titlemove()",speed)
}
if (document.title)
titlemove()
// -->
</SCRIPT>
<!-- ##END SCROLLING TITLE-->
</head>
<body>
<p align="center"> </p>
<p align="center">
<a href="http://www.mydesign.gen.tr" target="_blank" style="text-decoration: none"><font size="2"
face="verdana">mydesign.gen.tr</a></p>
<!-- #BeginBehavior showTooltip1 -->
<div id="dHTMLToolTip" style="position: absolute; visibility: hidden; width:10; height: 10; z-index: 1000; left: 0; top:
0"></div>
<!-- #EndBehavior showTooltip1 -->
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Sayfanın Yüklenme Durmu
Kod:
Kod:
- Kod:
<SCRIPT language=VBScript>
<!--
Dim Bar, Line, SP
Bar = 0
Line = "|"
sP = 100
Function Window_onLoad()
Bar = 95
sP = 10
END Function
Function Count()
If Bar < 100 Then
Bar = Bar + 1
Window.Status = "Yükleniyor: " & Bar & "%" & " " & String(Bar, Line)
setTimeout "Count()", SP
Else
Window.Status = "Yükleme Bitti"
Document.Body.Style.Display = ""
End If
End Function
Call Count()
-->
</SCRIPT>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Yanıp Sönen Yazı
Kod:
Kod:
- Kod:
<SCRIPT language="JavaScript"><!---
var yazi = "Yanıp sönen yazılarla dikkat çekebilirsiniz...";
var hiz = 150;
var control = 1;
function flash()
{if (control == 1)
{window.status=yazi; control=0;}
else
{window.status=""; control=1;}
setTimeout("flash();",hiz);}
// --></SCRIPT>
<BODY OnLoad="flash();">
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Kayan Menü
Kod:
Kod:
- Kod:
<html>
<head>
<style>
a{color:navy;text-decoration:none;font:bold}
a:hover{color:red}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Etiket Kayan Menü</title>
</head>
<body>
<!-- Linklerin rengini head tagında bulunan style den belirleyiniz -->
<!--Menüleri aşağıdan belirleyin -->
<a href="#" onMouseover="showit(0)">Kod Kaynakları</a> |
<a href="#" onMouseover="showit(1)">Haber Kaynakları</a> |
<a href="http://www.saab.tr.cx" onmouseover="showit(2)">Hazırlayan</a>
<br>
<!--
Sorularınız için ;
ksabitk
ksabitk( at )hotmail.com
http://www.saab.tr.cx
-->
<ilayer width=400 height=32 name="dep1" bgColor="#E6E6FF">
<br><layer name="dep2" width=400 height=32>
</layer>
</ilayer>
<div id="describe" style="background-color:#F9CFC1;width:323px;height:80px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2">
var submenu=new Array()
//Kayan menüleri aşağıdan belirleyiniz
submenu[0]='<marquee direction="up" scrolldelay="240" height="80" onmouseover=stop(); onmouseout=start();><center><font size="2" face="Verdana"><b><a href="http://www.hazirkod.com">Hazır Kod</a> <br><a href="http://www.javascriptkit.com">JS tutorials</a> <br><a href="http://www.mydesign.gen.tr">Mydesign</a> <br><a href="http://www.javascriptindir.com">Javascript İndir</a></b></center></font></marquee>'
submenu[1]='<marquee direction="up" scrolldelay="240" height="80" onmouseover=stop(); onmouseout=start();><center><font size="2" face="Verdana"><b><a href="http://www.ntvmsnbc.com/">NTVMSNBC</a> <br><a href="http://www.haber7.com">Haber 7</a> <br><a href="http://www.internethaber.com">İnternet Haber</a> <br><a href="http://haber.mynet.com">Mynet Haber</a> <br><a href="http://www.milliyet.com.tr/index.asp?div=son">Milliyet Haber</a> </b></center></font></marquee>'
submenu[2]='<marquee direction="up" scrolldelay="240" height="80" onmouseover=stop(); onmouseout=start();><center><font size="2" face="Verdana"><b>Sorularınız için<br><a href="http://www.saab.tr.cx">www.saab.tr.cx</a> <br><a href="mailto:ksabitk( at )hotmail.com">ksabitk( at )hotmail.com</a></b></center></font></marquee>'
// Alt menü açılma hızı ( milisaniye )
var delay_hide=500
//Bundan sonrasına dokunmayınız
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Şerit Menü
Kod:
Kod:
- Kod:
<html>
<head>
<style>
a{color:navy;text-decoration:none;font:bold}
a:hover{color:red}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Şerit , Etiket Menü</title>
</head>
<body>
<!--Üstte bulunan linkleri buradan belirleyin -->
<a href="#" onMouseover="showit(0)">Kod Kaynakları</a> |
<a href="#" onMouseover="showit(1)">Dynamic Drive</a> |
<a href="http://www.saab.tr.cc" onmouseover="showit(2)">Hazırlayan</a>
<p>
<br>
<!-- Şerit uzunluğunu , arkaplan rengini aşağıdan değiştirebilirsiniz-->
<ilayer width=400 height=32 name="dep1" bgColor="#E6E6FF">
</p>
<layer name="dep2" width=400 height=32>
</layer>
</ilayer>
<div id="describe" style="background-color:#F9CFC1;width:436px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2">
var submenu=new Array()
//Şerit (alt) menüler
submenu[0]='<font size="2" face="Verdana"><b><a href="http://www.hazirkod.com">Hazır Kod</a> | <a href="http://www.javascriptkit.com">JS tutorials</a> | <a href="http://www.mydesign.gen.tr">Mydesign</a> | <a href="http://www.javascriptindir.com">Javascript İndir</a></b></font>'
submenu[1]='<font size="2" face="Verdana"><b><a href="http://www.dynamicdrive.com">Javascript</a> | <a href="http://www.dynamicdrive.com/dynamicindex1/">Menu&Navigasyon</a> | <a href="http://www.dynamicdrive.com/dynamicindex16/">Form</a> | <a href="http://www.dynamicdrive.com/dynamicindex4/">Resim</a> | <a href="http://www.dynamicdrive.com/style/">Css</a> </b></font>'
submenu[2]='<font size="2" face="Verdana"><b><a href="http://www.saab.tr.cx">www.saab.tr.cx</a> | <a href="mailto:ksabitk( at )hotmail.com">ksabitk( at )hotmail.com</a></b></font>'
// Alt menü açılma hızı ( milisaniye )
var delay_hide=500
//Bundan sonrasına dokunmayınız
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Rengarenk Giriş
Kod:
Kod:
- Kod:
<script language="JavaScript">
<!-- bahtiyar KOÇ (ALINTI)-->
<!-- Begin
var hexChars="0123456789ABCDEF";
function Dec2Hex (Dec) {
var a=Dec % 16;
var b=(Dec - a)/16;
hex="" + hexChars.charAt(b) + hexChars.charAt(a);
return hex;
}
function bgChanger (begin, end, steps) {
steps=steps-1 ;
redA=begin.charAt(0) + begin.charAt(1);
red_valA=parseInt(redA,'16');
redB=end.charAt(0) + end.charAt(1);
red_valB=parseInt(redB,'16');
red_int=((red_valB - red_valA) / steps) * -1;
grnA=begin.charAt(2) + begin.charAt(3);
grn_valA=parseInt(grnA,'16');
grnB=end.charAt(2) + end.charAt(3);
grn_valB=parseInt(grnB,'16');
grn_int=((grn_valB - grn_valA) / steps) * -1;
bluA=begin.charAt(4) + begin.charAt(5);
blu_valA=parseInt(bluA,'16');
bluB=end.charAt(4) + end.charAt(5);
blu_valB=parseInt(bluB,'16');
blu_int=((blu_valB - blu_valA) / steps) * -1;
step=2;
red=red_valA;
grn=grn_valA;
blu=blu_valA;
while ( steps >= step ) {
red-=red_int;
red_round=Math.round(red);
red_hex=Dec2Hex(red);
grn-=grn_int;
grn_round=Math.round(grn);
grn_hex=Dec2Hex(grn);
blu-=blu_int;
blu_round=Math.round(blu);
blu_hex=Dec2Hex(blu);
document.bgColor=red_hex + grn_hex + blu_hex;
step++;
}
}
bgChanger("000000","000000",60);
bgChanger("000000","FF0000",60);
bgChanger("FF0000","000000",60);
bgChanger("000000","AA00EE",60);
bgChanger("AA00EE","000000",60);
bgChanger("000000","0000FF",60);
bgChanger("0000FF","000000",60);
bgChanger("000000","000000",60);
bgChanger("000000","000000",60);
bgChanger("000000","FF0000",60);
bgChanger("FF0000","000000",60);
bgChanger("000000","AA00EE",60);
bgChanger("AA00EE","000000",60);
bgChanger("000000","0000FF",60);
bgChanger("0000FF","000000",60);
bgChanger("000000","000000",60);
bgChanger("0000FF","000000",60);
bgChanger("000000","000000",60);
window.location="http://www.75oal.com";
// End -->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Googlede Vurgulu Kelime
Kod:
Kod:
- Kod:
<script type="text/javascript">
//
// google.js
// Google Highlighter
//
// Copyright(C)2001 - 2003
// Cal Henderson <cal( at )iamcal.com>
//
// Thanks to Ian Beveridge for bugfixes
//
// This code may be freely redistributed,
// providing this message remains intact.
//
//Script featured on & available at Dynamic Drive (http://www.dynamicdrive.com)
//Changes: Modification to window.onload code
var google_text_color = '#000000';
var google_link_colors = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff');
function init_google(){
var pattern = /google\./i;
if (pattern.exec(document.referrer) != null){
var url_parts = document.referrer.split('?');
if (url_parts[1]){
var url_args = url_parts[1].split('&');
for(var i=0; i<url_args.length; i++){
var keyval = url_args[i].split('=');
if (keyval[0] == 'q'){
go_google(decode_url(keyval[1]));
return;
}
}
}
}
}
function decode_url(url){
return unescape(url.replace(/\+/g,' '));
}
function go_google(terms){
terms = terms.replace(/\"/g,"");
var terms_split = terms.split(' ');
var c = 0;
for(var i=0; i<terms_split.length; i++){
highlight_goolge(terms_split[i], document.body,google_link_colors[c]);
c = (c == google_link_colors.length-1)?0:c+1;
}
}
function highlight_goolge(term, container, color){
var term_low = term.toLowerCase();
for(var i=0; i<container.childNodes.length; i++){
var node = container.childNodes[i];
if (node.nodeType == 3){
var data = node.data;
var data_low = data.toLowerCase();
if (data_low.indexOf(term_low) != -1){
//term found!
var new_node = document.createElement('SPAN');
node.parentNode.replaceChild(new_node,node);
var result;
while((result = data_low.indexOf(term_low)) != -1){
new_node.appendChild(document.createTextNode(data.substr(0,result)));
new_node.appendChild(create_node_google(document.createTextNode(data.substr(result,term.length)),color));
data = data.substr(result + term.length);
data_low = data_low.substr(result + term.length);
}
new_node.appendChild(document.createTextNode(data));
}
}else{
//recurse
highlight_goolge(term, node, color);
}
}
}
function create_node_google(child, color){
var node = document.createElement('SPAN');
node.style.backgroundColor = color;
node.style.color = google_text_color;
node.appendChild(child);
return node;
}
if (window.addEventListener)
window.addEventListener("load", init_google, false)
else if (window.attachEvent)
window.attachEvent("onload", init_google)
else if (document.getElementById)
window.onload=init_google
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Renkli Yazı
Kod:
Kod:
- Kod:
<HTML>
<HEAD>
<TITLE>Gökkuşağı Renginde Yazı - MyDesign | Kod Arşivi</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin hide from old browsers
function createHexArray(n)
{
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = i - 1;
this[11] = "A";
this[12] = "B";
this[13] = "C";
this[14] = "D";
this[15] = "E";
this[16] = "F";
return this;
}
hx = new createHexArray(16);
function convertToHex(x)
{
if (x < 17)
x = 16;
var high = x / 16;
var s = high+"";
s = s.substring(0, 2);
high = parseInt(s, 10);
var left = hx[high + 1];
var low = x - high * 16;
if (low < 1)
low = 1;
s = low + "";
s = s.substring(0, 2);
low = parseInt(s, 10);
var right = hx[low + 1];
var string = left + "" + right;
return string;
}
function makeRainbow(text)
{
text = text.substring(0, text.length);
color_d1 = 255;
mul = color_d1 / text.length;
for(var i = 0; i < text.length; i++) {
color_d1 = 255*Math.sin(i / (text.length / 3));
color_h1 = convertToHex(color_d1);
color_d2 = mul * i;
color_h2 = convertToHex(color_d2);
k = text.length;
j = k - i;
if (j < 0)
j = 0;
color_d3 = mul * j;
color_h3 = convertToHex(color_d3);
document.write("<FONT COLOR=\"#" + color_h3 + color_h1 + color_h2 + "\">" + text.substring(i, i + 1) + "</FONT>");
}
}
// End hide from old browsers -->
</script>
</HEAD>
<body>
<center>
<strong>
<font size=6>
<script>
<!--
makeRainbow("MyDesign | Kod Arşivi");
document.write("<br>");
makeRainbow("Türkiye'nin Programlama Merkezi");
// -->
</script>
</font>
</strong>
</center>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Hareketli Menü
Kod:
Kod:
- Kod:
<HTML>
<HEAD>
<TITLE>Hareketli Menü</TITLE>
<META name="Generator" content="Microsoft FrontPage 4.0">
<style>
<!--
#slidemenubar, #slidemenubar2{
position:absolute;
left:-155px;
width:160px;
top:170px;
border:1.5px solid navy;
background-color:lightblue;
layer-background-color:lightblue;
font:bold 12px Verdana;
line-height:20px;
}
-->
</style>
</HEAD>
<BODY topmargin="0" leftmargin="0" link="#0000FF" vlink="#800080" alink="#FF0000">
<!-- Type your text here //-->
<script language="JavaScript1.2">
/*
Sliding Menu Bar Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
if (document.all)
document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">')
</script>
<layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
<script language="JavaScript1.2">
var sitems=new Array()
var sitemlinks=new Array()
//extend or shorten this list
sitems[0]="Mouse"
sitems[1]="panonun üzerine gelince!"
sitems[2]="açığa çıkıyor"
sitems[3]="her satırına"
sitems[4]="istediğinizi"
sitems[5]="yazabilirsiniz"
sitems[6]="Haraketli"
sitems[7]="Değişik"
sitems[8]="Denemeye değer"
sitems[9]=""
sitems[10]=""
sitems[11]=""
sitems[12]=""
//These are the links pertaining to the above text.
sitemlinks[0]="../test.htm"
sitemlinks[1]=".."
sitemlinks[2]="../dynamicindex1/index.html"
sitemlinks[3]="../dynamicindex3/index.html"
sitemlinks[4]="../dynamicindex2/index.html"
sitemlinks[5]="../dynamicindex4/index.html"
sitemlinks[6]="../dynamicindex5/index.html"
sitemlinks[7]="../dynamicindex6/index.html"
sitemlinks[8]="../dynamicindex10/index.html"
sitemlinks[9]="../dynamicindex8/index.html"
sitemlinks[10]="../dynamicindex9/index.html"
sitemlinks[11]="../dynamicindex7/index.html"
sitemlinks[12]="../dynamicindex11/index.html"
for (i=0;i<=sitems.length-1;i++)
document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>')
</script>
</layer>
<script language="JavaScript1.2">
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}
window.onload=regenerate2
if (document.all){
document.write('</div>')
themenu=document.all.slidemenubar2.style
rightboundary=0
leftboundary=-150
}
else{
themenu=document.layers.slidemenubar
rightboundary=150
leftboundary=10
}
function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",50)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",50)
}
function pullengine(){
if (document.all&&themenu.pixelLeft<rightboundary)
themenu.pixelLeft+=5
else if(document.layers&&themenu.left<rightboundary)
themenu.left+=5
else if (window.pullit)
clearInterval(pullit)
}
function drawengine(){
if (document.all&&themenu.pixelLeft>leftboundary)
themenu.pixelLeft-=5
else if(document.layers&&themenu.left>leftboundary)
themenu.left-=5
else if (window.drawit)
clearInterval(drawit)
}
</script>
</BODY>
</HTML>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
İşletim Sistemini Bulma
Kod:
Kod:
- Kod:
<HTML>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkOS() {
if(navigator.userAgent.indexOf('IRIX') != -1)
{ var OpSys = "Irix"; }
else if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('95') != -1))
{ var OpSys = "Windows 95"; }
else if(navigator.userAgent.indexOf('Win') != -1)
{ var OpSys = "Windows3.1 veya NT"; }
else if(navigator.userAgent.indexOf('Mac') != -1)
{ var OpSys = "Macintosh"; }
else { var OpSys = "diger;"; }
return OpSys;
}
// -->
</SCRIPT>
<BODY BGCOLOR="#FFFFFF">
İşletim sisteminiz: <b>
<SCRIPT LANGUAGE="JavaScript">
<!--
var OpSys = checkOS();
document.write(OpSys);
// -->
</SCRIPT>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Sanal Sayfalama
Kod:
Kod:
- Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JavaScript ile Sayfalama - MyDesign | Kod Arşivi</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254" />
<script type="text/javascript">
/***********************************************
* Virtual Pagination script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
// -------------------------------------------------------------------
// Virtual Pagination Script- By Dynamic Drive, available at: http://www.dynamicdrive.com
// Last updated: May 31st, 2007
//
// PUBLIC: virtualpaginate(className, chunksize)
// Main Virtual Paginate Object function.
// -------------------------------------------------------------------
function virtualpaginate(className, chunksize, elementType){
var elementType=(typeof elementType=="undefined")? "div" : elementType //The type of element used to divide up content into pieces. Defaults to "div"
this.pieces=virtualpaginate.collectElementbyClass(className, elementType) //get total number of divs matching class name
//Set this.chunksize: 1 if "chunksize" param is undefined, "chunksize" if it's less than total pieces available, or simply total pieces avail (show all)
this.chunksize=(typeof chunksize=="undefined")? 1 : (chunksize>0 && chunksize <this.pieces.length)? chunksize : this.pieces.length
this.pagecount=Math.ceil(this.pieces.length/this.chunksize) //calculate number of "pages" needed to show the divs
this.showpage(-1) //show no pages (aka hide all)
this.currentpage=0 //Having hidden all pages, set currently visible page to 1st page
this.showpage(this.currentpage) //Show first page
}
// -------------------------------------------------------------------
// PRIVATE: collectElementbyClass(classname)- Returns an array containing DIVs with the specified classname
// -------------------------------------------------------------------
virtualpaginate.collectElementbyClass=function(classname, element){ //Returns an array containing DIVs with specified classname
var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i") //regular expression to screen for classname within element
var pieces=[]
var alltags=document.getElementsByTagName(element)
for (var i=0; i<alltags.length; i++){
if (typeof alltags[i].className=="string" && alltags[i].className.search(classnameRE)!=-1)
pieces[pieces.length]=alltags[i]
}
return pieces
}
// -------------------------------------------------------------------
// PUBLIC: showpage(pagenumber)- Shows a page based on parameter passed (0=page1, 1=page2 etc)
// -------------------------------------------------------------------
virtualpaginate.prototype.showpage=function(pagenumber){
var totalitems=this.pieces.length //total number of broken up divs
var showstartindex=pagenumber*this.chunksize //array index of div to start showing per pagenumber setting
var showendindex=showstartindex+this.chunksize-1 //array index of div to stop showing after per pagenumber setting
for (var i=0; i<totalitems; i++){
if (i>=showstartindex && i<=showendindex)
this.pieces[i].style.display="block"
else
this.pieces[i].style.display="none"
}
this.currentpage=parseInt(pagenumber)
if (this.cpspan) //if <span class="paginateinfo> element is present, update it with the most current info (ie: Page 3/4)
this.cpspan.innerHTML='Page '+(this.currentpage+1)+'/'+this.pagecount
}
// -------------------------------------------------------------------
// PRIVATE: paginate_build_() methods- Various methods to create pagination interfaces
// paginate_build_selectmenu(paginatedropdown)- Accepts an empty SELECT element and turns it into pagination menu
// paginate_build_regularlinks(paginatelinks)- Accepts a collection of links and screens out/ creates pagination out of ones with specific "rel" attr
// paginate_build_flatview(flatviewcontainer)- Accepts <span class="flatview"> element and replaces it with sequential pagination links
// paginate_build_cpinfo(cpspan)- Accepts <span class="paginateinfo"> element and displays current page info (ie: Page 1/4)
// -------------------------------------------------------------------
virtualpaginate.prototype.paginate_build_selectmenu=function(paginatedropdown, anchortext){
var instanceOfBox=this
var anchortext=anchortext || new Array()
this.selectmenupresent=1
for (var i=0; i<this.pagecount; i++){
if (typeof anchortext[i]!="undefined") //if custom anchor text for this link exists, use anchor text as each OPTION's text
paginatedropdown.options[i]=new Option(anchortext[i], i)
else //else, use auto incremented, sequential numbers
paginatedropdown.options[i]=new Option("Page "+(i+1)+" of "+this.pagecount, i)
}
paginatedropdown.selectedIndex=this.currentpage
paginatedropdown.onchange=function(){
instanceOfBox.showpage(this.selectedIndex)
}
}
virtualpaginate.prototype.paginate_build_regularlinks=function(paginatelinks){
var instanceOfBox=this
for (var i=0; i<paginatelinks.length; i++){
var currentpagerel=paginatelinks[i].getAttribute("rel")
if (currentpagerel=="previous" || currentpagerel=="next" || currentpagerel=="first" || currentpagerel=="last") //screen for these "rel" values
paginatelinks[i].onclick=function(){
instanceOfBox.navigate(this.getAttribute("rel"))
return false
}
}
}
virtualpaginate.prototype.paginate_build_flatview=function(flatviewcontainer, anchortext){
var instanceOfBox=this
var flatviewhtml=""
var anchortext=anchortext || new Array()
for (var i=0; i<this.pagecount; i++){
if (typeof anchortext[i]!="undefined") //if custom anchor text for this link exists
flatviewhtml+='<a href="#flatview" rel="'+i+'">'+anchortext[i]+'</a> ' //build pagination link using custom anchor text
else
flatviewhtml+='<a href="#flatview" rel="'+i+'">'+(i+1)+'</a> ' //build pagination link using auto incremented sequential number instead
}
flatviewcontainer.innerHTML=flatviewhtml
this.flatviewlinks=flatviewcontainer.getElementsByTagName("a")
for (var i=0; i<this.flatviewlinks.length; i++){
this.flatviewlinks[i].onclick=function(){
instanceOfBox.flatviewlinks[instanceOfBox.currentpage].className="" //"Unhighlight" last flatview link clicked on...
this.className="selected" //while "highlighting" currently clicked on flatview link (setting its class name to "selected"
instanceOfBox.showpage(this.getAttribute("rel"))
return false
}
}
this.flatviewlinks[this.currentpage].className="selected" //"Highlight" current page
this.flatviewpresent=true //indicate flat view links are present
}
virtualpaginate.prototype.paginate_build_cpinfo=function(cpspan){
this.cpspan=cpspan
cpspan.innerHTML='Page '+(this.currentpage+1)+'/'+this.pagecount
}
// -------------------------------------------------------------------
// PRIVATE: buildpagination()- Create pagination interface by calling one or more of the paginate_build_() functions
// -------------------------------------------------------------------
virtualpaginate.prototype.buildpagination=function(divid, optnavtext){
var instanceOfBox=this
var paginatediv=document.getElementById(divid)
if (this.chunksize==this.pieces.length){ //if user has set to display all pieces at once, no point in creating pagination div
paginatediv.style.display="none"
return
}
var paginationcode=paginatediv.innerHTML //Get user defined, "unprocessed" HTML within paginate div
if (paginatediv.getElementsByTagName("select").length>0) //if there's a select menu in div
this.paginate_build_selectmenu(paginatediv.getElementsByTagName("select")[0], optnavtext)
if (paginatediv.getElementsByTagName("a").length>0) //if there are links defined in div
this.paginate_build_regularlinks(paginatediv.getElementsByTagName("a"))
var allspans=paginatediv.getElementsByTagName("span") //Look for span tags within passed div
for (var i=0; i<allspans.length; i++){
if (allspans[i].className=="flatview")
this.paginate_build_flatview(allspans[i], optnavtext)
else if (allspans[i].className=="paginateinfo")
this.paginate_build_cpinfo(allspans[i])
}
this.paginatediv=paginatediv
}
// -------------------------------------------------------------------
// PRIVATE: navigate(keyword)- Calls this.showpage() with the currentpage property preset based on entered keyword
// -------------------------------------------------------------------
virtualpaginate.prototype.navigate=function(keyword){
if (this.flatviewpresent)
this.flatviewlinks[this.currentpage].className="" //"Unhighlight" previous page (before this.currentpage increments)
if (keyword=="previous")
this.currentpage=(this.currentpage>0)? this.currentpage-1 : (this.currentpage==0)? this.pagecount-1 : 0
else if (keyword=="next")
this.currentpage=(this.currentpage<this.pagecount-1)? this.currentpage+1 : 0
else if (keyword=="first")
this.currentpage=0
else if (keyword=="last")
this.currentpage=this.pieces.length-1
this.showpage(this.currentpage)
if (this.selectmenupresent)
this.paginatediv.getElementsByTagName("select")[0].selectedIndex=this.currentpage
if (this.flatviewpresent)
this.flatviewlinks[this.currentpage].className="selected" //"Highlight" current page
}
</script>
<style type="text/css">
/*Sample CSS used for the Virtual Pagination Demos. Modify/ remove as desired*/
.virtualpage, .virtualpage2, .virtualpage3{
/*hide the broken up pieces of contents until script is called. Remove if desired*/
display: none;
}
.paginationstyle{ /*Style for demo pagination divs*/
width: 250px;
text-align: center;
padding: 2px 0;
margin: 10px 0;
}
.paginationstyle select{ /*Style for demo pagination divs' select menu*/
border: 1px solid navy;
margin: 0 15px;
}
.paginationstyle a{ /*Pagination links style*/
padding: 0 5px;
text-decoration: none;
border: 1px solid black;
color: navy;
background-color: white;
}
.paginationstyle a:hover, .paginationstyle a.selected{
color: #000;
background-color: #FEE496;
}
.paginationstyle a.imglinks{ /*Pagination Image links style (class="imglinks") */
border: 0;
padding: 0;
}
.paginationstyle a.imglinks img{
vertical-align: bottom;
border: 0;
}
.paginationstyle a.imglinks a:hover{
background: none;
}
.paginationstyle .flatview a:hover, .paginationstyle .flatview a.selected{ /*Pagination div "flatview" links style*/
color: #000;
background-color: yellow;
}
</style>
</head>
<body>
<div style="width: 300px; height: 230px;">
<div class="virtualpage"><a href="http://www.mydesign.gen.tr/kod/619.html"><b>Ajax RSS Okuyucu</b></a>:
Ajax ile, belirttiğiniz Rss kaynağındaki verileri istediğiniz kritere göre sıralayarak listeleyen kod</div>
<div class="virtualpage"><a href="http://www.mydesign.gen.tr/kod/618.html"><b>Gökkuşağı Renginde Yazı Yazma Fonksiyonu</b></a>:
JavaScript kodu ile geçiş efekti sağlayan ve herhangi bir renk kodu girmenize gerek kalmadan göökuşağı renginde yazı efekti oluşturmanızı sağlayan fonksiyon</div>
<div class="virtualpage"><a href="http://www.mydesign.gen.tr/kod/617.html"><b>Serverda bulunan email ve upload bileşenleri</b></a>:
Serverda yüklü olan email ve upload bileşenlerini görüntüler. Eğer bu bileşenler yok ise yüklü değil yazar</div>
<div class="virtualpage"><a href="http://www.mydesign.gen.tr/kod/616.html"><b>Asp ile Bilgisayarın Adını Yazdıralım</b></a>:
Bu kod ile server üzerinde nesne oluşturulur, bu nesne sayesinde bilgisayarın adı ekrana yazdırılabilir.</div>
</div>
<div id="gallerypaginate" class="paginationstyle">
<a href="#" rel="previous">Önceki</a> <span class="flatview"></span> <a href="#" rel="next">Sonraki</a>
</div>
<script type="text/javascript">
var gallery=new virtualpaginate("virtualpage", 1)
gallery.buildpagination("gallerypaginate")
</script>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Kar Yağdırma
Kod:
Kod:
- Kod:
<script LANGUAGE="JavaScript1.2">
<!-- Bahtiyar KOÇ (Alıntıdır) -->
<!-- Web Site: http://www.altan.hr/snow -->
<!-- Begin
var no = 25; // anlık kar adeti
var speed = 15; // küçük numaralar hızlı akış sağlar
var snowflake = "resimler/snow.gif";
var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
}
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
}
}
}
function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Kredi Kartı Nurmara Doğrulama
Kod:
Kod:
- Kod:
/*--------------------------------------------*/
/* */
/* Function : isCreditCard() */
/* Purpose : Check if cc is LUHN10 */
/* */
/* Parameters: cc - the cc number */
/* */
/* Returns : boolean */
/* */
/* Usage : isCreditCard(cc) */
/*--------------------------------------------- */
function isCreditCard( CC )
{
if (CC.length > 19)
return (false);
sum = 0; mul = 1; l = CC.length;
for (i = 0; i < l; i++)
{
digit = CC.substring(l-i-1,l-i);
tproduct = parseInt(digit ,10)*mul;
if (tproduct >= 10)
sum += (tproduct % 10) + 1;
else
sum += tproduct;
if (mul == 1)
mul++;
else
mul--;
}
if ((sum % 10) == 0)
return (true);
else
return (false);
}
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Belirli Bir Bölgeyi Gösterme
Kod:
Kod:
- Kod:
<html>
<head>
<script>
function layerSetup(id,visibility) {
if(document.getElementById)
{
this.obj = document.getElementById(id).style;
this.obj.visibility = visibility;
return this.obj;
}
else if(document.all)
{
this.obj = document.all[id].style;
this.obj.visibility = visibility;
return this.obj;
}
else if(document.layers)
{
this.obj = document.layers[id];
this.obj.visibility = visibility;
return this.obj;
}
}
function visVisible(param) {
new layerSetup(param,'visible');
}
function visHidden(param){
new layerSetup(param,'hidden');
}
</script>
</head>
<body>
<a href="#" onclick="visVisible('id1')">1 Numaralı Kutuyu Göster</a>
<a href="#" onclick="visVisible('id2')">2 Numaralı Kutuyu Göster</a>
<a href="#" onclick="visVisible('id3')">3 Numaralı Kutuyu Göster</a><br>
<br>
<a href="#" onclick="visHidden('id1')">1 Numaralı Kutuyu Gizle</a>
<a href="#" onclick="visHidden('id2')">2 Numaralı Kutuyu Gizle</a>
<a href="#" onclick="visHidden('id3')">3 Numaralı Kutuyu Gizle</a>
<br>
<br>
<div id="id1">1 Numaralı Kutu</div><br>
<div id="id2">2 Numaralı Kutu</div><br>
<div id="id3">3 Numaralı Kutu</div>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Sayfa Kaynağını Görme
Kod:
Kod:
- Kod:
<script type="text/javascript" language="JavaScript">
function KaynakKod() {
window.location = "view-source:" + window.location.href }
</script>
<a href=javascript:KaynakKod()>Kaynağı Görüntüle</a>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Mail Doğrulama
Kod:
Kod:
- Kod:
<SCRIPT language=JavaScript>
function regKontrol(pattern, value)
{
r = new RegExp(pattern, "g");
return r.test(value);
}
function formKontrol(form)
{
patternEposta = "^"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"@"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"[\.]"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"$";
if ( !regKontrol(patternEposta,form.email.value))
{
alert("Lütfen Doğru Bir E-posta Adresi Giriniz.");
form.email.value="";
form.email.focus();
return false;
}
return true;
}
</SCRIPT>
<form method="post" action="form_isle.html" name="frmKayitFormu" onsubmit="return formKontrol(this);">
<table width="100%" cellpadding="6" cellspacing="0" border="0">
<tr>
<td>E-Posta: </td>
<td><input type="text" name="email" maxlength="50"></td>
<td><input type="submit" value=" Gönder "></td>
</tr>
</table>
</form>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Matrix Efekti
Kod:
Kod:
- Kod:
<!-- Bu kodları sayfanın <head> .. </head> kodları arasına yerleştirin-->
<style type="text/css">
.matrix { font-family:Lucida Console, Courier, Monotype; font-size:10pt; text-align:center; width:10px; padding:0px; margin:0px;}
</style>
<script type="text/javascript" language="JavaScript">
<!--
var rows=11; // tek sayı olmalıdır
var speed=50; // hız (küçük olursa daha hızlı olur)
var reveal=2; // 0 ile 0 arasında olabilir. Yüksek olursa harfler daha hızlı görünür
var effectalign="default" //enter "center" to center it.
/***********************************************
* The Matrix Text Effect- by Richard Womersley (http://www.mf2fm.co.uk/rv)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var w3c=document.getElementById && !window.opera;;
var ie45=document.all && !window.opera;
var ma_tab, matemp, ma_bod, ma_row, x, y, columns, ma_txt, ma_cho;
var m_coch=new Array();
var m_copo=new Array();
window.onload=function() {
if (!w3c && !ie45) return
var matrix=(w3c)?document.getElementById("matrix"):document.all["matrix"];
ma_txt=(w3c)?matrix.firstChild.nodeValue:matrix.innerHTML;
ma_txt=" "+ma_txt+" ";
columns=ma_txt.length;
if (w3c) {
while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]);
ma_tab=document.createElement("table");
ma_tab.setAttribute("border", 0);
ma_tab.setAttribute("align", effectalign);
ma_tab.style.backgroundColor="#000000";
ma_bod=document.createElement("tbody");
for (x=0; x<rows; x++) {
ma_row=document.createElement("tr");
for (y=0; y<columns; y++) {
matemp=document.createElement("td");
matemp.setAttribute("id", "Mx"+x+"y"+y);
matemp.className="matrix";
matemp.appendChild(document.createTextNode(String.fromCharCode(160)));
ma_row.appendChild(matemp);
}
ma_bod.appendChild(ma_row);
}
ma_tab.appendChild(ma_bod);
matrix.appendChild(ma_tab);
} else {
ma_tab='<ta'+'ble align="'+effectalign+'" border="0" style="background-color:#000000">';
for (var x=0; x<rows; x++) {
ma_tab+='<t'+'r>';
for (var y=0; y<columns; y++) {
ma_tab+='<t'+'d class="matrix" id="Mx'+x+'y'+y+'"> </'+'td>';
}
ma_tab+='</'+'tr>';
}
ma_tab+='</'+'table>';
matrix.innerHTML=ma_tab;
}
ma_cho=ma_txt;
for (x=0; x<columns; x++) {
ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94));
m_copo[x]=0;
}
ma_bod=setInterval("mytricks()", speed);
}
function mytricks() {
x=0;
for (y=0; y<columns; y++) {
x=x+(m_copo[y]==100);
ma_row=m_copo[y]%100;
if (ma_row && m_copo[y]<100) {
if (ma_row<rows+1) {
if (w3c) {
matemp=document.getElementById("Mx"+(ma_row-1)+"y"+y);
matemp.firstChild.nodeValue=m_coch[y];
}
else {
matemp=document.all["Mx"+(ma_row-1)+"y"+y];
matemp.innerHTML=m_coch[y];
}
matemp.style.color="#33ff66";
matemp.style.fontWeight="bold";
}
if (ma_row>1 && ma_row<rows+2) {
matemp=(w3c)?document.getElementById("Mx"+(ma_row-2)+"y"+y):document.all["Mx"+(ma_row-2)+"y"+y];
matemp.style.fontWeight="normal";
matemp.style.color="#00ff00";
}
if (ma_row>2) {
matemp=(w3c)?document.getElementById("Mx"+(ma_row-3)+"y"+y):document.all["Mx"+(ma_row-3)+"y"+y];
matemp.style.color="#009900";
}
if (ma_row<Math.floor(rows/2)+1) m_copo[y]++;
else if (ma_row==Math.floor(rows/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y);
else if (ma_row<rows+2) m_copo[y]++;
else if (m_copo[y]<100) m_copo[y]=0;
}
else if (Math.random()>0.9 && m_copo[y]<100) {
m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length));
m_copo[y]++;
}
}
if (x==columns) clearInterval(ma_bod);
}
function zoomer(ycol) {
var mtmp, mtem, ytmp;
if (m_copo[ycol]==Math.floor(rows/2)+1) {
for (ytmp=0; ytmp<rows; ytmp++) {
if (w3c) {
mtmp=document.getElementById("Mx"+ytmp+"y"+ycol);
mtmp.firstChild.nodeValue=m_coch[ycol];
}
else {
mtmp=document.all["Mx"+ytmp+"y"+ycol];
mtmp.innerHTML=m_coch[ycol];
}
mtmp.style.color="#33ff66";
mtmp.style.fontWeight="bold";
}
if (Math.random()<reveal) {
mtmp=ma_cho.indexOf(ma_txt.charAt(ycol));
ma_cho=ma_cho.substring(0, mtmp)+ma_cho.substring(mtmp+1, ma_cho.length);
}
if (Math.random()<reveal-1) ma_cho=ma_cho.substring(0, ma_cho.length-1);
m_copo[ycol]+=199;
setTimeout("zoomer("+ycol+")", speed);
}
else if (m_copo[ycol]>200) {
if (w3c) {
mtmp=document.getElementById("Mx"+(m_copo[ycol]-201)+"y"+ycol);
mtem=document.getElementById("Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol);
}
else {
mtmp=document.all["Mx"+(m_copo[ycol]-201)+"y"+ycol];
mtem=document.all["Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol];
}
mtmp.style.fontWeight="normal";
mtem.style.fontWeight="normal";
setTimeout("zoomer("+ycol+")", speed);
}
else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(rows/2);
if (m_copo[ycol]>100 && m_copo[ycol]<200) {
if (w3c) {
mtmp=document.getElementById("Mx"+(m_copo[ycol]-101)+"y"+ycol);
mtmp.firstChild.nodeValue=String.fromCharCode(160);
mtem=document.getElementById("Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol);
mtem.firstChild.nodeValue=String.fromCharCode(160);
}
else {
mtmp=document.all["Mx"+(m_copo[ycol]-101)+"y"+ycol];
mtmp.innerHTML=String.fromCharCode(160);
mtem=document.all["Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol];
mtem.innerHTML=String.fromCharCode(160);
}
setTimeout("zoomer("+ycol+")", speed);
}
}
// -->
</script>
<!-- Bu kısmı da mesajın görünmesini istediğiniz yere yazın-->
<div id="matrix">mydesign.gen.tr</div>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Mors Alfabe
Kod:
Kod:
- Kod:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Mors Alfabe'si</title>
</head>
<body>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
//Bu kodlar JAVASCRIPTKID.COM dan alınmış ve tarafımdan türkçeleştirimiştir.
//Bazı yerlerinde değişiklik yapılmıştır; alert , mail gibi ...
//Kodların kullanımı ve değiştirilmesi yönünde aksine bir uyarı bulunmamaktadır.
//Amaç bir zamanlar okulda görüpte asla öğrenemediğimiz mors alfabesini biraz daha inceleme imkanı yaratmak istememizdir.
//Extrem bir durum olmadığı sürece bu alfabenin bir işe yaramayacağını unatmayalım.
var charCodes=new Array(36); charCodes["a"]=". _";
charCodes["b"]="_ . . .";
charCodes["c"]="_ . _ .";
charCodes["d"]="_ . .";
charCodes["e"]=".";
charCodes["f"]=". . _ .";
charCodes["g"]="_ _ .";
charCodes["h"]=". . . .";
charCodes["i"]=". .";
charCodes["j"]=". _ _ _";
charCodes["k"]="_ . _";
charCodes["l"]=". _ . .";
charCodes["m"]="_ _";
charCodes["n"]="_ .";
charCodes["o"]="_ _ _";
charCodes["p"]=". _ _ .";
charCodes["q"]="_ _ . _";
charCodes["r"]=". _ .";
charCodes["s"]=". . .";
charCodes["t"]="_";
charCodes["u"]=". . _";
charCodes["v"]=". . . _";
charCodes["w"]=". _ _";
charCodes["x"]="_ . . _";
charCodes["y"]="_ . _ _";
charCodes["z"]="_ _ . .";
charCodes["1"]=". _ _ _ _";
charCodes["2"]=". . _ _ _";
charCodes["3"]=". . . _ _";
charCodes["4"]=". . . . _";
charCodes["5"]=". . . . .";
charCodes["6"]="_ . . . .";
charCodes["7"]="_ _ . . .";
charCodes["8"]="_ _ _ . .";
charCodes["9"]="_ _ _ _ .";
charCodes["0"]="_ _ _ _ _";
var temp=''
function encode() {
document.morsecode.chars.value=document.morsecode.chars.value.toLowerCase();
document.morsecode.codebox.value="Yazılan Metin ";
temp=''
var chars=document.morsecode.chars.value.split("");
for (a=0; a<chars.length; a++) {
if (chars[a]!=" ") {
if (window.charCodes[chars[a]]) {
document.morsecode.codebox.value+=charCodes[chars[a]]+" ";
temp+=chars[a]+"="+charCodes[chars[a]]+"\n";
}
else
temp+=chars[a]+"=(None)\n";
}
else temp+="\n";
}
document.morsecode.codebox.value+="\n\n\nAÇIKLAMA:\n\n"+temp
}
// -->
</SCRIPT>
<FORM NAME="morsecode">
Herhangi bir metni <b>mors</b> alfabesine çevirin: <INPUT TYPE="TEXT" NAME="chars" size="28" value="İmdat">
<INPUT TYPE="button" VALUE="Kod'la" onClick="encode()"><BR>Unutmayınız ki; mors
alfabesinde <b>Türkçe</b> karakter yoktur. <BR>
<TEXTAREA NAME="codebox" cols="50" rows="10" style="width:70%" wrap="virtual"> </TEXTAREA><br>
<INPUT TYPE="button" VALUE=" Kopyala " onClick="document.morsecode.codebox.select(); document.execCommand('Copy');alert('(CTRL), V ile yapıştırabilirsiniz'); ";>
<input type="button" value="Bana Mail Atın" onclick="parent.location='mailto:ksabitk( at )hotmail.com'">
</FORM>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Onay Mesajı
Kod:
Kod:
- Kod:
<input type="button" name="btnReset" value="Temizle" onClick="javascript:ResetTheForm(this.form)">
<script language="javascript">
function ResetTheForm(form)
{
if (confirm("Formu temizlemek istediğinize emin misiniz?"))
{
form.reset();
}
}
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Pop-up Oluştur
Kod:
Kod:
- Kod:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function edevlet()
{
msg=window.open("","msg","height=470,width=250,left=80,top=80");
//-- height=500(boy) width=250(en)
msg.document.write("<html><title>e-Devlet</title>");
msg.document.write("<body bgcolor='lightyellow' onblur=window.close()>");
//-- Arkaplan rengini yukarıdan değiştirebilirsiniz
msg.document.write("<center><b>Elektronik Devlet uygulamaları</b> </center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/tc_kimlik_no.asp><b>TC Kimlik No</b></a> </center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/vergi_kimlik_no.asp><b>Vergi Kimlik No</b></a> </center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/ssk.asp><b>SSK Hizmet Dökümü</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/internet_vergi_dairesi.asp><b>İnternet Vergi Dairesi</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/motorlu_tasitlar.asp><b>Motorlu Taşıtlar Vergisi</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/rehber.asp><b>Telefon Rehberi</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/osym_sinav_sonuclari.asp><b>ÖSYM Sınav Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/oss.asp><b>Öss Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/kpss.asp><b>KPSS Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/kpds.asp><b>KPDS Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/les.asp><b>LES Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/tus.asp><b>TUS Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/uds.asp><b>ÜDS Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/als.asp><b>ALS Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/dgs.asp><b>DGS Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/osym_diger_sinav_sonuclari.asp><b>Diğer Sınav Sonuçları</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/osym_sinav_takvimi.asp><b>ÖSYM Sınav Takvimi</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/online_hizmetler.asp><b>Online Hizmetler</b></a></center>");
msg.document.write("<center><a target=_blank href=http://www.devletim.com/universite.asp><b>Üniversiteler</b></a></center>");
msg.document.write("<center><a target=_blank href=mailto:ksabitk( at )hotmail.com><b>Pop-up Hazırlayan</b></a></center>");
//-- Ekleyecekleriniz bitmedi ise yukarıdaki diziyi aynen takip etmelisiniz
msg.document.write("<center><FORM> <INPUT TYPE=BUTTON VALUE=Kapat NAME=lowerButton onClick=self.close()> </FORM></center>");
msg.document.write("</body></html><p>");
}
// End -->
//-- fonksiyonumuzun adı edevlet
//-- aynı sayfada 1 den fazla popup oluşturacaksanız diğerlerinin adını değiştirmelisiniz
//-- ve <body> tagında fonksiyonu çağırdığımız kısımda değişmelidir
//--
</script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
</head>
<body>
<form>
<input type="button" value="Elektronik Devlet Uygulamaları" onclick="edevlet()" style="font-weight: bold; font-family: Arial">
</form>
<!-- <head> tagında görünmeyeni çağırdığımız fonksiyon yukarıda onclick=edevlet()
fazla sayıda popup kullanacaksanız
fonksiyon isimlerine dikkat
-->
<font face="Arial Black"><b><a href="javascript:edevlet()">
<font color="#000080">Elektronik Devlet Uygulamaları</font></a><font color="#000080">
</font></b></font>
<p><font face="Arial" size="2">Buton yada Metin iki link'te aynı pop-up'u açar dilediğinizi seçin</font></p>
<p><font face="Arial" size="2">Değişikliğe gidebileceğiniz bölümler kodlar içerisinde
anlatılmaktadır.</font></p>
<INPUT TYPE="button" VALUE="ksabitk( at )hotmail.com" onClick="parent.location='mailto:ksabitk( at )hotmail.com'" style="font-weight: bold; font-family:ar">;
</body>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Pop-up Yapıcı
Kod:
Kod:
- Kod:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Pop-Up oluşturucu</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function customize(form) {
var address = document.form1.url.value;
var op_tool = (document.form1.tool.checked== true) ? 1 : 0;
var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0;
var op_dir = (document.form1.dir.checked == true) ? 1 : 0;
var op_stat = (document.form1.stat.checked == true) ? 1 : 0;
var op_menu = (document.form1.menu.checked == true) ? 1 : 0;
var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0;
var op_resize = (document.form1.resize.checked == true) ? 1 : 0;
var op_wid = document.form1.wid.value;
var op_heigh = document.form1.heigh.value;
var option = "toolbar=" + op_tool + ",location=" + op_loc_box + ",directories="
+ op_dir + ",status=" + op_stat
+ ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizeable=" + op_resize
+ ",width="
+ op_wid + ",height=" + op_heigh;
var win3 = window.open("", "what_I_want", option);
var win4 = window.open(address, "what_I_want");
}
function clear(form){
document.form1.wid.value="";
document.form1.heigh.value="";
}
// done hiding -->
</SCRIPT>
</head>
<body>
<CENTER>
<TABLE cellpadding=0 border="0" height="312" width="225" cellspacing="0"><TR><TD><PRE>
<FORM name=form1 ACTION="javascript:" METHOD="POST">
<INPUT TYPE="text" SIZE= "30" NAME="url" value="http://www.saab.tr.cx" >: URL
<INPUT TYPE="checkbox" NAME="tool">: Toolbar
<INPUT TYPE="checkbox" NAME="loc_box">: Location
<INPUT TYPE="checkbox" NAME="dir">: Directories
<INPUT TYPE="checkbox" NAME="stat">: Status
<INPUT TYPE="checkbox" NAME="menu">: Menubar
<INPUT TYPE="checkbox" NAME="scroll">: Scrollbars
<INPUT TYPE="checkbox" NAME="resize">: Resizable
<INPUT TYPE="text" NAME="wid" value="790">: Width
<INPUT TYPE="text" NAME="heigh" value="300">: Height
<BR><CENTER>
<INPUT TYPE="button" SIZE="10" VALUE=" TAMAM " OnClick="customize(this.form)">
<INPUT TYPE="reset" SIZE="10" VALUE=" SİL " onClick="clear(this.form)">
</PRE></TD></TR></TABLE>
</FORM>
</CENTER>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Slayt Gösterisi
Kod:
Kod:
- Kod:
<script type="text/javascript">
<!--
if (document.images)
{
preload_image_object = new Image();
// set image url
image_url = new Array();
image_url[0] = "http://mydomain.com/image0.gif";
image_url[1] = "http://mydomain.com/image1.gif";
image_url[2] = "http://mydomain.com/image2.gif";
image_url[3] = "http://mydomain.com/image3.gif";
var i = 0;
for(i=0; i<=3; i++)
preload_image_object.src = image_url[i];
}
//-->
</script>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Not Defteri
Kod:
Kod:
- Kod:
<html><head>
<style>
<!--
/*Post-it note script- by javascriptkit.com
Visit JavaScript Kit (http://javascriptkit.com) for script
Credit must stay intact for use*/
#postit{
position:absolute;
width:250;
padding:5px;
background-color:lightblue;
border:1px solid black;
visibility:hidden;
z-index:100;
cursor:hand;
}
-->
</style>
<title>Taşınabilir Post-it (Not kağıdı)</title>
</head>
<body>
<center><b>Taşınabilir post-it (not kağıdı)</b></center>
<div id="postit" style="border:4px double #C0C0C0; left:254px;top:90px; position:absolute">
<div align="right"><b><a href="javascript:closeit()"><font color="#000000">[ KAPAT ]</font> </a></b></div>
<b>Not :</b><br>
<p><font size="2" face="Arial"><a target=_blank href="http://www.tr.cc/asp/down.html" target="_new"><b>Word , Excel , Adobe İndir</b><br>
</a>Ücretsiz olması sebebiyle özelliklerinin kısıtlanmış olduğunu belirtelim</font><br>
<font size="2" face="Arial"><a target=_blank href="http://www.tr.cc/asp/oyun.html" target="_new"><b>Oyun oyna</b><br>
</a>Her çeşit flash oyunun mevcut olduğu bir site , doğal olarak ücretsiz...</font><br>
<p></p><center><input type="button" value="Bana Mail Atın" onclick="parent.location='mailto:ksabitk( at )hotmail.com'" ></center>
</div>
<script>
// (0=hayır, 1=evet)
var once_per_browser=0
///Bundan sonrasına dokunmayınız
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ns4)
crossobj=document.layers.postit
else if (ie4||ns6)
crossobj=ns6? document.getElementById("postit") : document.all.postit
function closeit(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
crossobj.visibility="hide"
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document·cookie.length > 0) {
offset = document·cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document·cookie.indexOf(";", offset);
if (end == -1)
end = document·cookie.length;
returnvalue=unescape(document·cookie.substring(offset, end))
}
}
return returnvalue;
}
function showornot(){
if (get_cookie('postdisplay')==''){
showit()
document·cookie="postdisplay=yes"
}
}
function showit(){
if (ie4||ns6)
crossobj.style.visibility="visible"
else if (ns4)
crossobj.visibility="show"
}
if (once_per_browser)
showornot()
else
showit()
</script>
<script language="JavaScript1.2">
//explorer4 ve üstü tarayıcılar tarafından algılanabilir.
function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}
function initializedrag(e){
if (ie4&&event.srcElement.id=="postit"||ns6&&e.target.id=="postit"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
</script>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Sağ Tık Menü
Kod:
Kod:
- Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<titlemydesign.gen.tr</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<SCRIPT LANGUAGE="JavaScript">
<!-- // RightClickMenu
function showmenuie5(){
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY
if (rightedge<ie5menu.offsetWidth)
ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
else
ie5menu.style.left=document.body.scrollLeft+event.clientX
if (bottomedge<ie5menu.offsetHeight)
ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.clientY
ie5menu.style.visibility="visible"
return false
}
function hidemenuie5(){
ie5menu.style.visibility="hidden"
}
function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
}
}
function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
}
}
function jumptoie5(){
if (event.srcElement.className=="menuitems"){
if (event.srcElement.url != ''){
if (event.srcElement.getAttribute("target")!=null)
window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
else
window.location=event.srcElement.url
}
}
}
// -->
</SCRIPT>
<STYLE TYPE='text/css'>
.cMenu{
position: absolute;
visibility:hidden;
cursor: default;
width: 165px;
background-color: menu;
border: 2px outset buttonhighlight;
;
font-style:normal;
font-variant:normal;
font-weight:bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FF0000;
}
.menuitems{
padding-left:10px;
padding-right:10px;
}
</STYLE>
</head>
<body>
<p align="center"> </p>
<p align="center">
<a href="http://www.mydesign.gen.tr" target="_blank" style="text-decoration: none"><font size="2"
face="verdana">mydesign.gen.tr</a></p>
<p align="center">Sayfa Üzerinde Sağ Tıklayın..</p>
<p><RightClick>
<!--[if IE]>
<div id="ie5menu" class="cMenu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<HR>
<div class="menuitems" url="http://www.mydesign.gen.tr">Anasayfa</div>
<HR>
<div class="menuitems" url="http://www. mydesign.gen.tr">Forum</div>
<HR>
<div class="menuitems" url="http://www. mydesign.gen.tr">Linkler</div>
<HR>
<div class="menuitems" url="http://www. mydesign.gen.tr">Ziyaretçi Defteri</div>
<HR>
<div class="menuitems" url="http://www. mydesign.gen.tr">Bize Ulaşın</div>
<HR>
<![endif]-->
</RightClick>
<p><RightClick>
<script language="JavaScript">
<!--
if (document.all&&window.print){
ie5menu.className="cMenu"
document.oncontextmenu=showmenuie5
document.body.onclick=hidemenuie5
}
//-->
</script>
</RightClick></p>
</div>
</body>
</html>
Geri: Forumlariniz icin degisik Kodlar [konu 2]
Sağ Tuş Engelleme
Kod:
Kod:
- Kod:
<script>
browserName = navigator.appName
browserVersion = parseInt(navigator.appVersion)
document.onmousedown = checkforRightMouseButtonClick;
if (browserVersion<5 && browserName=="Netscape")
{
window.onmousedown = checkforRightMouseButtonClick;
}
function rightClickPressed()
{
alert("Bu Sitede Sağ Tıklamak Yasaktır!");
}
function checkforRightMouseButtonClick(mouseEvent)
{
if ( ((browserName=="Microsoft Internet Explorer") && (event.button >1)) ||
((browserName=="Ne tscape") && (mouseEvent.which > 1)) )
{
rightClickPressed()
return false;
}
else
return true;
}
</script>
2 sayfadaki 34 sayfası • 1, 2, 3 ... 18 ... 34
2 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