Форум тех поддержки

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

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


Вы здесь » Форум тех поддержки » Вебмастеру » HTML скрипты


HTML скрипты

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

1

Анимация в строке title

Код:
<body bgcolor=white>
<title>http://bjs.stsland.ru/ - База Ява Скриптов (bjs)</title>

<script><!--
var tit = document.title;
var c = 0;

function writetitle()
{
document.title = tit.substring(0,c);
if(c==tit.length)
{
c = 0;
setTimeout("writetitle()", 3000)
}
else
{
c++;
setTimeout("writetitle()", 200)
}
}
writetitle()
// --></script>

Анимация в строке title

0

2

Мигающий текст

Код:
<HTML>
<HEAD>
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
 <style>

<!--

#glowtext{

filter:glow(color="red",strength=3);

width:100%;

}

-->

</style>
<script language="JavaScript1.2">
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+')",15

0

3

Показывает сколько осталось до нового года

Код:
<title>http://bjs.stsland.ru/ - База Ява Скриптов (bjs)</title>

 <Script Language=JavaScript>
function myFunction1(){
if (date<=myDate) month1=12-(month-myMonth);
else month1=11-(month-myMonth);}
function myFunction2(){
if (date>myDate) month1=(myMonth-month-1);
else month1=(myMonth-month);}
function myFunction3(){
if (date<=myDate) month1=0;
else month1=11;}
function myFunction4(){
if (month==2) date1=(28-date+myDate);
if (month==4) date1=(30-date+myDate);
if (month==6) date1=(30-date+myDate);
if (month==9) date1=(30-date+myDate);
if (month==11) date1=(30-date+myDate);
if (month==1) date1=(31-date+myDate);
if (month==3) date1=(31-date+myDate);
if (month==5) date1=(31-date+myDate);
if (month==7) date1=(31-date+myDate);
if (month==8) date1=(31-date+myDate);
if (month==10) date1=(31-date+myDate);
if (month==12) date1=(31-date+myDate);}
var date=(new Date()).getDate();
var month=(new Date()).getMonth()+1;
var myDate=01
var myMonth=01
if (month>myMonth) myFunction1();
if (month<myMonth) myFunction2();
if (month==myMonth) myFunction3();
if (date<=myDate) date1=(myDate-date);
if (date>myDate) myFunction4();
if (month1==1) monthtxt=("месяц");
if (month1>1 && month1<5) monthtxt=("месяцa");
if (month1>4) monthtxt=("месяцев");
if (date1==1, 21) datetxt=("день");
if (date1>1 && date1<5) datetxt=("дня");
if (date1>21 && date1<25) datetxt=("дня");
if (date1>4 && date1<21) datetxt=("дней");
if (date1>24 && date1<31) datetxt=("дней");
var txt=("До нового года осталось:");
if (month1==0 && date1==0) txt=("Сегодня 1 января");
document.write(txt+' ');
if (month1>0) document.write(month1+" "+monthtxt+' ');
else document.write("");
if (date1>0) document.write(date1+" "+datetxt);
else document.write("");
</Script>

0

4

показывает сколько живёт сайт

