Питомник британских  кошек "BRIT - FIORD", СПб 
тел: +7 921 746 93 77
Понедельник
21.07.2025
07:49
Приветствую Вас Гость | RSS Главная| Каталог файлов| Мой профиль | Регистрация| Выход | Вход
Меню сайта
Категории раздела
Цветоводство, садоводство [3]
Web-мастер [18]
КОНТАКТЫ
  • + 7 921 746 93 77
  • Семенова Елена
  • booked.net

    booked.net

    Индекс цитирования.

    Главная » Файлы » Разное » Web-мастер

    Скрипты и курсоры
    12.12.2008, 12:14
     Осенние листья:
     
     
    <script language="JavaScript1.2">
    //Pre-load your image below!
    grphcs=new Array(6)
    Image0=new Image();
    Image0.src=grphcs[0]=" http://brit-fiord.ucoz.ru/al.gif ";
    Image1=new Image();
    Image1.src=grphcs[1]="http://brit-fiord.ucoz.ru/bl.gif"
    Image2=new Image();
    Image2.src=grphcs[2]=" http://brit-fiord.ucoz.ru/cl.gif "
    Image3=new Image();
    Image3.src=grphcs[3]="http://brit-fiord.ucoz.ru/dl.gif"
    Image4=new Image();
    Image4.src=grphcs[4]="http://brit-fiord.ucoz.ru/el.gif"
    Image5=new Image();
    Image5.src=grphcs[5]="http://brit-fiord.ucoz.ru/fl.gif"
    Amount=8; //Smoothness depends on image file size, the smaller the size the more you can use!
    Ypos=new Array();
    Xpos=new Array();
    Speed=new Array();
    Step=new Array();
    Cstep=new Array();
    ns=(document.layers)?1:0;
    ns6=(document.getElementById&&!document.all)?1:0;
    if (ns){
    for (i = 0; i < Amount; i++){
    var P=Math.floor(Math.random()*grphcs.length);
    rndPic=grphcs[P];
    document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
    }
    }
    else{
    document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < Amount; i++){
    var P=Math.floor(Math.random()*grphcs.length);
    rndPic=grphcs[P];
    document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
    }
    document.write('</div></div>');
    }
    WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
    WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
    for (i=0; i < Amount; i++){
    Ypos[i] = Math.round(Math.random()*WinHeight);
    Xpos[i] = Math.round(Math.random()*WinWidth);
    Speed[i]= Math.random()*5+3;
    Cstep[i]=0;
    Step[i]=Math.random()*0.1+0.05;
    }
    function fall(){
    var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
    var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
    var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
    var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;
    for (i=0; i < Amount; i++){
    sy = Speed[i]*Math.sin(90*Math.PI/180);
    sx = Speed[i]*Math.cos(Cstep[i]);
    Ypos[i]+=sy;
    Xpos[i]+=sx;
    if (Ypos[i] > WinHeight){
    Ypos[i]=-60;
    Xpos[i]=Math.round(Math.random()*WinWidth);
    Speed[i]=Math.random()*5+3;
    }
    if (ns){
    document.layers['sn'+i].left=Xpos[i];
    document.layers['sn'+i].top=Ypos[i]+hscrll;
    }
    else if (ns6){
    document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);
    document.getElementById("si"+i).style.top=Ypos[i]+hscrll;
    }
    else{
    eval("document.all.si"+i).style.left=Xpos[i];
    eval("document.all.si"+i).style.top=Ypos[i]+hscrll;
    }
    Cstep[i]+=Step[i];
    }
    setTimeout('fall()',20);
    }
    window.onload=fall
    //-->
    </script>
     
     
     Пaдающие капли:
     
    <SCRIPT language=JavaScript1.2>
    var no = 15;
    var speed = 5;
    var snowflake = "http://brit-fiord.ucoz.ru/_ph/6/2/690641646.gif";
    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;
    var dx, xp, yp;
    var am, stx, sty;
    var i, doc_width = 1024, doc_height = 768;
    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    for (i = 1; i < no; ++ i) { 
    dx[i] = 1;        
    xp[i] = Math.random()*(doc_width-5);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*5;        
    stx[i] = 0.05 + Math.random()/30;
    sty[i] = 0.7 + Math.random();  
    if (ns4up) {                 
    if (i == 1) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
       }
    } else if (ie4up) {
    if (i == 1) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
          }
       }
    }
    function snowNS() {
    for (i = 1; i < no; ++ i) { 
    yp[i] += sty[i];
    if (yp[i] > doc_height-5) {
    xp[i] = Math.random()*(doc_width-am[i]-5);
    yp[i] = 1;
    stx[i] = 0.05 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i];
    document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
    }
    function snowIE() {
    for (i = 1; i < no; ++ i) {
    yp[i] += sty[i];
    if (yp[i] > doc_height-5) {
    xp[i] = Math.random()*(doc_width-am[i]-5);
    yp[i] = 1;
    stx[i] = 0.05 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx[i] += stx[i];
    document.all["dot"+i].style.pixelTop = yp[i];
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", speed);
    }
    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    </SCRIPT>
     
     Падающие листья 1:
     
    <SCRIPT language=JavaScript1.2>
    var no = 12;//добавьте колличество листиков
    var speed = 5;//измените скорость падения листьев
    var snowflake = "http://svweb.narod.ru/image/list2.gif";//укажите путь к папке с листьями
    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;
    var dx, xp, yp;
    var am, stx, sty;
    var i, doc_width = 1024, doc_height = 768;
    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    for (i = 0; i < no; ++ i) { 
    dx[i] = 0;        
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;       
    stx[i] = 0.02 + Math.random()/20;
    sty[i] = 0.7 + Math.random();  
    if (ns4up) {                 
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
       }
    } else if (ie4up) {
    if (i == 0) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
          }
       }
    }
    function snowNS() {
    for (i = 0; i < no; ++ i) { 
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i];
    document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
    }
    function snowIE() {
    for (i = 0; i < no; ++ i) {
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx[i] += stx[i];
    document.all["dot"+i].style.pixelTop = yp[i];
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", speed);
    }
    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    </SCRIPT>
     
     Падающие листья 2 (с исчезновением):
     
    <SCRIPT language=JavaScript1.2>
    var no = 12;//добавьте колличество снежинок
    var speed = 6;//измените скорость падения снежинок
    var snowflake = "http://brit-fiord.ucoz.ru/_ph/6/2/810211244.gif";//укажите путь к папке со снежинками
    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;
    var dx, xp, yp;
    var am, stx, sty;
    var i, doc_width = 1024, doc_height = 768;
    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    for (i = 0; i < no; ++ i) { 
    dx[i] = 0;        
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;       
    stx[i] = 0.02 + Math.random()/20;
    sty[i] = 0.7 + Math.random();  
    if (ns4up) {                 
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
       }
    } else if (ie4up) {
    if (i == 0) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
          }
       }
    }
    function snowNS() {
    for (i = 0; i < no; ++ i) { 
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i];
    document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
    }
    function snowIE() {
    for (i = 0; i < no; ++ i) {
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx[i] += stx[i];
    document.all["dot"+i].style.pixelTop = yp[i];
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", speed);
    }
    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    </SCRIPT>
     
     Падающие снежинки 1:
     
    <SCRIPT language=JavaScript>
    <!--
    Amount=15;
    Image0=new Image();
    Image0.src="http://fantasyflash.ru/script/web/image/sneg1.gif";
    Ypos=new Array();
    Xpos=new Array();
    Speed=new Array();
    Step=new Array();
    Cstep=new Array();
    ns=(document.layers)?1:0;
    if (ns){
    for (i = 0; i < Amount; i++){
    var P=Math.floor(Math.random()*grphcs.length);
    rndPic=grphcs[P];
    document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
    }
    }
    else{
    document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < Amount; i++){
    var P=Math.floor(Math.random()*grphcs.length);
    rndPic=grphcs[P];
    document.write('<img id="si" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
    }
    document.write('</div></div>');
    }
    WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
    WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
    for (i=0; i < Amount; i++){
    Ypos[i] = Math.round(Math.random()*WinHeight);
    Xpos[i] = Math.round(Math.random()*WinWidth);
    Speed[i]= Math.random()*3+2;
    Cstep[i]=0;//osw
    Step[i]=Math.random()*0.1+0.05;
    }
    function fall(){
    var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
    var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
    var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
    var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;//fantasyflash.ru
    for (i=0; i < Amount; i++){
    sy = Speed[i]*Math.sin(90*Math.PI/180);
    sx = Speed[i]*Math.cos(Cstep[i]);
    Ypos[i]+=sy;
    Xpos[i]+=sx;
    if (Ypos[i] > WinHeight){
    Ypos[i]=-60;
    Xpos[i]=Math.round(Math.random()*WinWidth);
    Speed[i]=Math.random()*5+2;
    }
    if (ns){
    document.layers['sn'+i].left=Xpos[i];
    document.layers['sn'+i].top=Ypos[i]+hscrll;
    }
    else{
    si[i].style.pixelLeft=Xpos[i];//osw
    si[i].style.pixelTop=Ypos[i]+hscrll;
    }
    Cstep[i]+=Step[i];
    }
    setTimeout('fall()',50);
    }
    fall()
    //-->
    </SCRIPT>
     
    Падающие снежинки 2:
     
    <SCRIPT language=JavaScript1.2>
    var no = 12;//добавьте колличество снежинок
    var speed = 6;//измените скорость падения снежинок
    var snowflake = "http://svweb.narod.ru/image/sn07.gif";//укажите путь к папке со снежинками
    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;
    var dx, xp, yp;
    var am, stx, sty;
    var i, doc_width = 1024, doc_height = 768;
    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    for (i = 0; i < no; ++ i) { 
    dx[i] = 0;        
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;       
    stx[i] = 0.02 + Math.random()/20;
    sty[i] = 0.7 + Math.random();  
    if (ns4up) {                 
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
       }
    } else if (ie4up) {
    if (i == 0) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
          }
       }
    }
    function snowNS() {
    for (i = 0; i < no; ++ i) { 
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i];
    document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
    }
    function snowIE() {
    for (i = 0; i < no; ++ i) {
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx[i] += stx[i];
    document.all["dot"+i].style.pixelTop = yp[i];
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", speed);
    }
    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    </SCRIPT>
     
     Падающие снежинки 3:
     
    <SCRIPT language=JavaScript1.2>
    var no = 12;//добавьте колличество снежинок
    var speed = 6;//измените скорость падения снежинок
    var snowflake = "http://brit-fiord.ucoz.ru/_ph/6/2/822936596.gif";//укажите путь к папке со снежинками
    var ns4up = (document.layers) ? 1 : 0;
    var ie4up = (document.all) ? 1 : 0;
    var dx, xp, yp;
    var am, stx, sty;
    var i, doc_width = 1024, doc_height = 768;
    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    for (i = 0; i < no; ++ i) { 
    dx[i] = 0;        
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;       
    stx[i] = 0.02 + Math.random()/20;
    sty[i] = 0.7 + Math.random();  
    if (ns4up) {                 
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></layer>");
       }
    } else if (ie4up) {
    if (i == 0) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(snowflake + "\" border=\"0\"></div>");
          }
       }
    }
    function snowNS() {
    for (i = 0; i < no; ++ i) { 
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i];
    document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
    }
    function snowIE() {
    for (i = 0; i < no; ++ i) {
    yp[i] += sty[i];
    if (yp[i] > doc_height-50) {
    xp[i] = Math.random()*(doc_width-am[i]-20);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/30;
    sty[i] = 0.7 + Math.random();
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx[i] += stx[i];
    document.all["dot"+i].style.pixelTop = yp[i];
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", speed);
    }
    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    </SCRIPT>
     
     
     
     Поднимающиеся кверху пузыри:
     
    <script language="JavaScript1.2">
    <!-- Begin
    var no = 15; // image number or falling rate
    var speed = 2; // the lower the number the faster the image moves
    var snow = new Array();
    snow[0] = "
    http://brit-fiord.ucoz.ru/_ph/6/2/279243431.gif"
    snow[1] = "
    http://brit-fiord.ucoz.ru/_ph/6/2/279243431.gif"
    snow[2] = "
    http://brit-fiord.ucoz.ru/_ph/6/2/279243431.gif"
    var ns4up = (document.layers) ? 1 : 0; // browser sniffer
    var ie4up = (document.all) ? 1 : 0;
    var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
    var dx, xp, yp; // coordinate and position variables
    var am, stx, sty; // amplitude and step variables
    var i, doc_width = 800, doc_height = 1800;
    if (ns4up||ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    j = 0;
    for (i = 0; i < no; ++ i) {
    dx[i] = 0; // set coordinate variables
    xp[i] = Math.random()*(doc_width-50); // set position variables
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20; // set amplitude variables
    stx[i] = 0.02 + Math.random()/10; // set step variables
    sty[i] = 0.7 + Math.random(); // set step variables
    if (ns4up) { // set layers
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
    } } else if (ie4up||ns6up) { if (i == 0)
    {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
    }
    }
    if (j == (snow.length-1)) { j = 0; } else { j += 1; }
    }
    function snowNS() { // Netscape main animation function
    for (i = 0; i < no; ++ i) { // iterate for every dot
    yp[i] -= sty[i]; if (yp[i] < -50) {
    xp[i] = Math.random()*(doc_width-am[i]-30);
    yp[i] = doc_height;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight; }
    dx[i] += stx[i];
    document.layers["dot"+i].top = yp[i]+pageYOffset;
    document.layers["dot"+i].left = xp[i] +
    am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", speed);
    }
    function snowIE_NS6() { // IE main animation function
    for (i = 0; i < no; ++ i) { // iterate for every dot
    yp[i] -= sty[i];
    if (yp[i] < -50) {
    xp[i] = Math.random()*(doc_width-am[i]-30);
    yp[i] = doc_height;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
    doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
    }
    dx[i] += stx[i];
    if (ie4up){
    document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    else if (ns6up){
    document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
    document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
    }
    }
    setTimeout("snowIE_NS6()", speed);
    }
    if (ns4up) {
    snowNS();
    } else if (ie4up||ns6up) {
    snowIE_NS6();
    }
    // End -->
    </script>
     
     
    Курсор лапка:
     
     <STYLE>
    BODY { cursor:url('http://svweb.narod.ru/KURSOR/kursor2.ani');}</style>
     
     Курсор бабочка:
     
    <STYLE>
    BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor40.ani');}</style>
     
     Курсор котик:
    <STYLE>
    BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor65.ani');}</style>
     
     
     
    Разноцветные звездочки в танце с курсором:
     
    <SCRIPT language=JavaScript>
    if (document.all){
    colours=new Array('ff0000','00ff00','3366ff','ff00ff','ffa500','ffffff','fff000')
    amount=colours.length;
    YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,step=0.2,currStep=0,my=0,mx=0;//osw
    document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');
    for (i=0; i < amount; i++)
    document.write('<div id="iestars" style="position:absolute;top:0px;left:0px;height:50px;width:50px;font-family:Courier New;font-size:5px;color:'+colours[i]+';padding-top:20px;text-align:center">.</div>');
    document.write('</div></div>');
    ini=1;<!--fantasyflash.ru-->
    gstep=1;
    function iMouse(){
    my=event.y;mx=event.x;
    }
    document.onmousemove=iMouse
    function dim(){
    ini-=gstep;
    dt=setTimeout('dim()',10);
    if (ini < 2){
    clearTimeout(dt);
    glow();
    }
    }
    function glow(){
    ini+=gstep;
    gt=setTimeout('glow()',10);
    if (ini > 14){
    clearTimeout(gt);
    dim();
    }
    }
    function stars(){
    ie.style.top=document.body.scrollTop;
    for (i=0; i < amount; i++)
    {
    var layer=iestars[i].style;
    layer.filter='glow(color='+colours[i]+', strength='+ini+')';
    layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
    layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
    }
    currStep+=step;
    }
    function delay(){
    Ydelay = YgetDelay+=(my-YgetDelay)*1/20;
    Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;
    stars();//osw
    setTimeout('delay()',10);
    }
    delay();
    glow();
    }
    //-->
    </SCRIPT>

     
    Категория: Web-мастер | Добавил: brit-fiord
    Просмотров: 1877 | Загрузок: 0
    Вход на сайт
    Поиск
    Статистика

    Онлайн всего: 1
    Гостей: 1
    Пользователей: 0
    ДРУЗЬЯ.

  • ЯНДЕКС
  • СООБЩЕСТВО UCOZ
  • CAT-ПОРТАЛ.CAT-ФОРУМ
  • КЛИПАРТЫ.ФОНЫ
  • КУЛИНАРНЫЕ РЕЦЕПТЫ

    Рейтинг@Mail.ru

    Кошки Мира - Информационный портал для любителей этих очаровательных созданий

    Объявления котята, кошки. Породы кошек. Питомники кошек

    Каталог пород кошек в картинках, каталог питомников, смешные тесты про кошек


  • brit-fiord © 2025

    Индекс цитирования.

    ВСЁ О КОШКАХ