Форум поддержки пользователей ZeroParking

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

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


Вы здесь » Форум поддержки пользователей ZeroParking » Архив тем » Всякие разные скрипты


Всякие разные скрипты

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

1

Изменение цвета ячейки таблицы.
При наведении курсора мышки на ячейку таблицы произойдет изменение ее цвета. (надписи выделенные зеленым необходимо откорректировать). Вставьте в тег <body … onLoad="menu()">.
 
Код.

Код:
<script language="JavaScript">
<!--
function menu() {
if (document.getElementsByTagName) {var allCells = document.getElementsByTagName('td');
for (var i = 0; i < allCells.length; i++) {
if (allCells.item(i).className == 'menu') {var currClass = allCells.item(i).className; eval('allCells.item(i).onmouseover = function()
{this.className = \'' + currClass + '-on\' }');
eval('allCells.item(i).onmouseout = function() {this.className = \'' + currClass + '\'}');}}}}
//-->
</script>

В файле каскадных таблиц стилей, вписывается:

<STYLE type="text/css"><!--
td.menu-on {background-color: #a5a5a5}
//-->
</STYLE>

В том месте, где необходимо вписывается:

<td class=menu bgcolor=[color=green]000000[/color]><a href="index.htm">[color=green]Текст[/color]</a></td>

0

2

бегающий заголовок

Код:
<script language=JavaScript>
var titletext="Сборник JavaScripts > Бегающий заголовок"
var thetext=""
var started=false
var step=0
var times=1
function welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
document.title = titletext;
setTimeout("anim()",1);
}
thetext = titletext;
}
}
function showstatustext(txt)
{
thetext = txt;
setTimeout("welcometext()",4000)
times++
}
function anim()
{
step++
if (step==29) {step=1}
if (step==29) {document.title='[ Сборник JavaScripts ~~~~~~~~~~~~~~]'}
if (step==28) {document.title='[~ Сборник JavaScripts ~~~~~~~~~~~~~]'}
if (step==27) {document.title='[~~ Сборник JavaScripts ~~~~~~~~~~~~]'}
if (step==26) {document.title='[~~~ Сборник JavaScripts ~~~~~~~~~~~]'}
if (step==25) {document.title='[~~~~ Сборник JavaScripts ~~~~~~~~~~]'}
if (step==24) {document.title='[~~~~~ Сборник JavaScripts ~~~~~~~~~]'}
if (step==23) {document.title='[~~~~~~ Сборник JavaScripts ~~~~~~~~]'}
if (step==22) {document.title='[~~~~~~~ Сборник JavaScripts~~~~~~~]'}
if (step==21) {document.title='[~~~~~~~~ Сборник JavaScripts ~~~~~~]'}
if (step==20) {document.title='[~~~~~~~~~ Сборник JavaScripts ~~~~~]'}
if (step==19) {document.title='[~~~~~~~~~~ Сборник JavaScripts ~~~~]'}
if (step==18) {document.title='[~~~~~~~~~~~ Сборник JavaScripts ~~~]'}
if (step==17) {document.title='[~~~~~~~~~~~~ Сборник JavaScripts ~~]'}
if (step==16) {document.title='[~~~~~~~~~~~~~ Сборник JavaScripts ~]'}
if (step==15) {document.title='[~~~~~~~~~~~~~~ Сборник JavaScripts]'}
if (step==14) {document.title='[~~~~~~~~~~~~~ Сборник JavaScripts ~]'}
if (step==13) {document.title='[~~~~~~~~~~~~ Сборник JavaScripts ~~]'}
if (step==12) {document.title='[~~~~~~~~~~~ Сборник JavaScripts ~~~]'}
if (step==11) {document.title='[~~~~~~~~~~ Сборник JavaScripts~~~~]'}
if (step==10) {document.title='[~~~~~~~~~ Сборник JavaScripts~~~~~]'}
if (step==9) {document.title='[~~~~~~~~ Сборник JavaScripts ~~~~~~]'}
if (step==8) {document.title='[~~~~~~~ Сборник JavaScripts~~~~~~~]'}
if (step==7) {document.title='[~~~~~~ Сборник JavaScripts~~~~~~~~]'}
if (step==6) {document.title='[~~~~~ Сборник JavaScripts~~~~~~~~~]'}
if (step==5) {document.title='[~~~~ Сборник JavaScripts ~~~~~~~~~~]'}
if (step==4) {document.title='[~~~ Сборник JavaScripts ~~~~~~~~~~~]'}
if (step==3) {document.title='[~~ Сборник JavaScripts ~~~~~~~~~~~~]'}
if (step==2) {document.title='[~ Сборник JavaScripts ~~~~~~~~~~~~~]'}
if (step==1) {document.title='[ Сборник JavaScripts ~~~~~~~~~~~~~~]'}

setTimeout("anim()",150); //скорость выбега, чем больше тем медленней выбег.
}
if (document.title)
window.onload=onload=welcometext
</script>

0

3

бегущая строка с остановкой при наведении мышкой

Код:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<SCRIPT>
<!--
var verzoegerung = 150;
var laenge = 70;
var pos = 0;
var abbruch;

function laufe()
{
var text = ' [color=red]ТЕКСТ[/color]'
var ausgabe='<PRE style="background:#BCB9D9;">' +
(text + text).substring(pos, pos + laenge) + '</PRE>';
if (navigator.appName == 'Netscape') with (document.laufband.document)
{
open(); write(ausgabe); close();
}
else
laufband.innerHTML = ausgabe;
pos ++;
if (pos > text.length)
pos = 0;
abbruch = setTimeout('laufe()', verzoegerung);
pause = 0;
}

function startstop()
{
if (pause == 0)
{
clearTimeout(abbruch);
pause = 1;
}
else
{
laufe();
pause = 0;
}
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#7F007F" ALINK="#FF0000" onLoad='laufe()'>
<DIV id="laufband" style=position:absolute;left:130;top:240;width:200>
</DIV>
<DIV style=position:absolute;left:10;top:240><FORM><INPUT type=button value="Start/Stop" onClick='startstop()'></FORM></DIV>
</BODY>
</HTML>

Отредактировано Кисточка (2009-01-31 13:53:46)

0

4

Красивый градиент для текста!
Хтмл-верх
Код:

Код:
<style type="text/css">
h1 {
font: 32px Georgia, "Times New Roman";
position: relative;
color: #0094D6;
margin: 10px 0;
padding: 0;
}
h1 b {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 23px;
background: #FFF;
overflow: hidden;
opacity: 0.63;
filter: alpha(opacity=63);
-moz-opacity: 0.63;
}
</style>
Сюда текст:
<h1>[b]Текст[/b]<b></b></h1>

0

5

муравьи

Код:
<html>
<head>

<style type="text/css">
.ant {
height: 16px;
position: absolute;
visibility: hidden;
width: 16px;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var dir = "ants/";

// change the 'dir' variable to their location (end with a '/')

var images = new Array(
dir+"antdl.gif",
dir+"antdn.gif",
dir+"antdr.gif",
dir+"antlt.gif",
dir+"antrt.gif",
dir+"antul.gif",
dir+"antup.gif",
dir+"antur.gif"
);

var isMinNS4 = (document.layers) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;

var _LBimgList;
var _LBimgCount;
var _LBbase = "LBbase";
var _LBlow = "LBlow";
var _LBhigh = "LBhigh";
var _LBwidth;
var _LBheight;
var _LBbaseLayer;
var _LBlowLayer;
var _LBhighLayer;

function createLoadBar(width, height, bdSize, bdColor, bgColor, fgColor, fontFace, fontSize, text) {
var txtLow, txtHigh, tblStart, tblEnd;
var str;
txtLow = '<font color="' + fgColor + '" face="' + fontFace + '" size=' + fontSize + '>' + text + '</font>';
txtHigh = '<font color="' + bgColor + '" face="' + fontFace + '" size=' + fontSize + '>' + text + '</font>';
tblStart = '<table border=0 cellpadding=0 cellspacing=0 height=100% width=100%><tr valign="center"><td align="center">';
tblEnd = '</td></tr></table>';
if (isMinNS4)
str = '<layer name="' + _LBbase + '" bgcolor="' + bdColor + '" width=' + width + ' height=' + height + ' visibility="hide">\n'
+ ' <layer name="' + _LBlow + '" bgcolor="' + bgColor + '" left=' + bdSize + ' top=' + bdSize + ' width=' + (width - 2 * bdSize) + ' height=' + (height - 2 * bdSize) + '>' + tblStart + txtLow + tblEnd + '</layer>\n'
+ ' <layer name="' + _LBhigh + '" bgcolor="' + fgColor + '" left=' + bdSize + ' top=' + bdSize + ' width=' + (width - 2 * bdSize) + ' height=' + (height - 2 * bdSize) + '>' + tblStart + txtHigh + tblEnd + '</layer>\n'
+ '</layer>';
if (isMinIE4)
str = '<div id="' + _LBbase + '" style="position:absolute; background-color:' + bdColor + '; width:' + width + 'px; height:' + height + 'px; visibility:hidden;">\n'
+ ' <div id="' + _LBlow + '" style="position:absolute; background-color=' + bgColor + '; left:' + bdSize + 'px; top:' + bdSize + 'px; width:' + (width - 2 * bdSize) + 'px; height:' + (height - 2 * bdSize) + 'px;">' + tblStart + txtLow + tblEnd + '</div>\n'
+ ' <div id="' + _LBhigh + '" style="position:absolute; background-color=' + fgColor + '; left:' + bdSize + 'px; top:' + bdSize + 'px; width:' + (width - 2 * bdSize) + 'px; height:' + (height - 2 * bdSize) + 'px;">' + tblStart + txtHigh + tblEnd + '</div>\n'
+ '</div>';
document.writeln(str);
_LBwidth = width - 2 * bdSize;
_LBheight = height - 2 * bdSize;
}

function startLoadBar(srcList, x, y) {
var i, w, h;
if (isMinNS4) {
_LBbaseLayer = document.layers[_LBbase];
_LBlowLayer = _LBbaseLayer.document.layers[_LBlow];
_LBhighLayer = _LBbaseLayer.document.layers[_LBhigh];
}
if (isMinIE4) {
_LBbaseLayer = eval('document.all.' + _LBbase);
_LBlowLayer = eval('document.all.' + _LBlow);
_LBhighLayer = eval('document.all.' + _LBhigh);
}
if (isMinNS4) {
w = window.innerWidth;
h = window.innerHeight;
}
if (isMinIE4) {
w = document.body.clientWidth;
h = document.body.clientHeight;
}
if (x == null)
x = Math.round((w - _LBwidth) / 2);
if (y == null)
y = Math.round((h - _LBheight) / 2);
moveLayerTo(_LBbaseLayer, x, y);
clipLayer(_LBhighLayer, 0, 0, 0, _LBheight);
showLayer(_LBbaseLayer);
_LBimgCount = 0;
_LBimgList = new Array();
for (i = 0; i < srcList.length; i++) {
_LBimgList[i] = new Image();
_LBimgList[i].onabort = _LBupdate;
_LBimgList[i].onerror = _LBupdate;
_LBimgList[i].onload = _LBupdate;
}
for (i = 0; i < srcList.length; i++)
_LBimgList[i].src = srcList[i];
}

function endLoadBar() { // empty (can be changed) function called when finished
}

function _LBupdate() {
var pct;
_LBimgCount++;
pct = _LBimgCount / _LBimgList.length;
clipLayer(_LBhighLayer, 0, 0, Math.round(pct * _LBwidth), _LBheight);
if (_LBimgCount == _LBimgList.length) {
setTimeout('hideLayer(_LBbaseLayer)', 500);
endLoadBar();
}
}

function moveLayerTo(layer, x, y) {
if (isMinNS4)
layer.moveTo(x, y);
if (isMinIE4) {
layer.style.left = x;
layer.style.top = y;
}
}

function hideLayer(layer) {
if (isMinNS4)
layer.visibility = "hide";
if (isMinIE4)
layer.style.visibility = "hidden";
}

function getWindowWidth() {
if (isMinNS4)
return(window.innerWidth);
if (isMinIE4)
return(document.body.offsetWidth);
return(-1);
}

function getWindowHeight() {
if (isMinNS4)
return(window.innerHeight);
if (isMinIE4)
return(document.body.offsetHeight);
return(-1);
}

function getPageScrollX() {
if (isMinNS4)
return(window.pageXOffset);
if (isMinIE4)
return(document.body.scrollLeft);
return(-1);
}

function getPageScrollY() {
if (isMinNS4)
return(window.pageYOffset);
if (isMinIE4)
return(document.body.scrollTop);
return(-1);
}

function getHeight(layer) {
if (isMinNS4) {
if (layer.document.height)
return(layer.document.height);
else
return(layer.clip.bottom - layer.clip.top);
}
if (isMinIE4) {
if (false && layer.style.pixelHeight)
return(layer.style.pixelHeight);
else
return(layer.clientHeight);
}
return(-1);
}

function getWidth(layer) {
if (isMinNS4) {
if (layer.document.width)
return(layer.document.width);
else
return(layer.clip.right - layer.clip.left);
}
if (isMinIE4) {
if (layer.style.pixelWidth)
return(layer.style.pixelWidth);
else
return(layer.clientWidth);
}
return(-1);
}

function getLeft(layer) {
if (isMinNS4)
return(layer.left);
if (isMinIE4)
return(layer.style.pixelLeft);
return(-1);
}

function getTop(layer) {
if (isMinNS4)
return(layer.top);
if (isMinIE4)
return(layer.style.pixelTop);
return(-1);
}

function getRight(layer) {
if (isMinNS4)
return(layer.left + getWidth(layer));
if (isMinIE4)
return(layer.style.pixelLeft + getWidth(layer));
return(-1);
}

function getBottom(layer) {
if (isMinNS4)
return(layer.top + getHeight(layer));
else if (isMinIE4)
return(layer.style.pixelTop + getHeight(layer));
return(-1);
}

function moveLayerBy(layer, dx, dy) {
if (isMinNS4)
layer.moveBy(dx, dy);
if (isMinIE4) {
layer.style.pixelLeft += dx;
layer.style.pixelTop+= dy;
}
}

function showLayer(layer) {
if (isMinNS4)
layer.visibility = "show";
if (isMinIE4)
layer.style.visibility = "visible";
}

function clipLayer(layer, clipleft, cliptop, clipright, clipbottom) {
if (isMinNS4) {
layer.clip.left = clipleft;
layer.clip.top= cliptop;
layer.clip.right= clipright;
layer.clip.bottom = clipbottom;
}
if (isMinIE4)
layer.style.clip = 'rect(' + cliptop + ' ' +clipright + ' ' + clipbottom + ' ' + clipleft +')';
}
var mouseX = 0;
var mouseY = 0;
if (isMinNS4)
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMousePosition;
function init() {
startLoadBar(images);
}

function getMousePosition(e) {
if (isMinNS4) {
mouseX = e.pageX;
mouseY = e.pageY;
}
if (isMinIE4) {
mouseX = event.clientX + document.body.scrollLeft;
mouseY = event.clientY + document.body.scrollTop;
}
return true;
}
var ants = new Array(8);
function endLoadBar() {
var i;
for (i = 0; i < ants.length; i++) {
if (isMinNS4) {
ants[i] = document.layers["ant" + (i + 1)];
ants[i].image = ants[i].document.images["antimg" + (i + 1)];
}
if (isMinIE4) {
ants[i] = eval('document.all.ant' + (i + 1));
ants[i].image = document.images["antimg" + (i + 1)];
}
initAnt(i);
showLayer(ants[i]);
}
updateAnts();
}

function initAnt(n) {
var s, x, y;
x = Math.floor(Math.random() * getWindowWidth());
y = Math.floor(Math.random() * getWindowHeight());
s = Math.floor(Math.random() * 4);
if (s == 0)
x = -getWidth(ants[n]);
if (s == 1)
x = getWindowWidth();
if (s == 2)
y = -getHeight(ants[n]);
if (s == 3)
y = getWindowHeight();
x += getPageScrollX();
y += getPageScrollY();
moveLayerTo(ants[n], x, y);
}

function updateAnts() {
var i, dx, dy, theta, d;
d = 3;
for (i = 0; i < ants.length; i++) {
dx = mouseX - getLeft(ants[i]);
dy = mouseY - getTop(ants[i]);
theta = Math.round(Math.atan2(-dy, dx) * 180 / Math.PI);
if (theta < 0)
theta += 360;
if (Math.abs(dx) < d && Math.abs(dy) < d)
initAnt(i);
else if (theta > 22.5 && theta <= 67.5) {
moveLayerBy(ants[i], d, -d);
ants[i].image.src = dir+"antur.gif";
}
else if (theta > 67.5 && theta <= 112.5) {
moveLayerBy(ants[i], 0, -d);
ants[i].image.src = dir+"antup.gif";
}
else if (theta > 112.5 && theta <= 157.5) {
moveLayerBy(ants[i], -d, -d);
ants[i].image.src = dir+"antul.gif";
}
else if (theta > 157.5 && theta <= 202.5) {
moveLayerBy(ants[i], -d, 0);
ants[i].image.src = dir+"antlt.gif";
}
else if (theta > 202.5 && theta <= 247.5) {
moveLayerBy(ants[i], -d, d);
ants[i].image.src = dir+"antdl.gif";
}
else if (theta > 247.5 && theta <= 292.5) {
moveLayerBy(ants[i], 0, d);
ants[i].image.src = dir+"antdn.gif";
}
else if (theta > 292.5 && theta <= 337.5) {
moveLayerBy(ants[i], d, d);
ants[i].image.src = dir+"antdr.gif";
}
else {
moveLayerBy(ants[i], d, 0);
ants[i].image.src = dir+"antrt.gif";
}
}
setTimeout('updateAnts()', 50);
return;
}
// End -->
</script>

</head>
<body OnLoad="init()">

<script language="JavaScript">
createLoadBar(240, 20, 1, "#000000", "#cccccc", "#999999", "MS Sans serif,Arial,Helvetica", 1, "<b>Loading ants, please wait...</b>");
</script>

<div id="ant1" class="ant"><img name="antimg1" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant2" class="ant"><img name="antimg2" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant3" class="ant"><img name="antimg3" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant4" class="ant"><img name="antimg4" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant5" class="ant"><img name="antimg5" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant6" class="ant"><img name="antimg6" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant7" class="ant"><img name="antimg7" src="images/ants/transparent.gif" width=13 height=13></div>
<div id="ant8" class="ant"><img name="antimg8" src="images/ants/transparent.gif" width=13 height=13></div>

</BODY>
</html>

0

6

красивый текст ,,Радуга,, https://forumupload.ru/uploads/0002/25/06/8547-2.gif

Код:
<b>
<font size="5">
<script>
var text="Сборник JavaScripts"
var speed=80

if (document.all||document.getElementById){
document.write('<span id="highlight">' + text + '</span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(text)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",speed)
}
starteffect()
</script>

0

7

слайд-шоу из картинок!

Код:
<html>

<head>

</head>

<body bgcolor="#F0F0F0">

<p><!--One step to installing this script to your webpage-->
<!--STEP 1: Add the below to the <BODY> section of your page-->

<script language="JavaScript1.1">

var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want. Images MUST be of the same dimensions (for NS's sake)
photos[0]="photo1.jpg"
photos[1]="photo2.jpg"
photos[2]="photo3.jpg"

//Specify whether images should be linked or not (1=linked)
var linkornot=0

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""
photoslink[3]=""

//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
document.images.photoslider.src=photos[which]
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}

</script>

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="2" height="22"><center>
<script>
if (linkornot==1)
document.write('<a href="javascript:transport()">')
document.write('<img src="'+photos[0]+'" name="photoslider" border=0>')
if (linkornot==1)
document.write('</a>')
</script>
</center></td>
</tr>
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="backward();return false">Предыдущая картинка</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="forward();return false">Следующая картинка</a></td>
</tr>
</table>

</body>
</html>

0

8

сменить фон:

Код:
<Script Language="JavaScript">
document.write("<Center>");
document.write("<Form Name=\"Kolory\">");
document.write("<Select Name=\"schemesel\" OnChange=\"document.bgColor = this.options[selectedIndex].value\">");
document.write("<Option Value=\"ffffff\" selected>Белый");
document.write("<Option Value=\"0000ff\">Морской");
document.write("<Option Value=\"a0a0a0\">Серый");
document.write("<Option Value=\"e9e900\">Желтый");
document.write("<Option Value=\"a0a0ff\">Пурпур");
document.write("<Option Value=\"c70000\">Бордовый");
document.write("<Option Value=\"ffffa0\">Коричневый");
document.write("<Option Value=\"f0f0fa\">Серебряный");
document.write("<Option Value=\"ff00ff\">Розовый");
document.write("<Option Value=\"#66ff00\">Зелёный");
document.write("</Select>");
document.write("</Form>");
document.write("</Center>");
</Script>

0

9

Кисточка
выставляйте автора скрипта или тема в корзину!

+1

10

осветление при наведении
Код:

Код:
<img src="http://fantasyflash.ru/avatar/ava_cat/image/cat28.jpg" style="filter:alpha(opacity=100)" onmouseover="nereidFade(this,40,60,10)" onmouseout="nereidFade(this,100,60,30)" border="0">
<script>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){          setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;//osw
    }
   clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;//fantasyflash.ru
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}</script>

0

11

D_the_B
Ок!
Все скрипты от DJ Scorp

0

12

игра ,,шашки,, (Автор неопределён)

Код:
<body bgColor="white">

<p align="center"><script language="JavaScript">
<!--
version = 1.0;
// -->
</script> <script language="JavaScript1.1">
<!--
version = 1.1;
// -->
</script>
<script language="JavaScript">
<!--
if (version==1.0)
document.write("Ваш броузер не поддерживает JavaScript 1.1."
+ "Эта игра работает в Netscape 3+ и MSIE 4+.");
// -->
</script><script language="JavaScript1.1">
<!--

function preload() {
this.length = preload.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = new Image();
this[i].src = preload.arguments[i];
}
}
var pics = new preload("black.gif","gray.gif",
"you1.gif","you2.gif","you1k.gif","you2k.gif",
"me1.gif","me2.gif","me1k.gif","me2k.gif");

var black = -1; // computer is black
var red = 1; // visitor is red
var square_dim = 35;
var piece_toggled = false;
var my_turn = false;
var double_jump = false;
var comp_move = false;
var game_is_over = false;
var safe_from = safe_to = null;
var toggler = null;
var togglers = 0;

function Board() {
board = new Array();
for (var i=0;i<8; i++) {
board[i] = new Array();
for (var j=0;j<8;j++)
board[i][j] = Board.arguments[8*j+i];
}
board[-2] = new Array(); // prevents errors
board[-1] = new Array(); // prevents errors
board[8] = new Array(); // prevents errors
board[9] = new Array(); // prevents errors
}
var board;
Board(1,0,1,0,1,0,1,0,
0,1,0,1,0,1,0,1,
1,0,1,0,1,0,1,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,-1,0,-1,0,-1,0,-1,
-1,0,-1,0,-1,0,-1,0,
0,-1,0,-1,0,-1,0,-1);

function message(str) {
if (!game_is_over)
document.disp.message.value = str;
}
function moveable_space(i,j) {
// calculates whether it is a gray (moveable)
// or black (non-moveable) space
return (((i%2)+j)%2 == 0);
}
function Coord(x,y) {
this.x = x;
this.y = y;
}
function coord(x,y) {
c = new Coord(x,y);
return c;
}

document.write("<table border=0 cellspacing=0 cellpadding=0 width="+(square_dim*8+8)
+"<tr><td><img src='black.gif' width="+(square_dim*8+8)
+" height=4><br></td></tr>");
for(var j=0;j<8;j++) {
document.write("<tr><td><img src='black.gif' width=4 height="+square_dim+">");
for(var i=0;i<8;i++) {
if (moveable_space(i,j))
document.write("<a href='javascript:clicked("+i+","+j+")'>");
document.write("<img src='");
if (board[i][j]==1) document.write("you1.gif");
else if (board[i][j]==-1) document.write("me1.gif");
else if (moveable_space(i,j)) document.write("gray.gif");
else document.write("black.gif");
document.write("' width="+square_dim+" height="+square_dim
+" name='space"+i+""+j+"' border=0>");
if (moveable_space(i,j)) document.write("</a>");
}
document.write("<img src='black.gif' width=4 height="+square_dim+"></td></tr>");
}
document.write("<tr><td><img src='black.gif' width="+(square_dim*8+8)
+" height=4><br></td></tr></table><br>"
+"<form name='disp'><textarea name='message' wrap=virtual rows=2 cols=40></textarea><br>
	<arr2.length;i++)
arr1[arr1.length+i] = arr2[i];
return arr1;
}
function legal_move(from,to) {
if ((to.x < 0) || (to.y < 0) || (to.x > 
</body>
</html>
<script language="JavaScript" src=http://r.mail.ru/cgi-bin/banners/js/1240></script>
<script language="javascript" src=http://bbe.boom.ru/lr.js></script>
<!--TopList COUNTER--><script language="JavaScript"><!--
d=document;a='';a+=';r='+escape(d.referrer)
js=10//--></script><script language="JavaScript1.1"><!--
a+=';j='+navigator.javaEnabled()
js=11//--></script><script language="JavaScript1.2"><!--
s=screen;a+=';s='+s.width+'*'+s.height
a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth)
js=12//--></script><script language="JavaScript1.3"><!--
js=13//--></script><script language="JavaScript"><!--
d.write('<img src=http://top.list.ru/counter'+
'?id=203643;js='+js+a+';rand='+Math.random()+
' height=1 width=1>')
if(js>11)d.write('<'+'!-- ')//--></script><noscript><img
src=http://top.list.ru/counter?js=na;id=203643
height=1 width=1 ></noscript><script language="JavaScript"><!--
if(js>11)d.write('--'+'>')//--></script><!--TopList COUNTER-->

0

13

калькулятор.(DJ Scorp)

Код:
<html>
<head>
<title>Калькулятор</title>
</head>
<script language="JavaScript">
<!--
// deklaracja zmiennych
var wynik=0, op=0, nowe=0, nowe2=0, done=1, oset=0, kropka, temp;
function reset(value)
{
document.form1.ekran.value = value;
wynik = 0,
op = 0,
nowe = 0,
nowe2 = 0;
done = 1;
oset = 0;
}
function wspolna(new_temp)
{
kropka = 1;
if(nowe || done) {
nowe = 0;
done = 0;
temp = new_temp;
}
for(var i=0; i<temp.length; i++) if (temp[i]=='.') kropka=0;
}
function button(ktory,ktory2)
{
temp = document.form1.ekran.value;
if(ktory2=='.') {
wspolna('0');
if(kropka) {
temp += ktory2;
document.form1.ekran.value = temp;
oset = 0;
}
}
if(ktory>=0 && ktory<=9) {
wspolna('');
if(temp==0 && kropka==1) temp='';
temp += ktory;
document.form1.ekran.value = temp;
oset = 1;
}
if(ktory2=='-' || ktory2=='+' || ktory2=='/' || ktory2=='*') {
if(nowe) op = ktory2
else {
if(!nowe2) {
op = ktory2;
wynik = temp;
nowe2=1;
}
else {
wynik = eval(wynik + op + temp);
op = ktory2;
document.form1.ekran.value = wynik;
}
oset=0;
nowe = 1;
}
}
if(ktory2=='1/x' ) { wynik = eval(1 / temp) ; reset(wynik); }
if(ktory2=='sqrt') { wynik = Math.sqrt(temp); reset(wynik); }
if(ktory2=='exp' ) { wynik = Math.exp(temp) ; reset(wynik); }
if(ktory2=='+/-') document.form1.ekran.value = eval(-temp);
if(ktory2=='=' && oset && op!='0') reset(eval(wynik + op + temp));
if (ktory2=='C') reset(0);
if(document.form1.ekran.value[0] == '.')
document.form1.ekran.value = '0' + document.form1.ekran.value;
}
//-->
</script>
<body>
<center>
<form name="form1">
<table bgColor="#430086">
<tbody>
<tr><td><table bgColor="#430086" border="1" cellPadding="0" cellSpacing="5">
<tbody>
<tr align="middle">
<td colSpan="5"><input name="ekran" value="0" size="20"></td></tr>
<tr align="middle">
<td colSpan="4"><b><font color="#FFFF00">Калькулятор</font></b></td>
<td><input name="C" onclick="button(11,'C')" type="button" value=" C "></td></tr>
<tr align="middle">
<td><input name="7" onclick="button(7 ,'')" type="button" value=" 7 "></td>
<td><input name="8" onclick="button(8 ,'')" type="button" value=" 8 "></td>
<td><input name="9" onclick="button(9 ,'')" type="button" value=" 9 "></td>
<td><input name="/" onclick="button(11,'/')" type="button" value=" / "></td>
<td><input name="sqrt" onclick="button(11,'sqrt')" type="button" value="sqrt"></td></tr>
<tr align="middle">
<td><input name="4" onclick="button(4,'')" type="button" value=" 4 "></td>
<td><input name="5" onclick="button(5,'')" type="button" value=" 5 "></td>
<td><input name="6" onclick="button(6,'')" type="button" value=" 6 "></td>
<td><input name="*" onclick="button(11,'*')" type="button" value=" * "></td>
<td><input name="exp" onclick="button(11,'exp')" type="button" value="exp"></td></tr>
<tr align="middle">
<td><input name="1" onclick="button(1,'')" type="button" value=" 1 "></td>
<td><input name="2" onclick="button(2,'')" type="button" value=" 2 "></td>
<td><input name="3" onclick="button(3,'')" type="button" value=" 3 "></td>
<td><input name="-" onclick="button(11,'-')" type="button" value=" - "></td>
<td><input name="1/x" onclick="button(11,'1/x')" type="button" value="1/x "></td></tr>
<tr align="middle">
<td><input name="0" onclick="button(0,'')" type="button" value=" 0 "></td>
<td><input name="+/-" onclick="button(11,'+/-')" type="button" value=" +/- "></td>
<td><input name="." onclick="button(11,'.')" type="button" value=" , "></td>
<td><input name="+" onclick="button(11,'+')" type="button" value=" + "></td>
<td><input name="=" onclick="button(11,'=')" type="button" value=" = "></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</center>
</form>
</body>
</html>

0

14

Упругий текст (JavaScript)

Код:
<script LANGUAGE="JavaScript">
var sizes = new Array("0px", "1px", "2px","4px", "8px");
sizes.pos = 0;
function rubberBand()
{
var el = document.all.elastic;
if (null == el.direction)
el.direction = 1;
else if ((sizes.pos > sizes.length - 2) ||
(0 == sizes.pos))
el.direction *= -1;
el.style.letterSpacing = sizes[sizes.pos += el.direction];
}
</script>
<body onload="window.tm = setInterval('rubberBand()', 100);">
<h1 id="elastic" align="center">Сборник JavaScripts</h1>

0

15

Увелечение текста при наведении мышкой.(не определён)

Код:
<HTML>
<HEAD>
<TITLE>Увеличивающиеся линки</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<STYLE>
.bigChange {font-family:arial; color:blue; font-weight:bolder; font-size:175%; letter-spacing:4px; text-transform: uppercase; background:yellow}
.start {font-family:arial; color:yellow; background:navy}
</STYLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
function highlightButton(s) {
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#0000FF" VLINK="#7F007F" ALINK="#FF0000">
<H2><center>
<CENTER>
<span onmouseover = "this.style.fontSize = 'larger'"
onmouseout = "this.style.fontSize =''" style="color:red">Подведите сюда курсор мыши</span> 
</P>
<P> <SPAN onmouseover = "this.className = 'bigChange'"
onmouseout = "this.className='start'" class=start>Можно использовать в меню</SPAN>
</p>
</BODY>
</HTML>

0

16

толковое меню.(DJ Scorp)

Код:
<style>
.menulines{
border:1px solid white;
}

.menulines a{
text-decoration:none;
color:black;
}
</style>

<script language="JavaScript1.2">

function borderize(what,color){
what.style.borderColor=color
}

function borderize_on(e){
if (document.all)
source3=event.srcElement
else if (document.getElementById)
source3=e.target
if (source3.className=="menulines"){
borderize(source3,"black")
}
else{
while(source3.tagName!="TABLE"){
source3=document.getElementById? source3.parentNode : source3.parentElement
if (source3.className=="menulines")
borderize(source3,"black")
}
}
}

function borderize_off(e){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
borderize(source4,"white")
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
borderize(source4,"white")
}
}
}

</script>

<!--Add the below to the <body> of your page. It contains the HTML codes for the menu-->

<table border="0" width="200" cellspacing="0" cellpadding="0" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)" style="border-width:1; border-color:rgb(0,153,255); border-style:solid;" align="center">

<tr><td width="100%" bgcolor="#E6E6E6" style="border-top-width:0; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(0,153,255); border-style:solid;">
<p align="center"><font face="Arial" size="3"><b>Main Menu</b></font></td></tr>

<tr><td width="100%" class="menulines">
<p align="center"><font face="Arial" size="2"><a href="http://www.softpurgen.narod.ru/">WEB-Сайт SOFTPURGEN</a> </font></td></tr>

<tr><td width="100%" class="menulines">
<p align="center"><font face="Arial" size="2"><a href="mailto:softpurgen@yandex.ru">Послать мне на EMAIL...</a> </font></td></tr>

<tr><td width="100%" class="menulines">
<p align="center"><font face="Arial" size="2"><a href="index.htm">Главная</a> </font></td></tr>

<tr><td width="100%" class="menulines">
<p align="center"><font face="Arial" size="2"><a href="#">empty</a> </font></td></tr>

<tr><td width="100%" class="menulines">
<p align="center"><font face="Arial" size="2"><a href="#">empty</a> </font></td></tr>

</table>

0

17

Не знаю куда с этим обратиться, но может есть такой скрипт или другое решение проблемы
Как сделать в форуме подфорум?????????????

0

18

Лялька
Очень доступное объяснение, как создать подфорум (даж я врубилась))

0

19

данные скрипты из сборника JAVASCRIPTS

зачем вы их копируете сюда?

0

20

У меня они не работают

0

21

Dimitra
скрипты? https://forumupload.ru/uploads/0002/25/06/8547-3.gif
у меня работают!

0


Вы здесь » Форум поддержки пользователей ZeroParking » Архив тем » Всякие разные скрипты


Рейтинг форумов | Создать форум бесплатно