Кто хочет стать модератором прошу в раздел -Нужды форуму- ИЛИ оброщайтесь по асе 409-93-758

Бомба Форум=)

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Бомба Форум=) » Всё про програмирование » Скрипты,HTML учебники и т.д.


Скрипты,HTML учебники и т.д.

Сообщений 1 страница 4 из 4

1

Сюда кидаем какие нибудь скрипты хтмл учебники и и .т.д. поможем всем!
Но прошу кроме скриптот и выше указонного не писать!Эта тема только для скрипт и т.д.

Мой первый скрип,тпа на страничке(титулке)идёт снег

<script language=JavaScript1.2>
//Configure below to change URL path to the snow image
var snowsrc="http://mpchat.com/smile/img/snow.gif"

// Configure below to change number of snow to render
var no = 15;

var ns4up = (document.layers) ? 1 : 0; &nbsp;// browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

var dx, xp, yp; &nbsp; &nbsp;// coordinate and position variables
var am, stx, sty; &nbsp;// amplitude and step variables
var i, doc_width = 800, doc_height = 600;

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();

for (i = 0; i < no; ++ i) { &nbsp;
dx[i] = 0; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// set coordinate variables
xp[i] = Math.random()*(doc_width-50); &nbsp;// set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; &nbsp; &nbsp; &nbsp; &nbsp; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); &nbsp; &nbsp; // set step variables
if (ns4up) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// set layers
&nbsp;if (i == 0) {
&nbsp; &nbsp;document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></a></layer>");
&nbsp;} else {
&nbsp; &nbsp;document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>");
&nbsp;}
} else if (ie4up||ns6up) {
&nbsp;if (i == 0) {
&nbsp; &nbsp;document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></a></div>");
&nbsp;} else {
&nbsp; &nbsp;document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></div>");
&nbsp;}
}
}

function snowNS() { &nbsp;// Netscape main animation function
for (i = 0; i < no; ++ i) { &nbsp;// iterate for every dot
&nbsp;yp[i] += sty[i];
&nbsp;if (yp[i] > doc_height-50) {
&nbsp; &nbsp;xp[i] = Math.random()*(doc_width-am[i]-30);
&nbsp; &nbsp;yp[i] = 0;
&nbsp; &nbsp;stx[i] = 0.02 + Math.random()/10;
&nbsp; &nbsp;sty[i] = 0.7 + Math.random();
&nbsp; &nbsp;doc_width = self.innerWidth;
&nbsp; &nbsp;doc_height = self.innerHeight;
&nbsp;}
&nbsp;dx[i] += stx[i];
&nbsp;document.layers["dot"+i].top = yp[i];
&nbsp;document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", 10);
}

function snowIE_NS6() { &nbsp;// IE and NS6 main animation function
for (i = 0; i < no; ++ i) { &nbsp;// iterate for every dot
&nbsp;yp[i] += sty[i];
&nbsp;if (yp[i] > doc_height-50) {
&nbsp; &nbsp;xp[i] = Math.random()*(doc_width-am[i]-30);
&nbsp; &nbsp;yp[i] = 0;
&nbsp; &nbsp;stx[i] = 0.02 + Math.random()/10;
&nbsp; &nbsp;sty[i] = 0.7 + Math.random();
&nbsp; &nbsp;doc_width = ns6up?window.innerWidth : document.body.clientWidth;
&nbsp; &nbsp;doc_height = ns6up?window.innerHeight : document.body.clientHeight;
&nbsp;}
&nbsp;dx[i] += stx[i];
&nbsp;if (ie4up){
&nbsp;document.all["dot"+i].style.pixelTop = yp[i];
&nbsp;document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
&nbsp;}
&nbsp;else if (ns6up){
&nbsp;document.getElementById("dot"+i).style.top=yp[i];
&nbsp;document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
&nbsp;} &nbsp;
}
setTimeout("snowIE_NS6()", 10);
}

if (ns4up) {
snowNS();
} else if (ie4up||ns6up) {
snowIE_NS6();
}
</SCRIPT>

0

2

Типа свитящийся текст(типа неона)

<span span id="glowtext" style="text-decoration: none">
<font color="#000080"><span style="text-decoration: none">ТЕКСТ</span>
</font></span>
<style>
                                                <!--
                                                #glowtext{
                                                filter:glow(color=red,strength=3);
                                                width:100%;
                                                }
                                                -->
                                                </style>
<script language="JavaScript1.2">

                                                /*
                                                Glowing Text Script-
                                                © Dynamic Drive (wwwdynamicdrive.com)
                                                For full source code, installation instructions,
                                                100's more DHTML scripts, and Terms Of
                                                Use, visit dynamicdrive.com
                                                */

                                                function glowit(which){
                                                if (document.all.glowtext[which].filters[0].strength==3)
                                                document.all.glowtext[which].filters[0].strength=2;
                                                else
                                                document.all.glowtext[which].filters[0].strength=3;
                                                }

                                                function glowit2(which){
                                                if (document.all.glowtext.filters[0].strength==3)
                                                document.all.glowtext.filters[0].strength=2;
                                                else
                                                document.all.glowtext.filters[0].strength=3;
                                                }

                                                function startglowing(){
                                                if (document.all.glowtext&&glowtext.length){
                                                for (i=0;i<glowtext.length;i++)
                                                eval('setInterval("glowit('+i+')",150)');
                                                }
                                                else if (glowtext);
                                                setInterval("glowit2(0)",150);
                                                }

                                                if (document.all)
                                                window.onload=startglowing;
                                                </script>

0

3

А это сколько вы находитесь в чате  между тегами <head></head>  если это чат

<script language="JavaScript">
<!--
mytimes = 0;
mytimem = 0;
mytimeh = 0;
times = "";
timem = "";
timeh = "";
function whotime() {
mytimes = mytimes + 1;
if (mytimes == 60) {
mytimes = 0;
mytimem = mytimem + 1; }
if (mytimem == 60) {
mytimem = 0;
mytimeh = mytimeh + 1; }
times = mytimes;
if (times < 10) {
times = "0" + mytimes; }
timem = mytimem;
if (timem < 10) {
timem = "0" + mytimem; }
timeh = mytimeh;
if (timeh < 10) {
timeh = "0" + mytimeh; }

document.time_form.count.value = timeh + ":" + timem + ":" + times;
setTimeout("whotime()",1000);
}
// -->
</script>

0

4

А вот это вставляете туда где хотите чтоб время отображалось

<form name=time_form>
<input type=button name="count" size="20" maxlength="10" readonly title='Время вашего пребывания в чате'>
</form>
<script LANGUAGE = "JavaScript">
whotime();
</script>

0


Вы здесь » Бомба Форум=) » Всё про програмирование » Скрипты,HTML учебники и т.д.


создать форум