linkedin facebook linkedin facebook nod32

Saytning title bo`limi uchun rasm va yozuv harakati

Muallif: Mengliyev SH.

Qo`shilgan sana: 2015-04-17

Saytning title bo`limi uchun rasm va yozuv harakati

Rasm joylashtirish uchun .ico kengaytmali mayda o`lchamdagi rasm kerak.

<link href="images/icons/icon.ico" rel="shortcut icon" type="image/x-icon" />

Title bo`limdagi yozuvni haraklantirish uchun <head> bo`limida quyidagi skriptni joylashtramiz

<script><!--
var tit = document.title;
var c = 0;
function writetitle()
{
document.title = tit.substring(0,c);
if(c==tit.length)
{
c = 0;
setTimeout("writetitle()", 1000)
}
else
{
c++;
setTimeout("writetitle()", 200)
}
}

writetitle()
// -->

</script>

Sichqonchaga kursoriga yozuv joylashtirish uchun quyidagi skriptdan foydalanamiz.

<script>

var step=20
var flag=0
var x
var y
var message='Hush keliksiz www.tami.uz '
message=message.split("")

var xposition=new Array()
for (i=0;i<=message.length-1;i++) {
xposition[i]=-50
}

var yposition=new Array()
for (i=0;i<=message.length-1;i++) {
yposition[i]=-50
}

function handlerMM(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
flag=1
}

function text() {
if (flag==1 && document.all) {
for (i=message.length-1; i>=1; i--) {
xposition[i]=xposition[i-1]+step
yposition[i]=yposition[i-1]
}
xposition[0]=x+step
yposition[0]=y

for (i=0; i<message.length-1; i++) {
var thisspan = eval("span"+(i)+".style")
thisspan.posLeft=xposition[i]
thisspan.posTop=yposition[i]
}
}

else if (flag==1 && document.layers) {
for (i=message.length-1; i>=1; i--) {
xposition[i]=xposition[i-1]+step
yposition[i]=yposition[i-1]
}
xposition[0]=x+step
yposition[0]=y

for (i=0; i<message.length-1; i++) {
var thisspan = eval("document.span"+i)
thisspan.left=xposition[i]
thisspan.top=yposition[i]
}
}
var timer=setTimeout("text()",30)
}


</script>

1323 marta o`qildi.

Parol:
Eslab qolish.


Ro`yhatdan o`tish

testing

+998915878681

Siz o`z maxsulotingizni 3D reklama ko`rinishda bo`lishini xohlaysizmi? Unda xamkorlik qilamiz.

3D Reklama


Рейтинг@Mail.ru
Рейтинг@Mail.ru

Besucherzahler
счетчик посещений