Html Kodları {Güncellenecektir}
Kod:
<<Online ziyaretci saysini>>
<script src="http://fastonlineusers.com/online.php?d=SİZİN SİTENİZ"></script>
Örnek:
<script src="http://fastonlineusers.com/online.ph...com"></script>
Kodu sitenize eklediğinizde aktif ziyaretçi sayısını ekrana verir.
Sayfayi animasyonlu açmak
<body><SCRIPT>
var width=document.body.clientWidth;
var height=document.body.clientHeight;
function doClickText(who,type,step,timeOut) {
document.getElementById(who).style.display="none";
if(type==0) {
reveal('revealDiv1',step,timeOut,0);
reveal('revealDiv2',step,timeOut,1);}
if(type==1) {
reveal('revealDiv1',step,timeOut,2);
reveal('revealDiv2',step,timeOut,3);}}
function reveal(who,step,timeOut,type) {
if(type==0)
var where="top";
if(type==1)
var where="bottom";
if(type==2)
var where="left";
if(type==3)
var where="right";
eval('var temp=document.getElementById(who).style.'+where);
temp=parseInt(temp);
if(type==0||type==1)
var checkWith=height/2;
if(type==2||type==3)
var checkWith=width/2;
if(-temp<checkWith) {
temp-=step;
eval('document.getElementById(who).style.'+where+'=temp;');
setTimeout("reveal('"+who+"',"+step+",'"+timeOut+"',"+type+")", timeOut);}
else {
document.getElementById(who).style.display="none";
document.body.scroll="yes";}}
function initReveal(type,div1bg,div2bg,div1bw,div2bw,div1bc,div2bc,step,timeOut,click) {
if(type==0) {
var bWhere1="border-bottom";
var bWhere2="border-top";
var putZero1="top:0px; left:0px";
var putZero2="bottom:0px; left:0px";
document.write('<div id="revealDiv1" style="z-index:100; display:block; position:absolute; '+putZero1+'; background:'+div1bg+' ; width:'+(width)+'; height:'+(height/2)+'; '+bWhere1+':'+div1bc+' solid '+div1bw+'px"></div>');
document.write('<div id="revealDiv2" style="z-index:100; display:block; position:absolute; '+putZero2+'; background:'+div2bg+' ; width:'+(width)+'; height:'+(height/2)+'; '+bWhere2+':'+div2bc+' solid '+div2bw+'px"></div>');
if(!click) {
reveal('revealDiv1',step,timeOut,0);
reveal('revealDiv2',step,timeOut,1);}
else {
clickText(type,step,timeOut);}}
if(type==1) {
var bWhere1="border-right";
var bWhere2="border-left";
var putZero1="top:0px; left:0px";
var putZero2="top:0px; right:0px";
document.write('<div id="revealDiv1" style="z-index:100; display:block; position:absolute; '+putZero1+'; background:'+div1bg+' ; width:'+(width/2)+'; height:'+(height)+'; '+bWhere1+':'+div1bc+' solid '+div1bw+'px"></div>');
document.write('<div id="revealDiv2" style="z-index:100; display:block; position:absolute; '+putZero2+'; background:'+div2bg+' ; width:'+(width/2)+'; height:'+(height)+'; '+bWhere2+':'+div2bc+' solid '+div2bw+'px"></div>');
if(!click) {
reveal('revealDiv1',step,timeOut,2);
reveal('revealDiv2',step,timeOut,3);}
else {
clickText(type,step,timeOut);}}
function clickText(type,step,timeOut) {
document.write('<div id="clickText" style="z-index:101; display:block; position:absolute; top:'+(height/2-clickh/2-clickb)+'; left:'+(width/2-clickw/2-clickb)+'"><table style="border:'+clickc+' solid '+clickb+'px; background:'+clickbg+' ;width:'+clickw+'px; height:'+clickh+'; '+clickFont+'; cursor:hand; cursor:pointer" onClick="doClickText(\'clickText\','+type+','+step+','+timeOut+')"><tr><td align="middle">'+clickt+'</td></tr></table></div>');}}
</SCRIPT>
<SCRIPT>
var clickw=170; // Width
var clickh=20; // Height
var clickb=2; // Border width
var clickc="#CCFFCC"; // Border color
var clickbg="#000000"; // Background color
var clickt="Siteye girmek icin tiklayin."; // Text to display
var clickFont="font-family:Tahoma,arial,helvetica; font-size:10pt; font-weight:bold; color:#FF0000"; // The font style of the text
new initReveal(0,'#CCFFCC','#CCFFCC',1,1,'#00FF00','#000000',3,10,true);
</SCRIPT><body>
Web siten açilinca sarki çalsin mi?
<BGSOUND SRC="Dosyanın Adresi" LOOP=Kaç kere tekrarlanacağı>
ÖRNEK:
<BGSOUND SRC="../../Adnan - Salih/Cebimdekiler/Sesler/GS marşı.wav" LOOP=50>
Super bir menü
<table border=1 bordercolor="black" style="cursor:crosshair">
<tr bgcolor="black">
<td>
<b><font style="cursor:crosshair" face="Arial" color=white>KoMeDiYe Menü</font></b>
</td>
</tr>
<tr bgcolor="white">
<td><center><p>
<form><input style="cursor:crosshair" type="button" name="anasayfa" onClick="self.location.href=('http://rockhll.sitemynet.com')" value="Ana Sayfa" style="background:white" style="cursor:crosshair"title="Copyright © 2004-2005 KoMeDiYe"></form>
<p>
<form><input style="cursor:crosshair" type="button" name="anasayfa" onClick="self.location.href=('http://rockhll.sitemynet.com')" value="Ana Sayfa" style="background:white" style="cursor:crosshair"title="Copyright © 2004-2005 KoMeDiYe"></form>
<p>
<form><input style="cursor:crosshair" type="button" name="anasayfa" onClick="self.location.href=('http://rockhll.sitemynet.com')" value="Ana Sayfa" style="background:white" style="cursor:crosshair" title="Copyright © 2004-2005 KoMeDiYe"></form>
<p>
<form><input style="cursor:crosshair" type="button" name="anasayfa" onClick="self.location.href=('http://rockhll.sitemynet.com')" value="Ana Sayfa" style="background:white" style="cursor:crosshair"title="Copyright © 2004-2005 KoMeDiYe"></form>
<p>
<form><input style="cursor:crosshair" type="button" name="anasayfa" onClick="self.location.href=('http://rockhll.sitemynet.com')" value="Ana Sayfa" style="background:white" style="cursor:crosshair"title="Copyright © 2004-2005 KoMeDiYe"></form>
<p>
</td>
</tr>
</table>
Süper bir html kodu bence deneyin
<script language="JavaScript">
<!-- 
msg='mesaj';
font='Verdana,Arial';
size=2; // 1-7 only!
color='#ffffff';
speed=0.5;
//Alter nothing past here!!
ns=(document.layers);
ie=(document.all);
msg=msg.split('');
n=msg.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+color+">";
if (ns){
for (i=0; i < n; i++)
document.write('<layer name="nsmsg'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>');
}
if (ie){
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="iemsg" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+msg[i]+'</font></div>');
document.write('</div></div>');
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+20-(window.pageYOffset):event.y+20;
xmouse = (ns)?evnt.pageX+20:event.x+20;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
y=new Array();
x=new Array();
Y=new Array();
X=new Array();
for (i=0; i < n; i++){
y[i]=0;
x[i]=0;
Y[i]=0;
X[i]=0;
}
function assign(){
if (ie) outer.style.top=document.body.scrollTop;
for (i=0; i < n; i++){
var d=(ns)?document.layers['nsmsg'+i]:iemsg[i].style;
d.top=y[i]+scrll;
d.left=x[i]+(i*(a/2));
}
}
function ripple(){
scrll=(ns)?window.pageYOffset:0;
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (var i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
assign();
setTimeout('ripple()',10);
}
if (ns||ie)window.onload=ripple;
// -->
</script>
Ip numarani gör
öncelikle Project>Components yolunu izleyerek açılan pencerenin Controls bölümünden Microsoft Winsock Controls 6.0 (SP6)  yi araç kutusuna ekleyin
Forma buton ve winsock nesnesini ekleyin.
Aşağıdaki kodları yazın
Private Sub Command1_Click()
ip = Winsock1.LocalIP
MsgBox ip
End Sub
20****mrcplus****04
Sayisal loto
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
Dim a(6)
a(1) = Val(Label1.Caption): a(2) = Val(Label2.Caption): a(3) = Val(Label3.Caption)
a(4) = Val(Label4.Caption): a(5) = Val(Label5.Caption): a(6) = Val(Label6.Caption)
For k = 1 To 5
For j = k + 1 To 6
If a(k) > a(j) Then g = a(k): a(k) = a(j): a(j) = g
Next j
Next k
Label1.Caption = a(1): Label2.Caption = a(2): Label3.Caption = a(3)
Label4.Caption = a(4): Label5.Caption = a(5): Label6.Caption = a(6)
End Sub
Private Sub Timer1_Timer()
Show
Randomize Timer
Label1.Caption = Int(Rnd * 48) + 1
Randomize Timer
Label2.Caption = Int(Rnd * 48) + 1
Randomize Timer
Label3.Caption = Int(Rnd * 48) + 1
Randomize Timer
Label4.Caption = Int(Rnd * 48) + 1
Randomize Timer
Label5.Caption = Int(Rnd * 48) + 1
Randomize Timer
Label6.Caption = Int(Rnd * 48) + 1
End Sub
Html Kodları {Güncellenecektir}
Html Kodları {Güncellenecektir}
Html Kodları {Güncellenecektir}
güzelmiş bu arkadan çalan müzik olayı nasıl oluyor açıklayabilirmisin
Html Kodları {Güncellenecektir}
Alıntı:
Zaris Nickli Üyeden Alıntı
güzelmiş bu arkadan çalan müzik olayı nasıl oluyor açıklayabilirmisin
midi kardeşim midi uzantısını ekliyosun kodların içine..
Html Kodları {Güncellenecektir}
ya arkadaşım bana yardım edebilirmisin
benim sorunum htmlden fazla anlamamıyorum siteme 13 tane şarkı koymak istiyorum winamp gibi üye istedgi müzikten başlayacak çalmaya ama nerden bulabilriim bana yardım edersen sevinirim
Html Kodları {Güncellenecektir}
arkadaşlar mesela formun bu sayfasına müzik ekleyceğiz. Formun bu sayfası açıldığında müzik çalsın istiyoruz. bu forum sayfasında iken, yukarıdaki dosya, düzen, görünüm menüsünden görünüme tıklayın. ordan "sayfa kaynağını göster" e tıklayın. Orada scriptler göreceksiniz. Oradaki son script şu:
Kod:
<script language="JavaScript">
<!--
function MM_jumpMenu(selObj,restore){ //v3.0
var url = selObj.options[selObj.selectedIndex].value;
if (url) window.open(url);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
bizde scriptimizi bu scriptten sonra <style type="text/css"> yazısından önceki yere ekleyelim.
sayfamız şöyle oldu.
Kod:
<script language="JavaScript">
<!--
function MM_jumpMenu(selObj,restore){ //v3.0
var url = selObj.options[selObj.selectedIndex].value;
if (url) window.open(url);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
Kod:
<SCRIPT>
function playIt(filename) {
Player.URL = filename;
}
</SCRIPT>
<style type="text/css">
..............
...........
gördüğünüz gibi scriptlerin bulunduğu yere biz de scriptimizi ekledik. şimdi sıra linkleri ve media playeri eklemeye geldi.
<body> yazısından sonra nereye isterseniz oraya eklersiniz, serbestsizin. İstersen bir tablonun bir sütununun içine koy, istersen bir div içine koy, hiçbir şeyin içine koyma...
sayfamızın son hali şöyle olsun.
Kod:
<script language="JavaScript">
<!--
function MM_jumpMenu(selObj,restore){ //v3.0
var url = selObj.options[selObj.selectedIndex].value;
if (url) window.open(url);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
Kod:
<SCRIPT>
function playIt(filename) {
Player.URL = filename;
}
</SCRIPT>
<style type="text/css">
..............
...........</style>
<body>
Kod:
<!-- Début | Lecteur -->
<OBJECT ID="Player" WIDTH=314 HEIGHT=292 CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="volume" value="100">
<param name="stretchToFit" value="-1">
</OBJECT>
<!-- Fin | Lecteur -->
</p>
<!-- Début | Liste -->
<p style="margin-top: 0; margin-bottom: 0">1. <A HREF="#" onclick="playIt('11.mpeg')">video seyret</A>
<p style="margin-top: 0; margin-bottom: 0">2. <A HREF="#" onclick="playIt('12.mpeg')">başka video</A>
<p style="margin-top: 0; margin-bottom: 0">3. <A HREF="#" onclick="playIt('4.MID')">bunu çal</A>
<p style="margin-top: 0; margin-bottom: 0">4. <A HREF="#" onclick="playIt('1****')">şimdi bunu çal</A>
<p style="margin-top: 0; margin-bottom: 0">5. <A HREF="#" onclick="playIt('2****')">bunu dinle</A>
şimdi sıra geldi
playIt('11.mpeg')
bu kısımları ayarlamaya
playIt('dosyaAdi.uzantisi')
yazacağız buralara.
mp3, mid, mpeg uzantılı dosyalarım var onları ekliyorum. Tarkan'ın kış günesi şarkısını ekliyorum. Formun bu sayfası ile müzik dosyam aynı klasörün içinde ise
playIt('kisGunesi.mid')
yazmam yeterli.
Ama formun bu sayfasının bulunduğu klasörün içinde bir klosör var () ve şarkım bu klasörün içinde ise o zaman o klasörün adı da yazılıyor. bu ikinci klasörün adı muzik olsun. şarkimiz bu klasörün içinde olsun. Şarkımızın bulunduğu yeri yazacağız. mesela ben şu sokakta şu nolu evde oturuyorum demek gibi adres vermedir bu.
playIt('muzik/kisGunesi.mid')
yazmak gerekir.
web sitem olmadığı için kendi bilgisayarımda yaptığımı anlattım. Web de şarkı dosyasının adresinin nasıl olduğunu yazamayacağım.
aşağıdaki satırdan istediğiniz kadar ekleyerek şarkılarınızı artırabilirsiniz.
<p style="margin-top: 0; margin-bottom: 0">1. <A HREF="#" onclick="playIt('kisGunesi.mid')">kış güneşini dinle</A>
Bütün bunları yaptıktan sonra formun bu sayfasına gelince kış güneşini dinle yazısına tıklayarak, hem sizlerden gelen mesajları okuyabilirim hem de müzik dinleyebilirim.