|
v7 Nuorodos
|
| rapro |
parašyta 2010-07-21 23:56
|
Apšylantis

Reputacija:
0
Pranešimai: 73
Įstojo: 2010-06-17
|
kaip pasidaryti tokias nuorodas kaip http://feelsound.lt/ ? nu u?vedi ltai u?sidega ir u?gesta.. nu tikuosi supratot.. :D |
| |
|
|
| guriux |
parašyta 2010-07-22 06:57
|
Pradinukas

Reputacija:
0
Pranešimai: 33
Įstojo: 2009-06-11
|
ia nuo temos priklauso. |
| |
|
|
| rapro |
parašyta 2010-07-22 12:17
|
Apšylantis

Reputacija:
0
Pranešimai: 73
Įstojo: 2010-06-17
|
O niekaip padaryt neimanoma?
Paredaguojant tem
Redagavo rapro 2010-07-22 12:18 |
| |
|
|
| tabux |
parašyta 2010-07-22 14:47
|

S.Administratorius

Reputacija:
0
Pranešimai: 1009
Įstojo: 2008-10-16
|
manoma ir nesunkiai. |
| |
|
|
| rapro |
parašyta 2010-07-22 15:09
|
Apšylantis

Reputacija:
0
Pranešimai: 73
Įstojo: 2010-06-17
|
Gal gali pasakyt kaip? |
| |
|
|
| ire |
parašyta 2010-07-22 17:36
|

Savekas

