Menyu

Video dərslər

indi saytda olanlar

Son Şərhlər

{topusers2}

Arxiv

Dost saytlar

Reklam



Müəllif: Rehmanzade | 2 noyabr 2010 | Arxaplan sekilleri | Oxunma sayı: 658 | Çap et
Asagida yerlesdirdiyim kodu saytinizin head teqleri arasina yerlesdirin
ve sekilin kodunu url isteyen yere elave et



<SCRIPT language=javascript>

<!-- Beginning of javascript -

// burda asagida sekilin urlni qeyd et pics.jpg yerinde
var imgsrc="pics.jpg"

// Do not edit the variables below unless you know what you are doing ...
var max_loop=15
var pause=1000

var imgpreload=new Image()
imgpreload.src=imgsrc

var screenwidth=0
var screenheight=0
var imgwidth
var imgheight
var max_step=100
var x_step=0
var y_step=0
var i_loop=0

function initiate() {
????x_step=0
????y_step=0
????i_loop=0
????if (document.layers) {
????????screenwidth=window.innerWidth/2
????????screenheight=window.innerHeight/2
????????imgwidth=screenwidth
????????imgheight=screenheight
????????document.bgimage.document.write("<img src="+imgsrc+" width="+screenwidth+">")
????????document.bgimage.document.close()
????????document.bgimage.left=0
????????document.bgimage.top=0????????
??????}
????if (document.all) {
???? ????screenwidth=document.body.clientWidth/2
????????screenheight=document.body.clientHeight/2
????????imgwidth=screenwidth
????????imgheight=screenheight
????????bgimage.innerHTML="<img src="+imgsrc+" width="+screenwidth+">"
????????document.all.bgimage.style.posLeft=0
????????document.all.bgimage.style.posTop=0
??????}
????setnewsize()????
}

function stretchimg() {
????imgwidth+=x_step
????imgheight+=y_step
????if (document.all && i_loop<=max_loop) {
????????bgimage.innerHTML="<img src="+imgsrc+" width="+imgwidth+" height="+imgheight+">"
????????i_loop++
????????var timer=setTimeout("stretchimg()",pause)
????}
????else if (document.layers && i_loop<=max_loop) {????
????????document.bgimage.document.write("<img src="+imgsrc+" width="+imgwidth+" height="+imgheight+">")
????????document.bgimage.document.close()
????????i_loop++
????????var timer=setTimeout("stretchimg()",3*pause)
????}
????else {
????????clearTimeout(timer)
????????var timer=setTimeout("shrinkimg()",2000)
????}
}

function shrinkimg() {
????imgwidth-=x_step
????imgheight-=y_step
????if (document.all && i_loop>=0) {
????????bgimage.innerHTML="<img src="+imgsrc+" width="+imgwidth+" height="+imgheight+">"
????????i_loop--
????????var timer=setTimeout("shrinkimg()",pause)
????}
????else if (document.layers && i_loop<=max_loop) {????
????????document.bgimage.document.write("<img src="+imgsrc+" width="+imgheight+" height="+imgwidth+">")
????????document.bgimage.document.close()
????????i_loop--
????????var timer=setTimeout("shrinkimg()",3*pause)
????}
????else {
????????clearTimeout(timer)
????????var timer=setTimeout("setnewsize()",2000)
????}
}

function setnewsize() {
????imgwidth=screenwidth
????imgheight=screenheight
????max_loop=Math.floor(10*Math.random())
????x_step=Math.floor(max_step*Math.random())
????y_step=Math.floor(max_step*Math.random())
????i_loop=0
????stretchimg()
}


window.onresize=initiate

// - End of javascript - -->

</SCRIPT>



Bu kodu ise body teqiyle evezleyin


<body??topmargin="0" leftmargin="0" onload=initiate()??style="OVERFLOW-Y: hidden; OVERFLOW-X: hidden; WIDTH: 100%">




Asagidaki kodu ise body teqleri arasina yerlesdirin



<DIV id=bgimage style="POSITION: absolute; TOP: -8000px"></DIV>
<DIV style="LEFT: 100px; POSITION: absolute; TOP: 10px">
<DIV style="LEFT: 1px; POSITION: absolute; TOP: 300px"></DIV>






Oxşar xəbərlər:
Arxa fonuna qoyulmus sekili boyuden kod
  • HTML [Qar Ya&#287;&#305;nt&#305;s&#305; Effekti]
  • Yarpaqlar yagan arxaplan
  • Yaziya sekil teksturasi veren effekt
  • Sehifenize kicik qar deneleri yagsin
  • Mausu izl?y?n gozl?r kodu
  • Arxa fonuna qoyulmus sekili boyuden kod!
    Arxa fonuna qoyulmus sekili boyuden kod.
    İnformasiya
    Qonaq qrupunda olanlar istifadəçilər bu xəbərə şərh əlavə edə bilməz.