İPUCU

Seçenekler

Java Script | Başlık Çubuğuna Kayan Yazı Ekleme | Komega

Komega - ait Kullanıcı Resmi (Avatar)
Analizci
Üyelik tarihi:
07/2013
Nereden:
Dünydn .s
Mesajlar:
9.739
Konular:
1347
Teşekkür (Etti):
851
Teşekkür (Aldı):
2454
Ticaret:
(0) %
12-10-2014 15:39
#1
Java Script | Başlık Çubuğuna Kayan Yazı Ekleme | Komega




Evet arkadaşlar bu kod ile başlık cubuğunda istediğniz yazıyı yazdırabilirsiiz İyi Çalışmalar

Kod:
	
<html>
<head>
<title> _Kayan Başlık Çubuğu</title>
<**** http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<**** 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) { //v3.0
  var p,i,x;  if(!d) d=********; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].********; 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].********); return x;
}

function hideTooltip(object)
{
if (********.all)
{
     locateObject(object).style.visibility="hidden"
     locateObject(object).style.left = 1;
     locateObject(object).style.top = 1;
return false
}
else if (********.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 (********.all)
          {
               locateObject(object).style.top=********.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) > (********.body.clientWidth +  
********.body.scrollLeft))
                    {     
                         locateObject(object).style.left = (********.body.clientWidth +  
********.body.scrollLeft) - locateObject(object).clientWidth-10;
                    }
               else
               {
               locateObject(object).style.left=********.body.scrollLeft+event.clientX
               }
          locateObject(object).style.visibility="visible"
          tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
          return true;
          }
     else if (********.layers)
          {
          locateObject(object).********.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).********.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=********.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
          ********.title=actualtitle+scroller
          var timeout=setTimeout("scroll()", 1000)
}
          if (********.all||********.getElementById)
          scroll()
          var repeat=1 //enter 0 to not repeat scrolling after 1 run, To Scroll continously enter 1
          var leng=********.title.length
          var start=1
function titlemove(){ 
          titl=********.title.substring(start, leng) +  ********.title.substring(0, start)
          ********.title=titl
          start++
          if (start==leng+1) {
          start=0
          if (repeat==0)
                return
}
                setTimeout("titlemove()",speed)
}
          if (********.title)
          titlemove()
// -->
</SCRIPT>
<!-- ##END SCROLLING TITLE-->
</head>

<body>
<p align="center">&nbsp;</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>
---------------------

- The End.

- Emekli Uzman Moderatör.



Bookmarks


« Önceki Konu | Sonraki Konu »
Seçenekler

Yetkileriniz
Sizin Yeni Konu Acma Yetkiniz var yok
You may not post replies
Sizin eklenti yükleme yetkiniz yok
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodları Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı