Форум в помощь новичку

Объявление

Добро пожаловать к нам на форум :) Последние новости
Наш форум недавно открылся и очень нуждается в твой помощи! Так что не сидим на главной страничке, а регистрируемся!
На форуме поводится набор фотошоперов и анкетчиков. Спешим занимать места! Не забываем за сделаную работу ставить +
Внимание! Что бы сделать заказ чего либо, ваш сайт должен иметь 40 сообщений и 3 пользывателей. (Что бы они были не набиты). Заказ аватаров и подписей выполняется без набора сообщений.
 Ideal Corner

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

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


Вы здесь » Форум в помощь новичку » Скрипты » Украшаем форум


Украшаем форум

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

21

Радужный Текст

Свернутый текст

<center>
<script language="JavaScript">
<!-- Hide the script from old browsers --

function MakeArray(n){
   this.length=n;
   for(var i=1; i<=n; i++) this[i]=i-1;
   return this
}

hex=new MakeArray(16);
hex[11]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D"; hex[15]="E"; hex[16]="F";

function ToHex(x){
   var high=x/16;
   var s=high+"";
   s=s.substring(0,2); 
   high=parseInt(s,10);
   var left=hex[high+1];
   var low=x-high*16;
   s=low+"";
   s=s.substring(0,2);
   low=parseInt(s,10);
   var right=hex[low+1];
   var string=left+""+right;
   return string;
}

function rainbow(text){
   text=text.substring(3,text.length-4);
   color_d1=255;                               
   mul=color_d1/text.length;
   for(i=0;i < text.length;i++){
      color_d1=255*Math.sin(i/(text.length/3)); "255*Math.sin(i/(text.length/3))"
      color_h1=ToHex(color_d1);
      color_d2=mul*i;
      color_h2=ToHex(color_d2);
      document.write("<FONT COLOR='#FF"+color_h1+color_h2+"'>"+text.substring(i,i+1)+'</FONT>');
   }
}

// --End Hiding Here -->
</script>

<SCRIPT>
<!--
   {rainbow("--> Очень красивый текст!!!!!!<!--");}
//-->
</SCRIPT>
</center>

0

22

Цветной Загарающийся Текст

Свернутый текст

<span
id="theText"
style="width:100%"> <h3
align="center"><font color="#3a6ca3"><font
size="+5">Напиши свою надпись</font> </font><font
color="#666666"> <script> // ^-the text that will be displayed
<!--
//can be edited from here
var from = 5; //the animation start value
var to = 11; //the animation end value
var delay = 55; //the animation speed
var glowColor = "red"; //the first color
var glowColor2 = "orange"; //the second color
var glowColor3 = "yellow"; //the third color
var glowColor4 = "lime"; //4th color
var glowColor5 = "blue"; //5th color
var glowColor6 = "magenta"; //last color
//no more editing
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i +
")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i +
")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
}
function textPulseUp2()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i +
")";
i++;
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
}
function textPulseDown2()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i +
")";
i--;
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
}
function textPulseUp3()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor5 + ", Strength=" + i +
")";
i++;
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
}
function textPulseDown3()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor6 + ", Strength=" + i +
")";
i--;
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
//-->
</script></font></h3></span>

0

23

Очень Красивый Текст Салатового Цвета с Движением Справа на Лево

Свернутый текст

<center><p align="center"><font size="+1" color="#bcff58"><marquee behavior="alternate" scrolldelay="65" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="20" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="60" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'> </marquee><marquee behavior="alternate" scrolldelay="20" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="40" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="55" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="45" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'> </marquee><marquee behavior="alternate" scrolldelay="55" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="40" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee><marquee behavior="alternate" scrolldelay="20" width="15%"><img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'>ТЕКСТ<img src='http://img87.imageshack.us/img87/4223/sparkle11xp.gif'></marquee></center></font>

0

24

Автосмена баннера

Свернутый текст

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

var picOne=new Image()
picOne.src="86-1.jpg"

var picTwo=new Image()
picTwo.src="86-2.jpg"

var picThree=new Image()
picThree.src="86-3.jpg"

var message = new Array()
message[0]="<img src='86-1.jpg'>"
message[1]="<img src='86-2.jpg'>"
message[2]="<img src='86-3.jpg'>"
var i_message=0
var covertop=50
var coverleft=400
var coverwidth=1200
var coverheight=520
var texttop=covertop
var textleft=coverleft
var textwidth=400
var textheight=coverheight
var cliptop=0
var clipright=textwidth
var clipbottom=coverheight
var clipleft=0
var clippoints
var step=40
var pause=50
var timer

function init() {
    if (document.all) {
    document.all.text.style.posTop=texttop
        document.all.text.style.posLeft=textleft
        document.all.cover.style.posTop=covertop
        document.all.cover.style.posLeft=coverleft
        clipleft=0
        fadeout()
    }

if (document.layers) {
    document.text.top=texttop
        document.text.left=textleft
        document.cover.top=covertop
        document.cover.left=coverleft
        clipleft=0
        fadeout()
    }
}

