p8baller07 Posted June 21, 2004 Posted June 21, 2004 Well a customer asked me to make this script, so here it is... i thought id post it incase anyone ever needed it. it fades links... pop it in the head tag of your page and try it. demohere If you change autofade to false you need to add class="fade" in every href tag... and dont put anything inside href tag besides the name... Example of what not to do <a href="url.html"><b>test</b></a> ok here is the code guys <script language="Javascript">// This was made by aimen shawki please leave this in here...thanks// --------this is the stuff you can change-----------------//=======================================================================startColor = "#ffffff"; // MouseOut link color -right now its whiteendColor = "#000000"; // MouseOver link color -right now its blackstepIn = 17; // delay when fading instepOut = 25; // delay when fading outautoFade = true; sloppyClass = false;//======================================================================== hexa = new makearray(16);for(var i = 0; i < 10; i++)hexa[i] = i;hexa[10]="a"; hexa[11]="b"; hexa[12]="c";hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; var version = parseInt(navigator.appVersion)var appName = navigator.appNamevar ns4 = version>=4 && appName=="Netscape" if (ns4) { //Netscape 4+ document.onmouseover = doN4mouseover; document.onmouseout = doN4mouseout;} else { //other document.onmouseover= domouseover; document.onmouseout= domouseout;} startColor = dehexize(startColor.toLowerCase());endColor = dehexize(endColor.toLowerCase());var fadeId = new Array(); function dehexize(Color){ var colorArr = new makearray(3); for (i=1; i<7; i++){ Quote Share this post Link to post Share on other sites More sharing options...
RealGoatCheeze Posted June 21, 2004 Posted June 21, 2004 Thanks! You made that? Quote Share this post Link to post Share on other sites More sharing options...
p8baller07 Posted June 21, 2004 Posted June 21, 2004 Thanks! You made that? Yeah... here is a demo on my site.. if you wanna see it first... I've bin working on it for a couple days now. I took some code from here and there but its all me DEMO HERE Quote Share this post Link to post Share on other sites More sharing options...
RealGoatCheeze Posted June 21, 2004 Posted June 21, 2004 ohh well weird.. it looks identical to the Fade Script by Anarchos: http://www.phpbb.com/phpBB/viewtopic.php?t...tart=40#1021178 even down to the comments made. Quote Share this post Link to post Share on other sites More sharing options...
p8baller07 Posted June 21, 2004 Posted June 21, 2004 ohh well weird.. it looks identical to the Fade Script by Anarchos: http://www.phpbb.com/phpBB/viewtopic.php?t...tart=40#1021178 even down to the comments made. pffft yeah-well.... like i said i took some variables from other code i found to help me out cuz i had problems with "if the fade is already there" part Quote Share this post Link to post Share on other sites More sharing options...
Bosco Posted June 21, 2004 Posted June 21, 2004 I still think it's a good script I'll have to keep it in mind, might come in handy. Quote Share this post Link to post Share on other sites More sharing options...
p8baller07 Posted June 21, 2004 Posted June 21, 2004 I still think it's a good script I'll have to keep it in mind, might come in handy. thanks linux ... btw i wanted to know who does the web work here? i always wanted to talk to him/her, they must have talent, to make certain things work (folding icon for folders and code for case gallery. Quote Share this post Link to post Share on other sites More sharing options...
Bosco Posted June 21, 2004 Posted June 21, 2004 thanks linux ... btw i wanted to know who does the web work here? i always wanted to talk to him/her, they must have talent, to make certain things work (folding icon for folders and code for case gallery. I do it all Quote Share this post Link to post Share on other sites More sharing options...
Nerm Posted June 22, 2004 Posted June 22, 2004 that's a nice script I like it. well organized and wrote well. Quote Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.