AccessGratuit
Bine ati venit! Very Happy

Daca ati ajuns la aceasta pagina inseamna ca nu sunteti INREGISTRAT sau CONECTAT pe forumul AccessGratuit. Puteti face asta utilizand butoanele din meniu destinare acestor actiuni!
AccessGratuit.com
www.accessgratuit.com
cheers

"Curcubeu" pe text

Vezi subiectul anterior Vezi subiectul urmator In jos

"Curcubeu" pe text

Mesaj Scris de paul la data de Lun Ian 25, 2010 1:33 am

"Curcubeu" pe text

PA / AFISARE / PAGINA DE START / Generalitati - Mesaj pe pagina de start - Continutul mesajului - Inregistrare

In momentul in care treci cu cursorul peste un text ( activ ), acesta isi schimba culoarea, trecind prin toata paleta de culori.

Cod:
Cod:
<script LANGUAGE="Javascript">
<!-- ;

var rate = 25;

if (document.getElementById)
window.onerror=new Function("return true")

var objActive;
var act = 0; 
var elmH = 0;
var elmS = 128;
var elmV = 255;
var clrOrg; 
var TimerID;

if (document.all) {
    document.onmouseover = doRainbowAnchor;
    document.onmouseout = stopRainbowAnchor;
}
else if (document.getElementById) {
    document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
    document.onmouseover = Mozilla_doRainbowAnchor;
    document.onmouseout = Mozilla_stopRainbowAnchor;
}
function doRainbow(obj)
{
    if (act == 0) {
        act = 1;
        if (obj)
            objActive = obj;
        else
            objActive = event.srcElement;
        clrOrg = objActive.style.color;
        TimerID = setInterval("ChangeColor()",100);
    }
}
function stopRainbow()
{
    if (act) {
        objActive.style.color = clrOrg;
        clearInterval(TimerID);
        act = 0;
    }
}
function doRainbowAnchor()
{
    if (act == 0) {
        var obj = event.srcElement;
        while (obj.tagName != 'A' && obj.tagName != 'BODY') {
            obj = obj.parentElement;
            if (obj.tagName == 'A' || obj.tagName == 'BODY')
                break;
        }

        if (obj.tagName == 'A' && obj.href != '') {
            objActive = obj;
            act = 1;
            clrOrg = objActive.style.color;
            TimerID = setInterval("ChangeColor()",100);
        }
    }
}
function stopRainbowAnchor()
{
    if (act) {
        if (objActive.tagName == 'A') {
            objActive.style.color = clrOrg;
            clearInterval(TimerID);
            act = 0;
        }
    }
}
function Mozilla_doRainbowAnchor(e)
{
    if (act == 0) {
        obj = e.target;
        while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
            obj = obj.parentNode;
            if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
                break;
        }

        if (obj.nodeName == 'A' && obj.href != '') {
            objActive = obj;
            act = 1;
            clrOrg = obj.style.color;
            TimerID = setInterval("ChangeColor()",100);
        }
    }
}
function Mozilla_stopRainbowAnchor(e)
{
    if (act) {
        if (objActive.nodeName == 'A') {
            objActive.style.color = clrOrg;
            clearInterval(TimerID);
            act = 0;
        }
    }
}
function ChangeColor()
{
    objActive.style.color = makeColor();
}
function makeColor()
{

    if (elmS == 0) {
        elmR = elmV;    elmG = elmV;    elmB = elmV;



    }
    else {
        t1 = elmV;
        t2 = (255 - elmS) * elmV / 255;
        t3 = elmH % 60;
        t3 = (t1 - t2) * t3 / 60;

        if (elmH < 60) {
            elmR = t1;  elmB = t2;  elmG = t2 + t3;
        }
        else if (elmH < 120) {
            elmG = t1;  elmB = t2;  elmR = t1 - t3;
        }
        else if (elmH < 180) {
            elmG = t1;  elmR = t2;  elmB = t2 + t3;
        }
        else if (elmH < 240) {
            elmB = t1;  elmR = t2;  elmG = t1 - t3;
        }
        else if (elmH < 300) {
            elmB = t1;  elmG = t2;  elmR = t2 + t3;
        }
        else if (elmH < 360) {
            elmR = t1;  elmG = t2;  elmB = t1 - t3;
        }
        else {
            elmR = 0;  elmG = 0;  elmB = 0;
        }
    }

    elmR = Math.floor(elmR).toString(16);
    elmG = Math.floor(elmG).toString(16);
    elmB = Math.floor(elmB).toString(16);
    if (elmR.length == 1)    elmR = "0" + elmR;
    if (elmG.length == 1)    elmG = "0" + elmG;
    if (elmB.length == 1)    elmB = "0" + elmB;

    elmH = elmH + rate;
    if (elmH >= 360)
        elmH = 0;

    return '#' + elmR + elmG + elmB;
}
// end hide -->
</script>

paul
Membru AccessGratuit

<b>Sex</b> Sex: masculin
<b>Numarul mesajelor</b> Numarul mesajelor: 41
<b>Credite</b> Credite: 86405
<b>Varsta</b> Varsta: 18

Sus In jos

Re: "Curcubeu" pe text

Mesaj Scris de Irukandji la data de Joi Feb 25, 2010 8:54 pm

Stiam acest cod de mai demult dar nu il mai gaseam mersi Very Happy

Irukandji
Membru AccessGratuit

<b>Sex</b> Sex: feminin
<b>Numarul mesajelor</b> Numarul mesajelor: 82
<b>Credite</b> Credite: 81608
<b>Varsta</b> Varsta: 15

http://animesign.forumotion.com

Sus In jos

Re: "Curcubeu" pe text

Mesaj Scris de AnDukiN la data de Sam Iul 31, 2010 7:02 am

Chiar nu il stiam , multumesc paul.

AnDukiN
Membru AccessGratuit

<b>Sex</b> Sex: masculin
<b>Numarul mesajelor</b> Numarul mesajelor: 64
<b>Credite</b> Credite: 81300
<b>Varsta</b> Varsta: 18

http://www.metin2andmore.forumcreativ.ro

Sus In jos

Re: "Curcubeu" pe text

Mesaj Scris de ShiNny[GFX];D la data de Mier Aug 11, 2010 7:31 pm

Multumesc , pierdusem codul de ceva vreme.

ShiNny[GFX];D
Membru AccessGratuit

<b>Sex</b> Sex: masculin
<b>Numarul mesajelor</b> Numarul mesajelor: 8
<b>Credite</b> Credite: 66300
<b>Varsta</b> Varsta: 23

http://webstars.darkbb.com

Sus In jos

Re: "Curcubeu" pe text

Mesaj Scris de Terasher la data de Mar Aug 24, 2010 9:58 pm

frumos

Terasher
Membru AccessGratuit

<b>Sex</b> Sex: masculin
<b>Numarul mesajelor</b> Numarul mesajelor: 30
<b>Credite</b> Credite: 68900
<b>Varsta</b> Varsta: 22

http://designgfx.forumest.ro/forum.htm

Sus In jos

Re: "Curcubeu" pe text

Mesaj Scris de Albey la data de Joi Mar 17, 2011 6:53 pm

pe phpbb3 merge?

Albey
Membru AccessGratuit

<b>Sex</b> Sex: masculin
<b>Numarul mesajelor</b> Numarul mesajelor: 101
<b>Credite</b> Credite: 77500
<b>Varsta</b> Varsta: 18

http://www.Zone-PGL.tk

Sus In jos

Vezi subiectul anterior Vezi subiectul urmator Sus

- Subiecte similare

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum