Merhaba Arkadaşlar msn benzeri yeni mesaj gelince bir uyarı sistemi nasıl yapa biliriz Acaba Aynı msn Gibi alttan Bir uyarı tablosu cıkmasını istiyorum bunu yapa bilirmiyiz bir örnek felan varmı acaba ?
javascript timer örneği;
http://wiki.ceviz.net/index.php/Basi...8Javascript%29
javascript içinde php kullanma örneği;
http://forum.ceviz.net/php/21997-jav...-php-kodu.html (javascript içinde php kodu)
okuyun,kendinize uyarlayın
http://wiki.ceviz.net/index.php/Basi...8Javascript%29
Burdaki konuya bugun baktım Fakat Bunun Benim yapmak istediğim Konu ile Bağdaştıramadım![]()
Alakası şu; web sayfası demek sürekli bağlantı demek değildir. Yani siz bir sayfayı açarsınız, server size gönderir, iş biter. Server ayrıyetten size mesaj gönderemez. Her sayfa isteğiniz için yeni bağlantı kurulur ve kapanır. Bu durumda biz sadece belli aralıklarla sayfayı yeniletebiliyoruz, yeni mesaj var mı görmek için. Daha da geliştirirseniz kendinizi tüm sayfayı değil, belli kısımlarını yeniletebiliyorsunuz. İşte bu 'belli aralıklar' o okuduğunuz ile gerçekleştiriliyor![]()
Emin Olun Şu anlattıklarınızd Dogrudur Ama Bu Anlatım Şekli İle Bir yola cıkılmazBu Anlattıklarınız İle ben yapmak istediğimi yapamam yani
![]()
Yapmak istediğiniz basit bir şey değil ki maalesef, biraz ileri seviye bilgi gerektiriyor![]()
Yok hiçte Zor birşey Değilmiş Ama Senin için sanırım zor gelmişGerekli Olan JS Kodlarını buldum google Den mesaj script Entegre işini de yaptım
![]()
Bence Zor Olan Şu Konudaki Sorum Olsa Gerek Kimse Çıkamadı İçinden :
http://forum.ceviz.net/javascript-dh...irma-help.html (jquery box içine Belirli Sürede Rasgele yazı yazdırma ? help)
PHP Kodu:<DIV onselectstart="return false;"
onmousedown="return popupWinespopup_DragDrop(event);" id=popupWin
style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #b9c9ef 1px solid; DISPLAY: none; Z-INDEX: 9999; RIGHT: 0px; BACKGROUND: #e0e9f8; BORDER-LEFT: #b9c9ef 1px solid; WIDTH: 230px; BOTTOM: 0px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; HEIGHT: 100px">
<DIV id=popupWin_header
style="DISPLAY: none; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#FFE0E9F8', EndColorStr='#FFFFFFFF'); LEFT: 2px; FONT: 11px arial,sans-serif; WIDTH: 224px; CURSOR: default; COLOR: #1f336b; POSITION: absolute; TOP: 2px; HEIGHT: 14px; TEXT-DECORATION: none"><SPAN
id=popupWintitleEl><IMG style="LEFT: 2px; POSITION: absolute; TOP: 1px"
height=13 src="http://forum.ceviz.net/images/popup_attention.gif"
width=14> </SPAN><SPAN
id=popupWintitleEl>LoNeLY ForuM</SPAN><SPAN
onmousedown=event.cancelBubble=true; onmouseover="style.color='#455690';"
style="RIGHT: 3px; FONT: bold 12px arial,sans-serif; CURSOR: pointer; COLOR: #728eb8; POSITION: absolute; TOP: 2px"
onclick=popupWinespopup_Close() onmouseout="style.color='#728EB8';"><IMG
height=11 alt="Luk dette vindue" src="http://forum.ceviz.net/images/popup_close.gif"
width=11 border=0></SPAN></DIV>
<DIV onmousedown=event.cancelBubble=true; id=popupWin_content
style="BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #728eb8 1px solid; DISPLAY: none; PADDING-LEFT: 2px; BACKGROUND: url(msjarka.jpg) #e0e9f8; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#FFE0E9F8', EndColorStr='#FFFFFFFF'); LEFT: 2px; PADDING-BOTTOM: 2px; OVERFLOW: hidden; BORDER-LEFT: #728eb8 1px solid; WIDTH: 220px; PADDING-TOP: 2px; BORDER-BOTTOM: #b9c9ef 1px solid; POSITION: absolute; TOP: 20px; HEIGHT: 75px; TEXT-ALIGN: center">
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=70
cellSpacing=0 cellPadding=0 width=211 border=0>
<TBODY>
<TR>
<TD width=211 height=67>
<P align=center> <B><FONT color=#1f336b>Aramıza Hosgeldiniz...<BR>Lütfen Üye Olunuz.</FONT><FONT color=#ff0000><A
style="TEXT-DECORATION: none" href="http://www.sitenizinadı.com/register.php"
target=_blank><FONT color=#ff0000>Üye Olmak İçin</FONT></A></FONT><FONT
color=#1f336b> Buraya Tıklayınız..</FONT></B></P></TD></TR></TBODY></TABLE></DIV></DIV>
<script type=text/javascript>
//<![CDATA[
var popupWinoldonloadHndlr=window.onload, popupWinpopupHgt, popupWinactualHgt, popupWintmrId=-1, popupWinresetTimer;
var popupWintitHgt, popupWincntDelta, popupWintmrHide=-1, popupWinhideAfter=-1, popupWinhideAlpha, popupWinhasFilters=true;
var popupWinnWin, popupWinshowBy=null, popupWindxTimer=-1, popupWinpopupBottom;
var popupWinnText,popupWinnMsg,popupWinnTitle,popupWin
bChangeTexts=false;
window.onload=popupWinespopup_winLoad;
function popupWinespopup_ShowPopup(show)
{
if (popupWindxTimer!=-1) { el.filters.blendTrans.stop(); }
if ((popupWintmrHide!=-1) && ((show!=null) && (show==popupWinshowBy)))
{
clearInterval(popupWintmrHide);
popupWintmrHide=setInterval& #40;popupWinespopup_tmrHideTimer,popupWinhideAfter
);
return;
}
if (popupWintmrId!=-1) return;
popupWinshowBy=show;
elCnt=********.getElementById('popupWin_content')
elTit=********.getElementById('popupWin_header');
el=********.getElementById('popupWin');
el.style.left='';
el.style.top='';
el.style.filter='';
if (popupWintmrHide!=-1) clearInterval(popupWintmrHide); popupWintmrHide=-1;
********.getElementById('popupWin_header').style.display='none';
********.getElementById('popupWin_content').style.display='none';
if (navigator.userAgent.indexOf('Opera')!=-1)
el.style.bottom=(********.body.scrollHeight*1-********.body.scrollTop*1
-********.body.offsetHeight*1+1*popupWinpopupBottom)+'px';
if (popupWinbChangeTexts)
{
popupWinbChangeTexts=false;
********.getElementById('popupWinaCnt').innerHTML=popupWinnMsg;
********.getElementById('popupWintitleEl').innerHTML=popupWinnTitle;
}
popupWinactualHgt=0; el.style.height=popupWinactualHgt+'px';
el.style.visibility='';
if (!popupWinresetTimer) el.style.display='';
popupWintmrId=setInterval(popupWinespopup_tmrTimer,(popupWinresetTimer?1000:20));
}
function popupWinespopup_winLoad()
{
if (popupWinoldonloadHndlr!=null) popupWinoldonloadHndlr();
elCnt=********.getElementById('popupWin_content')
elTit=********.getElementById('popupWin_header');
el=********.getElementById('popupWin');
popupWinpopupBottom=el.style.bottom.substr(0,el.style.bottom.length-2);
popupWintitHgt=elTit.style.height.substr(0,elTit.style.height.length-2);
popupWinpopupHgt=el.style.height;
popupWinpopupHgt=popupWinpopupHgt.substr(0,popupWinpopupHgt.length-2); popupWinactualHgt=0;
popupWincntDelta=popupWinpopupHgt-(elCnt.style.height.substr(0,elCnt.style.height.length-2));
if (true)
{
popupWinresetTimer=true;
popupWinespopup_ShowPopup(null);
}
}
function popupWinespopup_tmrTimer()
{
el=********.getElementById('popupWin');
if (popupWinresetTimer)
{
el.style.display='';
clearInterval(popupWintmrId); popupWinresetTimer=false;
popupWintmrId=setInterval(popupWinespopup_tmrTimer,20);
}
popupWinactualHgt+=5;
if (popupWinactualHgt>=popupWinpopupHgt)
{
popupWinactualHgt=popupWinpopupHgt; clearInterval(popupWintmrId); popupWintmrId=-1;
********.getElementById('popupWin_content').style.display='';
if (popupWinhideAfter!=-1) popupWintmrHide=setInterval& #40;popupWinespopup_tmrHideTimer,popupWinhideAfter
);
}
if (popupWintitHgt<popupWinactualHgt-6)
********.getElementById('popupWin_header').style.display='';
if ((popupWinactualHgt-popupWincntDelta)>0)
{
elCnt=********.getElementById('popupWin_content')
elCnt.style.display='';
elCnt.style.height=(popupWinactualHgt-popupWincntDelta)+'px';
}
el.style.height=popupWinactualHgt+'px';
}
function popupWinespopup_tmrHideTimer()
{
clearInterval(popupWintmrHide); popupWintmrHide=-1;
el=********.getElementById('popupWin');
if (popupWinhasFilters)
{
backCnt=********.getElementById('popupWin_content').innerHTML;
backTit=********.getElementById('popupWin_header').innerHTML;
********.getElementById('popupWin_content').innerHTML='';
********.getElementById('popupWin_header').innerHTML='';
el.style.filter='blendTrans(duration=1)';
el.filters.blendTrans.apply();
el.style.visibility='hidden';
el.filters.blendTrans.play();
********.getElementById('popupWin_content').innerHTML=backCnt;
********.getElementById('popupWin_header').innerHTML=backTit;
popupWindxTimer=setInterval(popupWinespopup_dxTimer,1000);
}
else el.style.visibility='hidden';
}
function popupWinespopup_dxTimer()
{
clearInterval(popupWindxTimer); popupWindxTimer=-1;
}
function popupWinespopup_Close()
{
if (popupWintmrId==-1)
{
el=********.getElementById('popupWin');
el.style.filter='';
el.style.display='none';
if (popupWintmrHide!=-1) clearInterval(popupWintmrHide); popupWintmrHide=-1;
}
}
var popupWinmousemoveBack,popupWinmouseupBack;
var popupWinofsX,popupWinofsY;
function popupWinespopup_DragDrop(e)
{
popupWinmousemoveBack=********.body.onmousemove;
popupWinmouseupBack=********.body.onmouseup;
ox=(e.offsetX==null)?e.layerX:e.offsetX;
oy=(e.offsetY==null)?e.layerY:e.offsetY;
popupWinofsX=ox; popupWinofsY=oy;
********.body.onmousemove=popupWinespopup_DragDropMove;
********.body.onmouseup=popupWinespopup_DragDropStop;
if (popupWintmrHide!=-1) clearInterval(popupWintmrHide);
}
function popupWinespopup_DragDropMove(e)
{
el=********.getElementById('popupWin');
if (e==null&&event!=null)
{
el.style.left=(event.clientX*1+********.body.scrollLeft-popupWinofsX)+'px';
el.style.top=(event.clientY*1+********.body.scrollTop-popupWinofsY)+'px';
event.cancelBubble=true;
}
else
{
el.style.left=(e.pageX*1-popupWinofsX)+'px';
el.style.top=(e.pageY*1-popupWinofsY)+'px';
e.cancelBubble=true;
}
if ((event.button&1)==0) popupWinespopup_DragDropStop();
}
function popupWinespopup_DragDropStop()
{
********.body.onmousemove=popupWinmousemoveBack;
********.body.onmouseup=popupWinmouseupBack;
}
//]]>
</SCRIPT>
</TABLE></TABLE>
Enson 12/03/2010 09:56 tarihinde sdemirkeser tarafından düzenlenmiştir.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks