МАНАХОВ net
Добро Пожаловать
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 2
  • 1
  • 2
  • »
Форум » Группы, сообщества, клубы » Полезные советы » скрип
скрип
IvManДата: Четверг, 06.09.2012, 01:08 | Сообщение # 1
Генералиссимус
Группа: Администраторы
Сообщений: 2448
Репутация: 0
Статус: Offline
222 cry
 
IvManДата: Четверг, 06.09.2012, 01:08 | Сообщение # 2
Генералиссимус
Группа: Администраторы
Сообщений: 2448
Репутация: 0
Статус: Offline
Эфект с курсором
<IMG id=balloon
style="DISPLAY: none" src="http://img98.imageshack.us/img98/1503/pixel659ki.gif" border="0" width="13">
<SCRIPT language=javascript>
var images=balloon.src;//Put your image name here!!
var amount=7;//Number of images here. Do not alter for this script!!
var cnter=70;
var step;
var currStep = 0;
var Xpos = 0;
var Ypos = 0;
if (document.all)
{
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">')
document.write('<div id="c" style="position:relative">');
for (n=0; n < amount; n++)
document.write('<img src=" '+images+'" style="position:absolute;top:0px;left:0px">')
document.write('</div>')
document.write('</div>')

function MsieMouseFollow(){
Xpos = document.body.scrollLeft+event.x-5;
Ypos = document.body.scrollTop+event.y-5;
}
document.onmousemove = MsieMouseFollow;
}
else if (document.layers)
{
window.captureEvents(Event.MOUSEMOVE);
for (ns=0; ns < amount; ns++)
document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0><IMG SRC='"+images+"'></LAYER>");
function NsMouseFollow(evnt){
Xpos = evnt.pageX-5;
Ypos = evnt.pageY-5;
}
window.onMouseMove = NsMouseFollow;
}

function Swirl(){
if (currStep<0.0550)
step=0.001;
if (document.all)
{
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150);
ieDiv.all.c.all[i].style.left = Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150);
}
}
else if (document.layers)
{
for ( i = 0 ; i < ns ; i++ )
{
var temp="n"+i
document.layers[temp].top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150);
document.layers[temp].left =Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150);
}
}
currStep += step;
setTimeout("Swirl()", 10);
if (currStep>0.0540)
{
step+=0.002;
if (document.layers)
{
for ( i = 0 ; i < ns ; i++ )
{
var temp="n"+i
document.layers[temp].top =Ypos+cnter*Math.cos((currStep+i*4.5)/5)
document.layers[temp].left=Xpos+cnter*Math.sin((currStep+i*4.5)/5)
}
}
else if (document.all)
{
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.top=Ypos+cnter*Math.cos((currStep+i*4.5)/5)
ieDiv.all.c.all[i].style.left=Xpos+cnter*Math.sin((currStep+i*4.5)/5)
}
}
}
if (step > 0.5)
{
step=0.5;
cnter-=8;
}
if (document.layers)
_y=-window.innerWidth;
else if (document.all)
_y=-document.body.clientWidth;
if (cnter <= _y)
{
currStep=0;
step=0.001;
cnter=70;
}
}
Swirl();
// -->
</SCRIPT>
 
IvManДата: Четверг, 06.09.2012, 02:48 | Сообщение # 3
Генералиссимус
Группа: Администраторы
Сообщений: 2448
Репутация: 0
Статус: Offline
текст меняет цвет
<script language="JavaScript1.2">

message="Твой текст твой текст твой текст твой текст твой текст твой текст"
var neonbasecolor="000000"
var neontextcolor="ff33ff"
var flashspeed=115 //in milliseconds

///Don't change anything below this line/////

var n=0
if (document.all){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font>')

//cache reference to neonlight array
var tempref=document.all.neonlight
}
else
document.write(message)

function neon(){

//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
tempref[m].style.color=neonbasecolor
}

//cycle through and change individual letters to neon color
tempref[n].style.color=neontextcolor

if (n<tempref.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1000)
return
}
}