Код:
<html>
<head>
<title>http://defor.ru/ - База Ява Скриптов (bjs)</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
 <Style>
   A:Link{ Color: #000000; Text-decoration: underline}
   A:Visited{ Color: #000000; Text-decoration: underline}
   A:Hover{ Color: #000000; Text-decoration: none}
 td, body {font-family: verdana, arial, helvetica; font-size:11px;}  
 </Style>

<!-- HEAD START HERE -->



<!-- HEAD END HERE -->




</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<center>

<!-- BODY START HERE -->

<SCRIPT language=JavaScript>
<!--
d0 = new Date('March 30, 2000');
d1 = new Date();
dt = (d1.getTime() - d0.getTime()) / (1000*60*60*24);
document.write('Этот сайт живет <B>' + Math.round(dt) + '</B>-й день.');
-->
</SCRIPT>

<!-- BODY END HERE -->


</center>
</body>
</html>

0

5

Подсказка

Код:
<title>http://bjs.stsland.ru/ - База Ява Скриптов (bjs)</title>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

	var cuMsg = 'MouseOver Message!'; 
	function update(msg) {
    var pad_str="";
    n = msg.length;
    if(n<80) {
    	pad = (80-n)/2;
    	for(var i=0; i<pad; i++) {
        pad_str+=" ";
    	}	
    }	
    cuMsg = pad_str + msg;
    document.ccMsg.field.value = cuMsg;
	       	}
</SCRIPT>

</HEAD>

<BODY TEXT="#FFFFFF" LINK="white" VLINK="white" ALINK=white bgcolor=#333399>

<CENTER>
 <FONT FACE=VERDANA SIZE=3>
<FORM NAME="ccMsg" onSubmit="return false">
<input type="text" name="field" size=60 value="        	             YavaScript           Наведи на ссылку" onChange="nochange()">
</form></center>


<CENTER>

 <A HREF="http://bjs.stsland.ru/"
onMouseOver="update('Очень много разнообразных Java-скриптов')"  onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>Java-Script</B></A><P> 

  
 <A HREF="http://yandex.tu"
onMouseOver="update('      	       Яndex.Ru')" onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>Yandex</B></A><P> 


</script>

0

6

При первой загрузке пользователем вашей страницы программа предложит
добавить указанный адрес в Избранное. При последующих загрузках
таких предложений более не будет.

Код:
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
<!-- Begin
var expDays = 7;

url = "http://dweb.ru/";
title = "Сайт для Вебмастера + Журнал WEB-Дизайн";

// Cookie code from The JavaScript Source
function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);

if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
window.external.AddFavorite (url,title);
}
else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
alert(msg);
   }
}
else {
count++;
SetCookie('count', count, exp);
   }
}
checkCount();
//  End -->
</script>

0

7

Кнопка"на верх страницы"

Код:
<HTML>
<Head>
<title>Down</title>
<Script Language="JavaScript">  
  function scrollit()
  {for (I=1; I<=500; I++)
   {self.scroll(1,I)}}                                                       
</Script>
</Head>
<body bgcolor="36456c" text="white">


<Input Type="button" Value="Go down" OnClick="scrollit()">
<Table Height="125%"><Tr><Td></Td></Tr></Table>
</Body>
</HTML>

0

8

кнопка с эффектом текста

Код:
<html><head><title>InterNeT DesiGn</title>
<script>
function h(color)
{
hn = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A" ,"B", "C", "D", "E", "F")
if(color<0){return "00"}
else if(color>255){return "FF"}
else
{
	s = "" + hn[Math.floor(color/16)] + hn[color%16]
	return s
	}
}
function toH(red, green, blue){return h(red) + h(green) + h(blue)}
function RGB(red, green, blue){return toH(red, green, blue)}
</script>
<script>
var sR = 13
var sG = 1
var sB = 12
var R = 0
var G = 0
var B = 0
var b = true;

function setButtonColor(r, g, b)
{
document.all["button"].style.color=RGB(r, g, b);
}

function startChanging()
{
if(b==true)
	{
	if((R>256)||(G>256)||(B>256))
    {
    b=false;
    }
	R+=sR;G+=sG;B+=sB;
	}
else
	{
	if((R<0)||(G<0)||(B<0))
    {
    b=true;
    }
	R-=sR; G-=sG; B-=sB
	}
setButtonColor(R, G, B);
setTimeout("startChanging()", 1)
}
</script>
</head>

<body onload="startChanging()" bgcolor=#33339>
<center>
<Button id="button" style="font: 8pt Fixedsys;">
<p>Кнопка, с эффектом текста&nbsp;</button> </p>

0

9

Показывает последнее обновления