function fadeout() {
if (document.all) {
    if (document.all.cover.style.posLeft >=(-coverwidth+textwidth+coverleft+step)) {
        clipleft+=step
        clipright=clipleft+textwidth
        clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
document.all.cover.style.clip=clippoints
        document.all.cover.style.posLeft-=step
        timer= setTimeout("fadeout()",pause)
    }
    else {
        clearTimeout(timer)
        i_message++
        if (i_message>=message.length) {i_message=0}
        text.innerHTML=message[i_message]
        fadein()
    }
}
if (document.layers) {
if (document.cover.left >=(-coverwidth+textwidth+coverleft+step-22)) {
        clipleft+=step
        clipright=clipleft+textwidth
document.cover.clip.top=cliptop
document.cover.clip.left=clipleft
document.cover.clip.bottom=clipbottom
document.cover.clip.right=clipright
        document.cover.left-=step
        timer= setTimeout("fadeout()",pause)
    }
    else {
        clearTimeout(timer)
        i_message++
        if (i_message>=message.length) {i_message=0}
        document.text.document.write(message[i_message])
document.text.document.close()
        fadein()
    }
}
}

function fadein() {
if (document.layers) {
    if (document.cover.left<=coverleft) {
clipleft-=step
        clipright=clipleft+textwidth
document.cover.clip.top=cliptop
document.cover.clip.left=clipleft
document.cover.clip.bottom=clipbottom
document.cover.clip.right=clipright
        document.cover.left+=step
        timer= setTimeout("fadein()",pause)
    }
    else {
        clearTimeout(timer)
        init()
    }
}
if (document.all) {
    if (document.all.cover.style.posLeft<=coverleft) {
        clipleft-=step
        clipright=clipleft+textwidth
        clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
document.all.cover.style.clip=clippoints
        document.all.cover.style.posLeft+=step
        timer= setTimeout("fadein()",pause)
    }
    else {
        clearTimeout(timer)
        init()
    }
}
}
// - End of JavaScript - -->
</SCRIPT>

0

25

Автосмена баннера другой вариантик

Свернутый текст

<script language="JavaScript">

imgnum=0
// Начальные значения рисунков
slideimg=new Array()
slideimg[0]=new Image()
slideimg[1]=new Image()
slideimg[2]=new Image()
slideimg[3]=new Image()
// Здесь указываются рисунки, которые будут показываться
slideimg[0].src="slidimg1.gif"
slideimg[1].src="slidimg2.gif"
slideimg[2].src="slidimg3.gif"
slideimg[3].src="slidimg4.gif"
function showslides(){
document.images[0].src=slideimg[imgnum].src
imgnum++
if(imgnum==4) // Количество показываемых рисунков
imgnum=0;
// Здесь задаётся время, через которое будут меняться рисунки (1000 = 1 секунда)
setTimeout("showslides()", 2000) }
</script>

<body bgcolor="#FFFFFF" onLoad="showslides()">

<p><img src="slidimg1.gif" width="171" height="95"></p>

0

26

Еще один скрипт автосмены баннеров (более красиво смотрится)

Свернутый текст

<style type="text/css">

.imgsstyle {
position:absolute;
left:-2000px;
}
A {
color:FF0000;
}
</STYLE>

<SCRIPT LANGUAGE="JavaScript">
<!--

// The file-names of your slideshow's images
var imgsname = new Array()
imgsname[0]="bannertransj1.gif"
imgsname[1]="bannertransj2.gif"
imgsname[2]="bannertransj3.gif"

// the links for each image
var imgsurl = new Array()
imgsurl[0]="http://www.yahoo.com"
imgsurl[1]="http://www.altavista.com"
imgsurl[2]="http://www.excite.com"

// Configure the distance to the left and top margin of the window (pixels)
var imgstop=20
var imgsleft=20

// Configure the speed of the transition effect. less means faster
var pause=80

// Configure the standstill-time of the images (seconds)
var standstill=3000

// Do not change the variables below this line
var imgpreload=new Array()
for (i=0;i<=imgsname.length-1;i++) {
imgpreload[i]=new Image()
imgpreload[i].src=imgsname[i]
}
var coverimage = new Array()
coverimage[0]="imgtransj115.gif"
coverimage[1]="imgtransj215.gif"
coverimage[2]="imgtransj315.gif"
coverimage[3]="imgtransj415.gif"
coverimage[4]="imgtransj515.gif"
coverimage[5]="imgtransj615.gif"
coverimage[6]="imgtransj715.gif"
coverimage[7]="imgtransj815.gif"
coverimage[8]="imgtransj915.gif"
coverimage[9]="imgtransj1015.gif"
coverimage[10]="imgtransj1115.gif"
coverimage[11]="imgtransj1215.gif"
coverimage[12]="imgtransj1315.gif"
coverimage[13]="imgtransj1415.gif"
coverimage[14]="imgtransj1515.gif"

var covimgpreload=new Array()
for (i=0;i<=coverimage.length-1;i++) {
covimgpreload[i]=new Image()
covimgpreload[i].src=coverimage[i]
}
var i_imgs=0
var i_loop=0
var thisurl=0
var timer
stamdstill=standstill*1000