function beginneon(){
if (document.all)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
</script>
 
IvManДата: Четверг, 06.09.2012, 03:21 | Сообщение # 4
Генералиссимус
Группа: Администраторы
Сообщений: 2448
Репутация: 0
Статус: Offline
Эфект с курсором - http://foogymoon.sitecity.ru/phtml_1906191047.phtml
  • <!-- DEBUT DU SCRIPT -->
    <DIV id=dot0 style="HEIGHT: px; POSITION: absolute; VISIBILITY: hidden; WIDTH: px"><IMG border=0 src=""></DIV>
    <DIV id=dot1 style="HEIGHT: px; POSITION: absolute; WIDTH: px"><IMG border=0
    src="http://img81.imageshack.us/img81/8099/pix209oi5.gif"></DIV>
    <DIV id=dot2 style="HEIGHT: px; POSITION: absolute; WIDTH: px"><IMG border=0 src="http://img81.imageshack.us/img81/8099/pix209oi5.gif"></DIV>
    <DIV id=dot3 style="HEIGHT: px; POSITION: absolute; WIDTH: px"><IMG border=0 src="http://img81.imageshack.us/img81/8099/pix209oi5.gif"></DIV>
    <DIV id=dot4 style="HEIGHT: px; POSITION: absolute; WIDTH: px"><IMG border=0 src="http://img81.imageshack.us/img81/8099/pix209oi5.gif"></DIV>
    <DIV id=dot5 style="HEIGHT: px; POSITION: absolute; WIDTH: px"><IMG border=0 src="http://img81.imageshack.us/img81/8099/pix209oi5.gif"></DIV>
    <DIV id=dot6 style="HEIGHT: px; POSITION: absolute; WIDTH: px"><IMG border=0 src="http://img81.imageshack.us/img81/8099/pix209oi5.gif"></DIV>
    <SCRIPT language=JavaScript>
    /*
    Elastic Bullets
    Philip Winston
    <winston@cs.unc.edu>
    10/98

    Script editЁ¦ sur l'Ё¦diteur JavaScript
    http://www.editeurjavascript.com
    */
    var nDots = 7;
    var Xpos = 0;
    var Ypos = 0;
    var DELTAT = .01;
    var SEGLEN = 10;
    var SPRINGK = 10;
    var MASS = 0.8;
    var GRAVITY = 60;
    var RESISTANCE = 12;
    var STOPVEL = 0.1;
    var STOPACC = 0.1;
    var DOTSIZE = 10;
    var BOUNCE = 0.75;
    var isNetscape = navigator.appName=="Netscape";
    var followmouse = true;
    var dots = new Array();
    init();
    function init() {
    var i = 0;
    for (i = 0; i < nDots; i++) {
    dots[i] = new dot(i);
    }
    if (!isNetscape) {
    }
    for (i = 0; i < nDots; i++) {
    dots[i].obj.left = dots[i].X;
    dots[i].obj.top = dots[i].Y;
    }
    if (isNetscape) {
    startanimate();
    } else {
    setTimeout("startanimate()", 3000);
    }
    }
    function dot(i) {
    this.X = Xpos;
    this.Y = Ypos;
    this.dx = 0;
    this.dy = 0;
    if (isNetscape) {
    this.obj = eval("document.dot" + i);
    } else {
    this.obj = eval("dot" + i + ".style");
    }
    }
    function startanimate() {

    setInterval("animate()", 20);
    }
    function setInitPositions(dots) {
    var startloc = document.all.tags("LI");
    var i = 0;
    for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
    dots[i+1].X = startloc[i].offsetLeft
    startloc[i].offsetParent.offsetLeft - DOTSIZE;
    dots[i+1].Y = startloc[i].offsetTop +
    startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
    }
    dots[0].X = dots[1].X;
    dots[0].Y = dots[1].Y - SEGLEN;
    }
    function MoveHandler(e) {
    Xpos = e.pageX;
    Ypos = e.pageY;
    return true;
    }
    function MoveHandlerIE() {
    Xpos = window.event.x + document.body.scrollLeft;
    Ypos = window.event.y + document.body.scrollTop;
    }
    if (isNetscape) {
    document.captureEvents(Event.MOUSEMOVE);
    document.onMouseMove = MoveHandler;
    } else {
    document.onmousemove = MoveHandlerIE;
    }
    function vec(X, Y)
    {
    this.X = X;
    this.Y = Y;
    }
    function springForce(i, j, spring)
    {
    var dx = (dots[i].X - dots[j].X);
    var dy = (dots[i].Y - dots[j].Y);
    var len = Math.sqrt(dx*dx + dy*dy);
    if (len > SEGLEN) {
    var springF = SPRINGK * (len - SEGLEN);
    spring.X += (dx / len) * springF;
    spring.Y += (dy / len) * springF;
    }
    }
    function animate() {
    var start = 0;
    if (followmouse) {
    dots[0].X = Xpos;
    dots[0].Y = Ypos;
    start = 1;
    }
    for (i = start ; i < nDots; i++ ) {
    var spring = new vec(0, 0);
    if (i > 0) {
    springForce(i-1, i, spring);
    }
    if (i < (nDots - 1)) {
    springForce(i+1, i, spring);
    }
    var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE);
    var accel = new vec((spring.X + resist.X)/ MASS, (spring.Y + resist.Y)/ MASS + GRAVITY);
    dots[i].dx += (DELTAT * accel.X);
    dots[i].dy += (DELTAT * accel.Y);
    if (Math.abs(dots[i].dx) < STOPVEL &&
    Math.abs(dots[i].dy) < STOPVEL &&
    Math.abs(accel.X) < STOPACC &&
    Math.abs(accel.Y) < STOPACC) {
    dots[i].dx = 0;
    dots[i].dy = 0;
    }
    dots[i].X += dots[i].dx;
    dots[i].Y += dots[i].dy;
    var height, width;
    if (isNetscape)
    {
    height = window.innerHeight + document.scrollTop;
    width = window.innerWidth + document.scrollLeft;
    } else {
    height = document.body.clientHeight + document.body.scrollTop;
    width = document.body.clientWidth + document.body.scrollLeft;
    }
    if (dots[i].Y >= height - DOTSIZE - 1) {
    if (dots[i].dy > 0) {
    dots[i].dy = BOUNCE * -dots[i].dy;
    }
    dots[i].Y = height - DOTSIZE - 1;
    }
    if (dots[i].X >= width - DOTSIZE) {
    if (dots[i].dx > 0) {
    dots[i].dx = BOUNCE * -dots[i].dx;
    }
    dots[i].X = width - DOTSIZE - 1;
    }
    if (dots[i].X < 0) {
    if (dots[i].dx < 0) {
    dots[i].dx = BOUNCE * -dots[i].dx;
    }
    dots[i].X = 0;
    }
    dots[i].obj.left = dots[i].X;
    dots[i].obj.top = dots[i].Y;
    }
    }
    </script>

    <!-- FIN DU SCRIPT -->
  •  
    IvManДата: Четверг, 06.09.2012, 03:31 | Сообщение # 5
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    За курсором движется картинка- http://fantasyflash.ru/index.php?&kontent=script

  • <IMG id=Ols
    style="POSITION: absolute; Middle: 9000px" src="http://img170.imageshack.us/img170/4103/f9b7969982b349b54a9ac27a8ee09b.gif">
    <SCRIPT><!--
    ddx=0;ddy=0;PX=600;PY=0;xm=0;ym=0
    OlsW=Ols.width/2;OlsH=Ols.height/2
    function MoveWinnie(){
    x=Math.round(PX+=((xm-PX)*3)/400)
    y=Math.round(PY+=((ym-PY)*3)/400)
    Ols.style.left=x-OlsW
    Ols.style.top=y //osw
    setTimeout("MoveWinnie()",10)
    }
    function doMouse(){
    xm=window.event.x
    ym=window.event.y //fantasyflash.ru
    }
    document.onmousemove=doMouse
    MoveWinnie()
    //--></SCRIPT>
  •  
    IvManДата: Четверг, 06.09.2012, 03:42 | Сообщение # 6
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    эфект с курсором
  • <SCRIPT language=JavaScript>
    <!--
    Image0 = new Image();
    Image0.src = "http://fantasyflash.ru/anime/love/image/love36.gif";
    Amount = 10;
    Ymouse = -50;
    Xmouse = -50;
    Ypos = new Array();
    Xpos = new Array();
    Speed = new Array();
    rate = new Array();
    grow = new Array();
    Step = new Array();
    Cstep = new Array();
    nsSize = new Array();
    ns = (document.layers)?1:0;
    (document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
    function Mouse(evnt) {
    Ymouse=(document.layers)?evnt.pageY-20:event.y-20;
    Xmouse=(document.layers)?evnt.pageX:event.x;
    }
    (document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
    for (i = 0; i < Amount; i++) {
    Ypos[i] = Ymouse;
    Xpos[i] = Xmouse;
    Speed[i] = Math.random()*4+1;
    Cstep[i] = 0;//osw
    Step[i] = Math.random()*0.1+0.05;
    grow[i] = 5;
    nsSize[i] = Math.random()*15+5;
    rate[i] = Math.random()*0.5+0.1;
    }
    if (ns) {
    for (i = 0; i < Amount; i++) {
    document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize[i]+" height="+nsSize[i]+"></LAYER>");
    }
    }
    else {
    document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < Amount; i++) {
    document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=80)">');
    }
    document.write('</div></div>');
    }
    function Fly() {
    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(270 * Math.PI / 180);
    sx = Speed[i] * Math.cos(Cstep[i] * 4);
    Ypos[i] += sy;
    Xpos[i] += sx;
    if (Ypos[i] < -40) {
    Ypos[i] = Ymouse;
    Xpos[i] = Xmouse;
    Speed[i] = Math.random() * 6 + 4;
    grow[i] = 5;//osw
    nsSize[i] = Math.random() * 15 + 5;
    }
    if (ns) {
    document.layers['sn'+i].left = Xpos[i] + wscrll;
    document.layers['sn'+i].top = Ypos[i] + hscrll;
    }
    else {
    si[i].style.pixelLeft = Xpos[i] + wscrll;
    si[i].style.pixelTop = Ypos[i] + hscrll;
    si[i].style.width = grow[i];
    si[i].style.height = grow[i];
    }
    grow[i] += rate[i];
    Cstep[i] += Step[i];
    if (grow[i] > 15) grow[i] = 15;
    }
    setTimeout('Fly()', 10);
    }
    Fly();
    -->
    </SCRIPT>
  •  
    IvManДата: Четверг, 06.09.2012, 03:51 | Сообщение # 7
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Текст за курсором
  • <SCRIPT language=JavaScript>
    <!-- Begin fantasyflash.ru
    if (document.all) {
    yourLogo = " **Welcome to my site* ";
    logoFont = "Comic Sans MS";
    logoColor = "fuchsia" ;
    yourLogo = yourLogo.split('');
    L = yourLogo.length;
    TrigSplit = 360 / L;
    Sz = new Array()
    logoWidth = 150;
    logoHeight = -40;
    ypos = 0;
    xpos = 0;
    step = 0.03;
    currStep = 10;
    document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < L; i++) {
    document.write('<div id="ie" style="position:absolute;top:0px;left:0px;'
    +'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;'
    +'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');<!--fantasyflash.ru-->
    }
    document.write('</div></div>');
    function Mouse() {
    ypos = event.y;
    xpos = event.x - 5;
    }
    document.onmousemove=Mouse;
    function animateLogo() {
    outer.style.pixelTop = document.body.scrollTop;
    for (i = 0; i < L; i++) {
    ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180);//osw
    ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
    Sz[i] = ie[i].style.pixelTop - ypos;
    if (Sz[i] < 5) Sz[i] = 5;
    ie[i].style.fontSize = Sz[i] / 1.7;
    }
    currStep -= step;
    setTimeout('animateLogo()', 20);
    }
    window.onload = animateLogo;
    }-->
    </SCRIPT>
  •  
    IvManДата: Четверг, 06.09.2012, 03:53 | Сообщение # 8
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Звездочки за курсором
  • <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>
  •  
    IvManДата: Четверг, 06.09.2012, 04:06 | Сообщение # 9
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Календарь с часами
  • <center>
    <TABLE cellSpacing=0 cellPadding=2 width=154 bgColor=#990033><TBODY>
    <TR>
    <TD vAlign=center align=middle width="100%">
    <DIV style="FILTER: shadow(color='#302229';strength=5); WIDTH: 100%"
    align=center>
    <SCRIPT language=JavaScript>
    monthnames = new Array("Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь");
    var linkcount=0;
    function addlink(month, day, href) {
    var entry = new Array(3);
    entry[0] = month;
    entry[1] = day;
    entry[2] = href;
    this[linkcount++] = entry;}

    Array.prototype.addlink = addlink;
    linkdays = new Array();
    monthdays = new Array(12);
    monthdays[0]=31;
    monthdays[1]=28;
    monthdays[2]=31;
    monthdays[3]=30;
    monthdays[4]=31;
    monthdays[5]=30;
    monthdays[6]=31;
    monthdays[7]=31;
    monthdays[8]=30;
    monthdays[9]=31;
    monthdays[10]=30;
    monthdays[11]=31;
    todayDate=new Date();
    thisday=todayDate.getDay();
    thismonth=todayDate.getMonth();
    thisdate=todayDate.getDate();
    thisyear=todayDate.getYear();

    thisyear = thisyear % 100;
    thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
    if (((thisyear % 4 == 0)
    && !(thisyear % 100 == 0))
    ||(thisyear % 400 == 0)) monthdays[1]++;
    startspaces=thisdate;
    while (startspaces > 7) startspaces-=7;
    startspaces = thisday - startspaces + 1;
    if (startspaces < 0) startspaces+=7;
    document.write("<FONT face='verdana'>");
    document.write("<table border=0 " );
    document.write("style='font-size : 11px; color : #FFFFFF; font-weight: bold;' cellpadding=1 cellspacing=2>");//osw
    document.write("<tr><td align=center colspan=7><center>"
    + monthnames[thismonth] + " " + thisyear
    + "</center></td></tr>");
    document.write("<tr>");
    document.write("<td align=center><font color=#FF0099>В</td>");
    document.write("<td align=center><font color=#FF0099>П</td>");
    document.write("<td align=center><font color=#FF0099>В</td>")
    document.write("<td align=center><font color=#FF0099>С</td>");
    document.write("<td align=center><font color=#FF0099>Ч</td>");
    document.write("<td align=center><font color=#FF0099>П</td>");
    document.write("<td align=center><font color=#FF0099>С</td>");
    document.write("</tr>");
    document.write("<tr>");
    <!--fantasyflash.ru-->
    for (s=0;s<startspaces;s++) {
    document.write("<td align=center>-</td>");
    }
    count=1;
    while (count <= monthdays[thismonth]) {
    for (b = startspaces;b<7;b++) {
    linktrue=false;
    document.write("<td align=center>");
    for (c=0;c<linkdays.length;c++) {
    if (linkdays[c] != null) {
    if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
    document.write("<a href=\"" + linkdays[c][2] + "\">");
    linktrue=true;
    }
    }
    }
    if (count==thisdate) {
    document.write("<span style='background-color: #3F081E;border: 1px solid #FF75AE'><font color='#FF75AE'>");
    }
    if (count <= monthdays[thismonth]) {
    document.write(count);
    }
    else {
    document.write(" ");
    }
    if (count==thisdate) {
    document.write("</font>");
    }
    if (linktrue)
    document.write("</a>");
    document.write("</td>");
    count++;
    }
    document.write("</tr>");
    document.write("<tr>");
    startspaces=0;
    }
    document.write("</table>");
    document.write("</FONT>");
    </SCRIPT>
    </DIV></TD></TR>
    <TR>
    <TD vAlign=center align=middle width="100%">
    <DIV align=center>
    <CENTER>
    <TABLE
    style="BORDER-RIGHT: #ff75ae 1px solid; BORDER-TOP: #ff75ae 1px solid; BORDER-LEFT: #ff75ae 1px solid; BORDER-BOTTOM: #ff75ae 1px solid"
    cellSpacing=0 cellPadding=0 bgColor=#3f081e border=0>
    <TBODY>
    <TR>
    <TD width="100%"><FONT face=Verdana size=1><STRONG>
    <SCRIPT>
    document.write("<FONT color='#FF75AE' face='verdana' style='font-size : 11px;'>");//osw
    var clockid=new Array()
    var clockidoutside=new Array()
    var i_clock=-1
    var thistime= new Date()
    var hours=thistime.getHours()
    var minutes=thistime.getMinutes()
    var seconds=thistime.getSeconds()
    if (eval(hours) <10) {hours="0"+hours}
    if (eval(minutes) < 10) {minutes="0"+minutes}
    if (seconds < 10) {seconds="0"+seconds}
    var thistime = hours+":"+minutes+":"+seconds

    function writeclock() {
    i_clock++
    if (document.all || document.getElementById || document.layers) {
    clockid[i_clock]="clock"+i_clock
    document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
    }
    }

    function clockon() {
    thistime= new Date()
    hours=thistime.getHours()
    minutes=thistime.getMinutes()
    seconds=thistime.getSeconds()
    if (eval(hours) <10) {hours="0"+hours}
    if (eval(minutes) < 10) {minutes="0"+minutes}
    if (seconds < 10) {seconds="0"+seconds}
    thistime = hours+":"+minutes+":"+seconds

    if (document.all) {
    for (i=0;i<=clockid.length-1;i++) {
    var thisclock=eval(clockid[i])
    thisclock.innerHTML=thistime
    }
    }

    if (document.getElementById) {
    for (i=0;i<=clockid.length-1;i++) {
    document.getElementById(clockid[i]).innerHTML=thistime
    }
    }
    var timer=setTimeout("clockon()",1000)
    }
    window.onload=clockon</SCRIPT><SCRIPT>writeclock()</SCRIPT></STRONG></FONT></TD></TR></TBODY></TBODY></TABLE></CENTER></DIV>
  •  
    IvManДата: Четверг, 06.09.2012, 04:10 | Сообщение # 10
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Текст с тенью
  • <!--fantasyflash.ru-->
    <SCRIPT LANGUAGE="JavaScript">
    function shodo()
    {
    if(document.getElementById && window.print)
    {
    var dir=Math.random();//osw
    if (dir<.25) {dir=315;color="#FFCCFF"}
    if (dir<.50) {dir=45;color="#CCCCFF"}
    if (dir<.75) {dir=135;color="#CCFFFF"}
    if (dir<1) {dir=225;color="#FFCCFF"}
    document.getElementById("tex").style.filter="shadow(color="+color+",direction="+dir+",enabled=1)";
    }
    }
    </SCRIPT>
    <DIV ID="tex" STYLE="HEIGHT=2"><center>Напишите здесь свой текст...<br>и наслаждайтесь эффектом :)<br></center></DIV>
    <SCRIPT LANGUAGE=JavaScript>
    setInterval("shodo()",500);
    </SCRIPT>
  •  
    IvManДата: Четверг, 06.09.2012, 04:14 | Сообщение # 11
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Очень симпатичный эффект с мерцающими искорками в тексте-
  • <center>
    <span id="olwte" style="width:100%">
    <font color="#FFFF33" size=6><b>Welcome!</b></font>
    </span><script>
    var from = 5;
    var to = 15;
    var delay = 60;
    var glowColor = "gold";
    var i = to;//osw
    var j = 0;
    olwtext();
    function utexw()
    {
    if (!document.all)
    return
    if (i < to)
    {
    olwte.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
    i++;
    theTimeout = setTimeout('utexw()',delay);
    return 0;
    }
    if (i = to)
    {
    theTimeout = setTimeout('olwtext()',delay);
    return 0;
    }
    }
    function olwtext()
    {
    if (!document.all)
    return
    if (i > from)
    {
    olwte.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
    i--;
    theTimeout = setTimeout('olwtext()',delay);
    return 0;
    }
    if (i = from)
    {
    theTimeout = setTimeout('utexw()',delay);
    return 0;
    }
    }
    </script></center>
  •  
    IvManДата: Четверг, 06.09.2012, 04:23 | Сообщение # 12
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    смена картинки-ссылки на другую при наведении мыши

  • <script language="JavaScript">
    if (document.images) {
    img1on = new Image();
    img1on.src ="http://fantasyflash.ru/avatar/ava_cat/image/cat15.jpg";
    img1off = new Image();
    img1off.src = "http://fantasyflash.ru/avatar/ava_cat/image/cat14.jpg";
    }
    function imgOn(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "on.src"); }}//osw
    function imgOff(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "off.src"); }}
    </script>
    <a href="http://fantasyflash.ru" onmouseover="imgOn('img1')"; onmouseout="imgOff('img1')" >
    <img src="http://fantasyflash.ru/avatar/ava_cat/image/cat15.jpg" border="0" name=img1></a>
    </center>
  •  
    IvManДата: Четверг, 06.09.2012, 04:26 | Сообщение # 13
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Картинки проявляются друг за другом. А если загрузить только одну картинку (pic[0]), то она проявится 1 раз только при загрузке странички.
  • <SCRIPT language=JavaScript1.2>
    pic= new Array()
    pic[0] = "<img src=http://fantasyflash.ru/avatar/ava_cat/image/cat31.jpg>"
    pic[1] = "<img src=http://fantasyflash.ru/avatar/ava_cat/image/cat25.jpg>"
    var i_pic= 0
    var timer
    function ols() {
    if (document.all) {
    contentt.filters[0].apply()
    contentt.innerHTML = pic[i_pic]
    contentt.filters[0].play()//osw
    if (i_pic>= pic.length-1) {
    i_pic= 0
    }
    else {
    i_pic++
    }
    }
    <!--fantasyflash.ru-->
    if (document.layers) {
    document.nn.document.write("<table border=0><tr><td align=center>"+pic[i_pic]+"</td></tr></table>")
    document.close()
    if (i_pic>= pic.length-1) {
    i_pic= 0
    }
    else {
    i_pic++
    }
    }
    timer = setTimeout("ols()",5020)
    }
    </SCRIPT>
    <DIV id=contentt
    style="FILTER: revealTrans(Transition=12, Duration=3); POSITION: absolute; LEFT: 350px;"></DIV>
  •  
    IvManДата: Четверг, 06.09.2012, 04:35 | Сообщение # 14
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    Приближающие эффекты°o°
  • <SCRIPT language=JavaScript>

    if (document.all){
    kg=new Image();
    kg.src="http://img20.imageshack.us/img20/1111/00d471640f14ca1c1abf3a31875dcb.gif" ;
    document.write('<span id="rings" style="position:absolute;top:0px;left:0px">'
    +'<img src="http://img20.imageshack.us/img20/1111/00d471640f14ca1c1abf3a31875dcb.gif" name="kg" style="position:relative"></span>');
    var TimeLinethree = 85;
    var TimeLineTwo = 0;
    var TimeLineOne = 0;
    var ThreeStep = 2.1;
    var TwoStep = 5.5;
    var OneStep = 2.5;
    var xp = 100;
    var yp = 100;
    function SmokeRing(){

    document.all.rings.document.images["kg"].style.filter='alpha(opacity='+TimeLinethree+')';
    document.all.rings.document.images["kg"].style.top=yp + (-TimeLineOne);
    document.all.rings.document.images["kg"].style.left=xp + (-TimeLineOne);
    document.all.rings.document.images["kg"].width=TimeLineTwo;
    document.all.rings.document.images["kg"].height=TimeLineTwo;

    TimeLinethree-=ThreeStep;
    TimeLineTwo+=TwoStep;
    TimeLineOne+=OneStep;
    setTimeout('SmokeRing()',10);
    if ((TimeLineTwo > 380) || (TimeLineOne > 380) || (TimeLinethree < 0))
    {TimeLineTwo=0;TimeLineOne=0;TimeLinethree=85;

    stop=window.document.body.clientHeight-280;
    sleft=window.document.body.clientWidth/2.5;//?
    yp=Math.round(Math.random()*stop);
    xp=Math.round(Math.random()*sleft);
    document.all.rings.style.top=yp+document.body.scrollTop;
    document.all.rings.style.left=xp+document.body.scrollLeft;
    }
    if ((yp < 80) || (xp < 80))
    {
    yp+=80;
    xp+=80;
    }
    }
    }
    if (document.all)SmokeRing();
    // -->
    </SCRIPT>
  •  
    IvManДата: Понедельник, 08.10.2012, 05:12 | Сообщение # 15
    Генералиссимус
    Группа: Администраторы
    Сообщений: 2448
    Репутация: 0
    Статус: Offline
    глазки за курсором --<script language="JavaScript">

    //Watching Eyes script- By Kurt (kurt.grigg@virgin.net)
    pic0=new Image();
    pic0.src="http://www.sababa.webhost.ru/image/eyexx.gif";
    pic1=new Image();
    pic1.src="http://www.sababa.webhost.ru/image/pupilsxx.gif";

    var n4=(document.layers);
    var n6=(document.getElementById&&!document.all);
    var ie=(document.all);
    var O=(navigator.appName.indexOf("Opera") != -1)?true:false;
    var _d=(n4||ie)?'document.':'document.getElementById("';
    var _a=(n4||n6)?'':'all.';
    var _r=(n6)?'")':'';
    var _s=(n4)?'':'.style';
    if (n4){
    document.write('<layer name="eyeball" top=0 left=0 width="69" height="34"><img src="http://www.sababa.webhost.ru/image/eyexx.gif" width="69" height="34"></layer>');
    document.write('<layer name="pupil1" top=0 left=0 width="13" height="13"><img src="http://www.sababa.webhost.ru/image/pupilsxx.gif" width="13" height="13"></layer>');
    document.write('<layer name="pupil2" top:0 left=0 width="13" height="13"><img src="http://www.sababa.webhost.ru/image/pupilsxx.gif" width="13" height="13"></layer>');
    }
    else{
    if (ie)
    document.write('<div id="ic" style="position:absolute;top:0;left:0"><div style="position:relative">');
    document.write('<div id="eyeball" style="position:absolute;top:100px;left:100px;width:69px;height:34px"><img src="http://www.sababa.webhost.ru/image/eyexx.gif" width="69" height="34"></div>');
    document.write('<div id="pupil1" style="position:absolute;top:0px;left:0px;width:12px;height:13px"><img src="http://www.sababa.webhost.ru/image/pupilsxx.gif" width="13" height="13"></div>');
    document.write('<div id="pupil2" style="position:absolute;top:0px;left:0px;width:12px;height:13px"><img src="http://www.sababa.webhost.ru/image/pupilsxx.gif" width="13" height="13"></div>');
    if (ie)
    document.write('</div></div>');
    }
    var ym=0;
    var xm=0;
    if (n4||n6){
    window.captureEvents(Event.MOUSEMOVE);
    function mouseNS(e){
    ym = e.pageY-window.pageYOffset;
    xm = e.pageX;
    }
    if (n4)window.onMouseMove=mouseNS;
    if (n6)document.onmousemove=mouseNS;
    }
    if (ie||O){
    function mouseIEO(){
    ym = (ie)?event.clientY:event.clientY-window.pageYOffset;
    xm = event.clientX;
    }
    document.onmousemove=mouseIEO;
    }
    var etemp=eval(_d+_a+"eyeball"+_r+_s);
    var p1temp=eval(_d+_a+"pupil1"+_r+_s);
    var p2temp=eval(_d+_a+"pupil2"+_r+_s);
    dy=0;
    dx=0;
    fy=0;
    fx=0;
    angle1=0;
    angle2=0;
    d1=0;
    d2=0;
    function makefollow(){
    sy=(!ie)?window.pageYOffset:0;
    wy=(ie)?document.body.clientHeight:window.innerHeight;
    wx=(ie)?document.body.clientWidth:window.innerWidth;
    //Keep eyes on screen. Netscape 6 plays up otherwise!
    var chy=Math.floor(fy-34);
    if (chy <= 0) chy = 0;
    if (chy >= wy-34) chy = wy-34;
    var chx=Math.floor(fx-34);
    if (chx <= 0) chx = 0;
    if (chx >= wx-69) chx = wx-69;
    etemp.top=chy+sy;
    etemp.left=chx;
    //eyeball1 centre.
    c1y=parseInt(etemp.top)+17;
    c1x=parseInt(etemp.left)+17;
    //eyeball2 centre.
    c2y=parseInt(etemp.top)+17;
    c2x=parseInt(etemp.left)+52;
    dy1 = ym+sy - c1y;
    dx1 = xm - c1x;
    d1 = Math.sqrt(dy1*dy1 + dx1*dx1);
    dy2 = ym+sy - c2y;
    dx2 = xm - c2x;
    d2 = Math.sqrt(dy2*dy2 + dx2*dx2);
    ay1 = ym+sy - c1y;
    ax1 = xm - c1x;
    angle1 = Math.atan2(ay1,ax1)*180/Math.PI;
    ay2 = ym+sy - c2y;
    ax2 = xm - c2x;
    angle2 = Math.atan2(ay2,ax2)*180/Math.PI;
    dv=1.7;
    p1temp.top=(d1 < 17)?(c1y-6+d1/dv*Math.sin(angle1*Math.PI/180)):(c1y-6+10*Math.sin(angle1*Math.PI/180));
    p1temp.left=(d1 < 17)?(c1x-6+d1/dv*Math.cos(angle1*Math.PI/180)):(c1x-6+10*Math.cos(angle1*Math.PI/180));
    p2temp.top=(d2 < 17)?(c2y-6+d2/dv*Math.sin(angle2*Math.PI/180)):(c2y-6+10*Math.sin(angle2*Math.PI/180));
    p2temp.left=(d2 < 17)?(c2x-6+d2/dv*Math.cos(angle2*Math.PI/180)):(c2x-6+10*Math.cos(angle2*Math.PI/180));
    }
    function move(){
    if (ie)ic.style.top=document.body.scrollTop;
    dy=fy+=(ym-fy)*0.12-2;
    dx=fx+=(xm-fx)*0.12;
    makefollow();
    setTimeout('move()',10);
    }
    window.onload=move;
    //-->
    </script>
     
    Форум » Группы, сообщества, клубы » Полезные советы » скрип
    • Страница 1 из 2
    • 1
    • 2
    • »
    Поиск:

    Copyright MyCorp © 2024 Создать бесплатный сайт с uCoz