Код:
<html>
<head>
<title>WOweb.ru - Scripts - JavaScript - Last Update</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
 <Style>
   A:Link{ Color: #000000; Text-decoration: underline}
   A:Visited{ Color: #000000; Text-decoration: underline}
   A:Hover{ Color: #000000; Text-decoration: none}
 td, body {font-family: verdana, arial, helvetica; font-size:11px;}  
 </Style>

<!-- HEAD START HERE -->



<!-- HEAD END HERE -->




</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<center>

<!-- BODY START HERE -->

 <script language="JavaScript"><!--
 var dateMod = ""  ;dateMod = document.lastModified  ;document.write("Last Update:  ");  document.write(dateMod);  document.write();
 // --></script>

<!-- BODY END HERE -->



</body>
</html>

0

10

Бегущая строка,3 вида

Код:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0041)http://www.superbest.com/examples/1/1.htm -->
<HTML><HEAD><TITLE>Бегущие строки 1</TITLE>
<META content="text/html; charset=windows-1251" http-equiv=Content-Type>
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff align="center" <p>
<P align=center><FONT color=#ff0000 size=6><B>
<MARQUEE behavior=alternate bgColor=#ffffff height=36 width="75%" 
border="1">БЕГУЩИЕ СТРОКИ.</MARQUEE></B></FONT></P>
<P align=center><FONT color=#0000c0 size=1>&lt;p align=</FONT><FONT 
color=#000000 size=1>"center"&gt;&lt;font</FONT><FONT color=#0000c0 size=1> 
color=</FONT><FONT color=#000000 size=1>"#FF0000"</FONT><FONT color=#0000c0 
size=1> size=</FONT><FONT color=#000000 
size=1>"6"&gt;&lt;b&gt;&lt;marquee</FONT><FONT color=#0000c0 size=1> 
behavior=</FONT><FONT color=#000000 size=1>"alternate"</FONT><FONT color=#0000c0 
size=1> bgcolor=</FONT><FONT color=#000000 size=1>"#FFFFFF"</FONT><FONT 
color=#0000c0 size=1> height=</FONT><FONT color=#000000 size=1>"36"</FONT><FONT 
color=#0000c0 size=1> width=</FONT><FONT color=#000000 size=1>"75%"</FONT><FONT 
color=#0000c0 size=1> border=</FONT><FONT color=#000000 
size=1>"1"&gt;БЕГУЩИЕ</FONT><FONT color=#0000c0 size=1> 
СТРОКИ.&lt;/marquee&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;</FONT></P>
<P align=center><FONT color=#0080ff size=6><B>
<MARQUEE behavior=slide bgColor=#ffffff height=36 width="75%" border="1">БЕГУЩИЕ 
СТРОКИ.</MARQUEE></B></FONT></P>
<P align=center><FONT color=#0000c0 size=1>&lt;p align=</FONT><FONT 
color=#000000 size=1>"center"&gt;&lt;font</FONT><FONT color=#0000c0 size=1> 
color=</FONT><FONT color=#000000 size=1>"#0080FF"</FONT><FONT color=#0000c0 
size=1> size=</FONT><FONT color=#000000 
size=1>"6"&gt;&lt;b&gt;&lt;marquee</FONT><FONT color=#0000c0 size=1> 
behavior=</FONT><FONT color=#000000 size=1>"slide"</FONT><FONT color=#0000c0 
size=1> bgcolor=</FONT><FONT color=#000000 size=1>"#FFFFFF"</FONT><FONT 
color=#0000c0 size=1> height=</FONT><FONT color=#000000 size=1>"36"</FONT><FONT 
color=#0000c0 size=1> width=</FONT><FONT color=#000000 size=1>"75%"</FONT><FONT 
color=#0000c0 size=1> border=</FONT><FONT color=#000000 
size=1>"1"&gt;БЕГУЩИЕ</FONT><FONT color=#0000c0 size=1> 
СТРОКИ.&lt;/marquee&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;</FONT></P>
<P align=center><FONT color=#80ff80 size=6><B>
<MARQUEE bgColor=#ffffff height=36 width="75%" border="1">БЕГУЩИЕ 
СТРОКИ.</MARQUEE></B></FONT></P>
<P align=center><FONT color=#0000c0 size=1>&lt;p align=</FONT><FONT 
color=#000000 size=1>"center"&gt;&lt;font</FONT><FONT color=#0000c0 size=1> 
color=</FONT><FONT color=#000000 size=1>"#80FF80"</FONT><FONT color=#0000c0 
size=1> size=</FONT><FONT color=#000000 
size=1>"6"&gt;&lt;b&gt;&lt;marquee</FONT><FONT color=#0000c0 size=1> 
bgcolor=</FONT><FONT color=#000000 size=1>"#FFFFFF"</FONT><FONT color=#0000c0 
size=1> height=</FONT><FONT color=#000000 size=1>"36"</FONT><FONT color=#0000c0 
size=1> width=</FONT><FONT color=#000000 size=1>"75%"</FONT><FONT color=#0000c0 
size=1> border=</FONT><FONT color=#000000 size=1>"1"&gt;БЕГУЩИЕ</FONT><FONT 
color=#0000c0 size=1> 
СТРОКИ.&lt;/marquee&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;</FONT></P>
<P align=center><FONT color=#c0c0c0 size=6><B>
<MARQUEE bgColor=#ffffff direction=right height=36 width="75%" 
border="1">БЕГУЩИЕ СТРОКИ.</MARQUEE></B></FONT>
<P align=center><FONT color=#0000c0 size=1>&lt;p align=</FONT><FONT 
color=#000000 size=1>"center"&gt;&lt;font</FONT><FONT color=#0000c0 size=1> 
color=</FONT><FONT color=#000000 size=1>"#C0C0C0"</FONT><FONT color=#0000c0 
size=1> size=</FONT><FONT color=#000000 
size=1>"6"&gt;&lt;b&gt;&lt;marquee</FONT><FONT color=#0000c0 size=1> 
bgcolor=</FONT><FONT color=#000000 size=1>"#FFFFFF"</FONT><FONT color=#0000c0 
size=1> direction=</FONT><FONT color=#000000 size=1>"right"</FONT><FONT 
color=#0000c0 size=1> height=</FONT><FONT color=#000000 size=1>"36"</FONT><FONT 
color=#0000c0 size=1> width=</FONT><FONT color=#000000 size=1>"75%"</FONT><FONT 
color=#0000c0 size=1> border=</FONT><FONT color=#000000 
size=1>"1"&gt;БЕГУЩИЕ</FONT><FONT color=#0000c0 size=1> 
СТРОКИ.&lt;/marquee&gt;&lt;/b&gt;&lt;/font&gt;</FONT> 
<P align=center>&nbsp;</P>
<P align=center>&nbsp; </P></BODY></HTML>

0

11

При наведении на ссылку она мегадет

Код:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
</head>

<body>
<SCRIPT>
<!-- Beginning of JavaScript -

var i_strength=0
var max_strength=6
var shadowcolor="red"
var timer
var speed=50
var thisobj

function gotoURL(){
var newWindow=window.open("http://case.nm.ru","newwin","status, directories,menubar,scrollbars,titlebar, toolbar,resizable,HEIGHT=600,WIDTH=400")
newWindow.focus()
}

function stopfilter(thisdiv){
if (document.all) {
clearTimeout(timer)
thisobj=thisdiv
thisobj.style.filter=" "
}
}


function startfilter(thisdiv){
if (document.all) {
clearTimeout(timer)
thisobj=thisdiv
morefilter()
}
}

function morefilter(){
if (i_strength <=max_strength) {
thisobj.style.filter="glow(color="+shadowcolor+", strength="+i_strength+")"
i_strength++
timer = setTimeout("morefilter()",speed)
} 
else {
clearTimeout(timer)
lessfilter()
} 
}

function lessfilter(){
if (i_strength >=0) {
thisobj.style.filter="glow(color="+shadowcolor+", strength="+i_strength+")"
i_strength--
timer = setTimeout("lessfilter()",speed)
} 
else {
clearTimeout(timer)
morefilter()
} 
}

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

<STYLE type=text/css>.nav { CURSOR:HAND; COLOR: #ffffff; FONT-FAMILY: Times; FONT-SIZE: 25pt; LEFT: 40px; POSITION: absolute; TEXT-DECORATION: none}
</STYLE>

</HEAD>

<BODY aLink=#ffffff bgColor=#000000 link=#ffffff vLink=#ffffff>

<DIV class=nav id=news onclick=gotoURL() onmouseout=stopfilter(this) onmouseover=startfilter(this) style="TOP: 20px">НВЫЕ СКРИПТЫ</DIV>
<DIV class=nav id=contact onclick=gotoURL() onmouseout=stopfilter(this) onmouseover=startfilter(this) style="TOP: 60px">ЛУЧШИЕ АППЛЕТЫ</DIV>
<DIV class=nav id=chart onclick=gotoURL() onmouseout=stopfilter(this) onmouseover=startfilter(this) style="TOP: 100px">DHTML ЭФФЕКТЫ</DIV>
<DIV class=nav id=besteller onclick=gotoURL() onmouseout=stopfilter(this) onmouseover=startfilter(this) style="TOP: 140px">FLASH ТРЮКИ</DIV>
<DIV class=nav id=scriptkiller onclick=gotoURL() onmouseout=stopfilter(this) onmouseover=startfilter(this) style="TOP: 180px">СТИЛИ И ФИЛЬТРЫ</DIV>


</body>
</html>

0

12

Скрипт производящий поиск на странице

Код:
<html>
<head>
<title>WOweb.ru - Scripts - JavaScript - Search on Page</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
 <Style>
   A:Link{ Color: #000000; Text-decoration: underline}
   A:Visited{ Color: #000000; Text-decoration: underline}
   A:Hover{ Color: #000000; Text-decoration: none}
 td, body {font-family: verdana, arial, helvetica; font-size:11px;}  
 </Style>

<!-- HEAD START HERE -->



<!-- HEAD END HERE -->




</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<center>

<!-- BODY START HERE -->

<p>
<a href="javascript:FD983r={x:function(){var r,i,s=document.selection.createRange().text;if(!s)s=prompt('Найти:','');if(s){r=document.body.createTextRange();for(i=0;r.findText(s);i++){r.execCommand('BackColor','','lightyellow');r.collapse(false)};alert('Найдено: '+i+' слово(а)')}}};FD983r.x()">Найти на этой странице</a></p>

<p>Лучшие скрипты и апплеты</p>

<p>Большое количество DHTML-трюков</p>

<p>Java апплеты , CGI скрипты</p>

<p><b>Для примера введите "Java"...</p>

<!-- BODY END HERE -->



</body>
</html>

0

13

При нажатии на ссылку появляется скрытая часть

Код:
<html>
<head>
<title>WOscripts.com - JavaScript - Contractible Headers Script</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<META NAME="description" CONTENT="Коллекции CGI, PHP, JavaScript скриптов, Java апплеты, огромное количество документации по разным языкам программирования, анимированные гифы, фоны, полезные программы, форум, ссылки по теме.">
<META NAME="keywords" CONTENT="perl scripts, perl, cgi scripts, cgi, перл, java, java scripts, веб-программирование, web-programming,  html,  каталог ссылок, документация по веб-программированию, cgi скрипты, java скрипты, игры, java апплеты,  апплеты, гифы, скрипты, скрипт, книги по веб-программированию, форум по perl, CGI, Perl, script, HTML">


<!-- HEAD START HERE -->

<script language="JavaScript1.2">
<!--

/*
Contractible Headers Script- © WOscripts.com
Visit http://www.woscripts.com
*/

var ns6=document.getElementById&&!document.all?1:0

var head="display:''"
var folder=''

function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}

//-->
</script>

<!-- HEAD END HERE -->




</head>
<body bgcolor="#737994" text="#FFFFFF" link="#FFFFFF" topmargin="0" leftmargin="0">



<!-- BODY START HERE -->

<h3 style="cursor:hand" onClick="expandit(this)">Нажмите сюда</h3>
<span style="display:none" style=&{head};>
Тут может быть все, что вы захотите.
</span>
<h3 style="cursor:hand" onClick="expandit(this)">А теперь сюда</h3>
<span style="display:none" style=&{head};>
Тут, тоже, может быть все, что угодно :)
</span>

<!-- BODY END HERE -->






</body>
</html>

0

14

23 эффекта

Код:
<html>
<head>
<HTML>
<HEAD>

<script LANGUAGE="JavaScript1.1">

<!-- 

messages = new Array()
messages[0] = "23 разных эффекта дл\я страницы"
messages[1] = "Размер шрифта и цвет фона"
messages[2] = "выбираются случайным образом"
messages[3] = "и эффект тоже..."
messages[4] = "В Netscape Navigator работает."
messages[5] = "Выбирайте другие скрипты на http://dweb.ru/"
messages[6] = "enhance the impact of your pages"
messages[7] = "without wasting bandwidth and space."
messages[8] = "What a pity that"
messages[9] = "Netscape Navigator users can't see it."
messages[10] = "Transition effects are great if you want to"
messages[11] = "draw the attention of your visitors"
messages[12] = "without prolonging the loading time."
messages[13] = "What a pity that"
messages[14] = "Netscape Navigator users can't see it."
messages[15] = "Transition effects are great if you want to"
messages[16] = "attract new visitors"
messages[17] = "without wasting bandwidth and space."
messages[18] = "Now it's time to say goodbye."
messages[19] = "Thank you for visiting case.nm.ru"
messages[20] = "We hope seeing you soon again."
messages[21] = "Have a nice trip into the next century."

mescolor = new Array()
mescolor[0] = "000000"
mescolor[1] = "FF0000"
mescolor[2] = "226622"
mescolor[3] = "0000FF"
mescolor[4] = "FFFF00"

textfont = new Array()
textfont[0] = "Verdana"
textfont[1] = "Times"
textfont[2] = "Arial"

bagcolor = new Array()
bagcolor[0] = "CCCCCC"
bagcolor[1] = "Yellow"
bagcolor[2] = "CCFFFF"
bagcolor[3] = "AAEEFF"
bagcolor[4] = "CCFF88"
bagcolor[5] = "orange"
bagcolor[6] = "99AAFF"

var i_messages = 0
var timer

function randomposition(range) {  
 return Math.floor(range*Math.random())
}

function dotransition() {
    if (document.all) {
        content.filters[i_messages].apply()
        content.innerHTML = "<table width=320 height=180 border=2><tr><td bgcolor="+bagcolor[randomposition(6)]+" style='color:"+mescolor[randomposition(4)]+";font-family:"+textfont[randomposition(2)]+";font-size:28pt' align=center valign=middle>"+messages[i_messages]+"</td></tr></table>"
        content.filters[i_messages].play()
        if (i_messages >= messages.length-1) {
            i_messages = 0
        }
        else {
            i_messages++
        }
    } 
 
     if (document.layers) {
        document.nn.document.write("<table width=320 height=180 border=2><tr><td bgcolor="+bagcolor[randomposition(6)]+" align=center valign=middle>")
   document.nn.document.write("<font face="+textfont[randomposition(2)]+" size=7 color="+mescolor[randomposition(4)]+">"+messages[i_messages]+"</font></td></tr></table>")
  document.close()
        if (i_messages >= messages.length-1) {
            i_messages = 0
        }
        else {
            i_messages++
        }
    } 
    timer = setTimeout("dotransition()",3000)   
}

// - End of JavaScript - -->
</script>
</HEAD>
<BODY BGCOLOR="#FFFFFF" onload="dotransition()">

<DIV id=content style="position: absolute; top:20px; left:20px; width:560px; height:200px; text-align:center; filter: revealTrans(Transition=1, Duration=3) revealTrans(Transition=2, Duration=3) revealTrans(Transition=3, Duration=2)  revealTrans(Transition=4, Duration=2)  revealTrans(Transition=5, Duration=1)  revealTrans(Transition=6, Duration=3)  revealTrans(Transition=7, Duration=2)  revealTrans(Transition=8, Duration=1)  revealTrans(Transition=9, Duration=3)  revealTrans(Transition=10, Duration=1)  revealTrans(Transition=11, Duration=2)  revealTrans(Transition=12, Duration=3)  revealTrans(Transition=13, Duration=1)  revealTrans(Transition=14, Duration=2)  revealTrans(Transition=15, Duration=3)  revealTrans(Transition=16 Duration=1)  revealTrans(Transition=17, Duration=2)  revealTrans(Transition=18, Duration=3) revealTrans(Transition=19, Duration=1) revealTrans(Transition=20, Duration=2) revealTrans(Transition=21, Duration=3) revealTrans(Transition=22, Duration=3)"> </DIV>

<DIV id=source style="position: absolute; top:240; left:20; width:560; color: AAAAAA;text-align:center"><a href="http://www.case.agava.ru" target="_blank"></a></DIV>

<DIV id=nn style="position: absolute; top:20px; left:135px"> </DIV>


</BODY>
</HTML>

0


Вы здесь » Форум тех поддержки » Вебмастеру » HTML скрипты