Reputacija:
0
Pranešimai: 102
Įstojo: 2009-06-10
|
susikuri linkai.js terpi:
Code/*******************************************************************
* File : LinkFader.js JavaScript-FX.com
* Created : 2002/09/05
* Author : Roy Whittle (Roy@Whittle.com) www.Roy.Whittle.com
* Purpose : To create a more dynamic a:hover using fading
* History
* Date Version Description
* 2002-09-05 1.0 First version
***********************************************************************/
/*** Create some global variables ***/
if(!window.JSFX)JSFX=new Object();
var LinkFadeInStep=10;
var LinkFadeOutStep=10;
var LinkEndColor=\"99cc33\"
var LinkStartColor=\"ffffff\";
var LinkFadeRunning=false;
document.onmouseover = theOnOver;
document.onmouseout = theOnOut;
if(document.captureEvents)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
/***********************************************
*
* Function : getColor
*
* Parameters : start - the start color (in the form \"RRGGBB\" e.g. \"FF00AC\")
* end - the end color (in the form \"RRGGBB\" e.g. \"FF00AC\")
* percent - the percent (0-100) of the fade between start & end
*
* returns : color in the form \"#RRGGBB\" e.g. \"#FA13CE\"
*
* Description : This is a utility function. Given a start and end color and
* a percentage fade it returns a color in between the 2 colors
*
* Author : www.JavaScript-FX.com
*
*************************************************/
function hex2dec(hex){return(parseInt(hex,16));}
function dec2hex(dec){return (dec < 16 ? \"0\" : \"\") + dec.toString(16);}
function getColor(start, end, percent)
{
var r1=hex2dec(start.slice(0,2));
var g1=hex2dec(start.slice(2,4));
var b1=hex2dec(start.slice(4,6));
var r2=hex2dec(end.slice(0,2));
var g2=hex2dec(end.slice(2,4));
var b2=hex2dec(end.slice(4,6));
var pc=percent/100;
var r=Math.floor(r1+(pc*(r2-r1)) + .5);
var g=Math.floor(g1+(pc*(g2-g1)) + .5);
var b=Math.floor(b1+(pc*(b2-b1)) + .5);
return(\"#\" + dec2hex(r) + dec2hex(g) + dec2hex(b));
}
/************************************************/
JSFX.getCurrentElementColor = function(el)
{
var result = LinkStartColor;
if (el.currentStyle)
result = (el.currentStyle.color);
else if (document.defaultView)
result = (document.defaultView.getComputedStyle(el,'').getPropertyValue('color'));
else if(el.style.color) //Opera
result = el.style.color;
if(result.charAt(0) == \"#\") //color is of type #rrggbb
result = result.slice(1, 8);
else if(result.charAt(0) == \"r\") //color is of type rgb(r, g, b)
{
var v1 = result.slice(result.indexOf(\"(\")+1, result.indexOf(\")\") );
var v2 = v1.split(\",\");
result = (dec2hex(parseInt(v2[0])) + dec2hex(parseInt(v2[1])) + dec2hex(parseInt(v2[2])));
}
return result;
}
JSFX.findTagIE = function(el)
{
while (el && el.tagName != 'A')
el = el.parentElement;
return(el);
}
JSFX.findTagNS= function(el)
{
while (el && el.nodeName != 'A')
el = el.parentNode;
return(el);
}
function theOnOver(e)
{
var lnk;
if(window.event)
lnk=JSFX.findTagIE(event.srcElement);
else
lnk=JSFX.findTagNS(e.target);
if(lnk)
JSFX.linkFadeUp(lnk);
}
JSFX.linkFadeUp = function(lnk)
{
if(lnk.state == null)
{
lnk.state = \"OFF\";
lnk.index = 0;
lnk.startColor = JSFX.getCurrentElementColor(lnk);
lnk.endColor = LinkEndColor;
}
if(lnk.state == \"OFF\")
{
lnk.state = \"FADE_UP\";
JSFX.startLinkFader();
}
else if( lnk.state == \"FADE_UP_DOWN\"
|| lnk.state == \"FADE_DOWN\")
{
lnk.state = \"FADE_UP\";
}
}
function theOnOut(e)
{
var lnk;
if(window.event)
lnk=JSFX.findTagIE(event.srcElement);
else
lnk=JSFX.findTagNS(e.target);
if(lnk)
JSFX.linkFadeDown(lnk);
}
JSFX.linkFadeDown = function(lnk)
{
if(lnk.state==\"ON\")
{
lnk.state=\"FADE_DOWN\";
JSFX.startLinkFader();
}
else if(lnk.state == \"FADE_UP\")
{
lnk.state=\"FADE_UP_DOWN\";
}
}
JSFX.startLinkFader = function()
{
if(!LinkFadeRunning)
JSFX.LinkFadeAnimation();
}
/*******************************************************************
*
* Function : LinkFadeAnimation
*
* Description : This function is based on the Animate function
* of animate.js (animated rollovers).
* Each fade object has a state. This function
* modifies each object and changes its state.
*****************************************************************/
JSFX.LinkFadeAnimation = function()
{
LinkFadeRunning = false;
for(i=0 ; i
{
var lnk = document.links[i];
if(lnk.state)
{
if(lnk.state == \"FADE_UP\")
{
lnk.index+=LinkFadeInStep;
if(lnk.index > 100)
lnk.index = 100;
lnk.style.color=getColor(lnk.startColor, lnk.endColor, lnk.index);
if(lnk.index == 100)
lnk.state=\"ON\";
else
LinkFadeRunning = true;
}
else if(lnk.state == \"FADE_UP_DOWN\")
{
lnk.index+=LinkFadeOutStep;
if(lnk.index>100)
lnk.index = 100;
lnk.style.color=getColor(lnk.startColor, lnk.endColor, lnk.index);
if(lnk.index == 100)
lnk.state=\"FADE_DOWN\";
LinkFadeRunning = true;
}
else if(lnk.state == \"FADE_DOWN\")
{
lnk.index-=LinkFadeOutStep;
if(lnk.index<0)
lnk.index = 0;
lnk.style.color=getColor(lnk.startColor, lnk.endColor, lnk.index);
if(lnk.index == 0)
lnk.state=\"OFF\";
else
LinkFadeRunning = true;
}
}
}
/*** Check to see if we need to animate any more frames. ***/
if(LinkFadeRunning)
setTimeout(\"JSFX.LinkFadeAnimation()\", 40);
}
tada theme.php po theme seetings ra?ai:
Codeecho \"\";
pvz:
Code// theme settings
$body_text = \"#555555\";
$body_bg = \"#eae3d1\";
$theme_width = \"940\";
$theme_width_l = \"205\";
$theme_width_r = \"205\";
echo \"\";
All you need is love |
| |
|
|
| Gdrss |
parašyta 2010-07-22 17:40
|
Pradinukas

Reputacija:
0
Pranešimai: 27
Įstojo: 2010-02-18
|
ia tiesiog spalvos.
HTML kodas
Code>1
PHP kodas
Code
>1\";
?>
P.S. bi?ki ne taip supratau k norjai...
Redagavo Gdrss 2010-07-22 17:44 |
| |
|
|
| ire |
parašyta 2010-07-22 17:46
|

Savekas

Reputacija:
0
Pranešimai: 102
Įstojo: 2009-06-10
|
Gdrss pas mane .js kodas ir ten tikrai netiesiog spalvos :D
All you need is love |
| |
|
|
| Gdrss |
parašyta 2010-07-22 17:47
|
Pradinukas

Reputacija:
0
Pranešimai: 27
Įstojo: 2010-02-18
|
ire para?:
Gdrss pas mane .js kodas ir ten tikrai netiesiog spalvos :D
Turjau omenyj, kad pas mane tiesiog spalvos. |
| |
|
|
| ire |
parašyta 2010-07-22 17:49
|

Savekas

Reputacija:
0
Pranešimai: 102
Įstojo: 2009-06-10
|
:O atsipra?au :)
All you need is love |
| |
|
|
| rapro |
parašyta 2010-07-22 18:24
|
Apšylantis

Reputacija:
0
Pranešimai: 73
Įstojo: 2010-06-17
|
Tai kuris ia dabar geras? :D |
| |
|
|
| ire |
parašyta 2010-07-22 18:31
|

Savekas

Reputacija:
0
Pranešimai: 102
Įstojo: 2009-06-10
|
Mani?kis jei nori kad u?vedus pel spalva potruputi atsirastu ir nuvedus pele potruput i?nktu
All you need is love |
| |
|
|
| rapro |
parašyta 2010-07-22 18:32
|
Apšylantis

Reputacija:
0
Pranešimai: 73
Įstojo: 2010-06-17
|
aj radau.. :D ok dku labai :)
Dar klausimas, kaip spalv pakeist? kad kai u?sidega kita bt
Redagavo rapro 2010-07-22 18:52 |
| |
|
|
| ire |
parašyta 2010-07-22 19:06
|

Savekas

Reputacija:
0
Pranešimai: 102
Įstojo: 2009-06-10
|
linkai.js
Codevar LinkFadeInStep=10;
var LinkFadeOutStep=10;
var LinkEndColor=\"99cc33\"
var LinkStartColor=\"ffffff\";
var LinkFadeRunning=false;
var LinkEndColor="spalvos kodas"
u?tai +10 :P
All you need is love |
| |
|
|
| rapro |
parašyta 2010-07-22 19:49
|
Apšylantis

Reputacija:
0
Pranešimai: 73
Įstojo: 2010-06-17
|
Btinai :) |
| |
|
|
| Frait |
parašyta 2010-07-22 19:54
|

Apšylantis

Reputacija:
0
Pranešimai: 52
Įstojo: 2009-11-17
|
Dekui, labai praverte. |
| |
|
|
| mRokas |
parašyta 2010-07-22 20:04
|
Pradinukas

Reputacija:
0
Pranešimai: 27
Įstojo: 2010-03-20
|
Joa.Dekui as ir pasinaudojau :D |
| |
|
|
| ire |
parašyta 2010-07-22 20:10
|

Savekas

Reputacija:
0
Pranešimai: 102
Įstojo: 2009-06-10
|
nra u?k ;) tokiu dalikliu turiu nema?ai .js susirinks :)
All you need is love |
| |
|
|
| Frait |
parašyta 2010-07-23 09:22
|

Apšylantis

Reputacija:
0
Pranešimai: 52
Įstojo: 2009-11-17
|
ire gal galetum ir sumanim pasidalinti, buciau ziauriai dekingas. Jei ka i pm parasyk :) +10 respect |
| |
|