function init() {
    if (document.all) {
     document.all.imgs.style.posTop=imgstop
        document.all.imgs.style.posLeft=imgsleft
        document.all.cover.style.posTop=imgstop
        document.all.cover.style.posLeft=imgsleft
        enlargehearts()
    }

if (document.layers) {
     document.imgs.top=imgstop
        document.imgs.left=imgsleft
        document.cover.top=imgstop
        document.cover.left=imgsleft
        enlargehearts()
    }
}

function enlargehearts() {
        if (i_loop<=coverimage.length-1) {   
            if (document.all) {
                imgcover.src=coverimage[i_loop]
            }
            if (document.layers) {
                document.cover.document.imgcover.src=coverimage[i_loop]
            }
            i_loop++
            timer= setTimeout("enlargehearts()",pause) 
        }
        else {
            clearTimeout(timer)
            i_loop--
            timer= setTimeout("shrinkhearts()",standstill)
       }
}

function shrinkhearts() {
        if (i_loop>=0) { 
            if (document.all) {
                imgcover.src=coverimage[i_loop]
            }
            if (document.layers) {
                document.cover.document.imgcover.src=coverimage[i_loop]
            }
            i_loop--
            timer= setTimeout("shrinkhearts()",pause)
        }
        else {
            clearTimeout(timer)
            i_loop=0
            i_imgs++
           
            if (i_imgs>=imgsname.length) {i_imgs=0}
                if (document.all) {
                    imgsback.src=imgsname[i_imgs]
                }
                if (document.layers) {
                    document.imgs.document.imgsback.src=imgsname[i_imgs]
                }
            timer= setTimeout("enlargehearts()",(4*pause))
        }
}

function gotourl() {
document.location.href=imgsurl[i_imgs]
}

// - End of JavaScript - -->
</SCRIPT>

</HEAD>
<BODY bgcolor=FFFFFF onLoad="init()">

<DIV ID="imgs" class="imgsstyle"><img width=468 height=60 name="imgsback" src="bannertransj1.gif" border="0" target="_blank"></DIV>

<DIV ID="cover" class="imgsstyle"><a href="javascript:gotourl()"><img width=468 height=60 name="imgcover" src="imgtransj1.gif" border="0" target="_blank"></a></DIV>

0

27

Проявление картинки при наведении курсора

Свернутый текст

<SCRIPT language=JavaScript1.2>
<!--//
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=20
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
//-->
</SCRIPT>
<BODY BACKGROUND="../../../image/obraz.gif">
<A HREF="http://scriptic.narod.ru/"><IMG onMouseOver="high(this)" STYLE="FILTER: alpha(opacity=40)" onMouseOut="low(this)" HEIGHT="60" SRC="metal-468x60.gif" WIDTH="468" BORDER="0"></A>

0

28

Таракашка

Свернутый текст

<script>
var no = 1;
var speed = 299;
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var s, x, y, sn, cs;
var a, r, cx, cy;
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
else
if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
x = new Array();
y = new Array();
r = new Array();
cx = new Array();
cy = new Array();
s = 8;
for (i = 0; i < no; ++ i) {
initRain();
if (ns4up) {
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
document.write("top=\"1\" visibility=\"show\"><img src=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56>");
document.write("</layer>");
}
else {
document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
document.write("top=\"1\" visibility=\"show\"><img src=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56></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=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56></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=\"http://i020.radikal.ru/0805/0a/afba1a30cd67.gif\" width=75 height=56></div>");
    }
}
}
function initRain() {
a = 6;
r[i] = 1;
sn = Math.sin(a);
cs = Math.cos(a);
cx[i] = Math.random() * doc_width + 1;
cy[i] = Math.random() * doc_height + 1;
x[i] = r[i] * sn + cx[i];
y[i] = cy[i];
}
function makeRain() {
r[i] = 1;
cx[i] = Math.random() * doc_width + 1;
cy[i] = 1;
x[i] = r[i] * sn + cx[i];
y[i] = r[i] * cs + cy[i];
}
function updateRain() {
r[i] += s;
x[i] = r[i] * sn + cx[i];
y[i] = r[i] * cs + cy[i];
}
function raindropNS() {
for (i = 0; i < no; ++ i) {
updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
makeRain();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
document.layers["dot"+i].top = y[i];
document.layers["dot"+i].left = x[i];
}
setTimeout("raindropNS()", speed);
}
function raindropIE() {
for (i = 0; i < no; ++ i) {
updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
makeRain();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
document.all["dot"+i].style.pixelTop = y[i];
document.all["dot"+i].style.pixelLeft = x[i];
}
setTimeout("raindropIE()", speed);
}
if (ns4up) {
raindropNS();
}
else
if (ie4up) {
raindropIE();
}
</script>

0

29

а куда их ставить? о.О

0

30

Светка

ХТЛМ низ

0


Вы здесь » Форум в помощь новичку » Скрипты » Украшаем форум


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