如何落伍 | 落伍帐号规则 | 站长俱乐部 | 落伍代码下载 | 落伍预告页 | 现金任务 | 人才招聘 | 落伍DIY | 站长工具
精品VPS 999/年 - 紫田网络千次搜索税后周付11元,比百度赚钱!为你留住流量的电影CMS系统 强氧清仓(新志强SAS)! 硬件普及专家
外链交易,买链接,卖链接,阿里微微美国1G空间99元/年免备案-海腾数据九九数据 酷睿E5200 100M独享1299¥超稳定VPS 325元/季度 代理5折
广告联盟+七年品牌=挚盟 wauee.com做高收益游戏弹窗CPM! 找: 六度联盟!1G美国空间20元, 特价服务器299元3A网络 1G 99元,海外(KT)主机88元起
广东浙江电信SAS百独1400/月网通9折服务器租用 398元/月 海外.国内合租50元做优化-买外链-首选 新传播十强ISP服务商,美国空间,主机稳定之选
搜狗官方新产品寻合作, 收入翻番英拓网络四核至强5506*2仅需269元吉卜力导航 出售PR6789友情链接8U提供1G+不限流量,国内外免费空间
返回列表 发帖

[代码发布] 落伍者论坛特效代码收集……_ by 野汉子 〔更新无止境〕

标题拦特效

  1. <SCRIPT>

  2. //change title text to your own
  3.     var titletext="Welcome to Dynamic Drive"
  4.     var thetext=""
  5.     var started=false
  6.     var step=0
  7.     var times=1

  8.     function welcometext()
  9.     {
  10.       times--
  11.       if (times==0)
  12.       {
  13.         if (started==false)
  14.         {
  15.           started = true;
  16.           document.title = titletext;
  17.           setTimeout("anim()",1);
  18.         }
  19.         thetext = titletext;
  20.       }
  21.     }

  22.     function showstatustext(txt)
  23.     {
  24.       thetext = txt;
  25.       setTimeout("welcometext()",4000)
  26.       times++
  27.     }

  28.     function anim()
  29.     {
  30.       step++
  31.       if (step==7) {step=1}
  32.       if (step==1) {document.title='>==='+thetext+'===<'}
  33.       if (step==2) {document.title='=>=='+thetext+'==<='}
  34.       if (step==3) {document.title='>=>='+thetext+'=<=<'}
  35.       if (step==4) {document.title='=>=>'+thetext+'<=<='}
  36.       if (step==5) {document.title='==>='+thetext+'=<=='}
  37.       if (step==6) {document.title='===>'+thetext+'<==='}
  38.       setTimeout("anim()",200);
  39.     }

  40. if (document.title)
  41. window.onload=onload=welcometext
  42. </SCRIPT>
复制代码
外观万物知天道 内视自我悟玄机

TOP

TOP

TOP

我靠,我不喜欢代码~

TOP

文字不同颜色闪烁

<span style=behavior:url(font.htc)>这里是要闪烁的字颜色可以很多</span>


font.htc 代码
  1. *************************************************
  2. <PUBLIC:COMPONENT URN="rainbow" name="darainbow()"/>
  3. <PUBLIC:ATTACH  EVENT = "oncontentready" ONEVENT ="beginIt()"/>
  4. <SCRIPT language="JAVASCRIPT">
  5. var Kill_ID=null;
  6. var internalValue;
  7. var originalValue;
  8. function putValue(){
  9.         element.innerHTML=internalValue;
  10.         encapsulate();
  11.         startSwirl();
  12. }
  13. function eventHandler(){
  14.         clearInterval(Kill_ID);
  15.         internalValue=element.value;
  16.         element.detachEvent("onpropertychange",eventHandler);
  17.         if(event.propertyName=="value"){
  18.                 element.innerHTML=internalValue;
  19.                 putValue();
  20.         } else startSwirl();
  21.         element.attachEvent("onpropertychange",eventHandler);
  22. }
  23. function swirl(){
  24.         var I;
  25.         I=ran(internalValue.length-1,0);
  26.         if(element.children(I) != null)element.children(I).style.color=randomColor();
  27. }
  28. function startSwirl(){
  29.         if (element.swirlInterval == null)
  30.                 element.swirlInterval=50;
  31.         if ((internalValue!=null) && (element.swirlInterval!=0))
  32.                 Kill_ID=setInterval(swirl,element.swirlInterval);
  33. }
  34. function encapsulate(){
  35.         var I;
  36.         var tempStr="";
  37.         for (I=0; I < internalValue.length; I++){
  38.                         tempStr += "<SPAN style=\"color:"+randomColor()+"\">" + internalValue.substr(I,1) + "</SPAN>";
  39.                 }
  40.         innerHTML=tempStr;
  41. }
  42. function ran(upperbound, lowerbound){
  43.         return(parseInt((upperbound - lowerbound + 1) * Math.random() + lowerbound));
  44. }
  45. function randomColor(){
  46.         var R=ran(255,0);
  47.         var G=ran(255,0);
  48.         var B=ran(255,0);
  49.         R=R.toString(16);
  50.         G=G.toString(16);
  51.         B=B.toString(16);
  52.         if (R.length==1)R="0"+R;
  53.         if (G.length==1)G="0"+G;
  54.         if (B.length==1)B="0"+B;
  55.         return("#"+R+G+B);
  56. }
  57. function beginIt(){
  58.         internalValue=element.value;
  59.         originalValue=element.innerHTML;
  60.         if (internalValue==null)
  61.                 internalValue=element.innerHTML;
  62.         putValue();
  63.         element.attachEvent("onpropertychange",eventHandler);
  64. }
  65. function clearIt(){
  66.         clearInterval(Kill_ID);
  67.         element.detachEvent("onpropertychange",eventHandler);
  68.         element.innerHTML=originalValue;
  69. }
  70. </script>
  71. ***************************************
复制代码
外观万物知天道 内视自我悟玄机

TOP

让连接不停的变色

<SCRIPT language=Javascript src="fade.js"></SCRIPT>
演示 http://www.wooshow.com/dw/demo/ln/1.htm

fade.js代码
  1. /*************

  2. **** <config>

  3. **/

  4. startColor = "#4D4D4D"; // 颜色可以该

  5. endColor = "#ffffff"; // MouseOver link color



  6. stepIn = 10; // delay when fading in

  7. stepOut = 20; // delay when fading out



  8. /*

  9. ** set to true or false; true will

  10. ** cause all links to fade automatically

  11. ***/

  12. autoFade = true;

  13. /*

  14. ** set to true or false; true will cause all CSS

  15. ** classes with "fade" in them to fade onmouseover

  16. ***/

  17. sloppyClass = true;

  18. /**

  19. **** </config>

  20. **************/

  21. /*************

  22. **** <install>

  23. **

  24. **

  25. **** </install>

  26. **************/



  27. hexa = new makearray(16);

  28. for(var i = 0; i < 10; i++)

  29. hexa[i] = i;

  30. hexa[10]="a"; hexa[11]="b"; hexa[12]="c";

  31. hexa[13]="d"; hexa[14]="e"; hexa[15]="f";



  32. document.onmouseover = domouseover;

  33. document.onmouseout = domouseout;



  34. startColor = dehexize(startColor.toLowerCase());

  35. endColor = dehexize(endColor.toLowerCase());



  36. var fadeId = new Array();

  37. var timerID = 0;

  38. var theElement,theTagName,theClassName,theUniqueID



  39. function dehexize(Color){

  40. var colorArr = new makearray(3);

  41. for (i=1; i<7; i++){

  42. for (j=0; j<16; j++){

  43. if (Color.charAt(i) == hexa[j]){

  44. if (i%2 !=0)

  45. colorArr[Math.floor((i-1)/2)]=eval(j)*16;

  46. else

  47. colorArr[Math.floor((i-1)/2)]+=eval(j);

  48. }

  49. }

  50. }

  51. return colorArr;

  52. }



  53. function domouseover() {

  54. if(document.all) {

  55. clearTimeout(timerID);

  56. theElement = event.srcElement;

  57. theTagName = theElement.tagName;

  58. theClassName = theElement.className;

  59. theUniqueID = theElement.uniqueID;

  60. if ((theTagName == "A" && autoFade) || theClassName == "fade" || (sloppyClass && theClassName.indexOf("fade") != -1)) {

  61. //alert(theElement);

  62. fade(startColor,endColor,theUniqueID,stepIn);

  63. timerID = setTimeout('pulsedown()',500);

  64. }

  65. }

  66. }



  67. function pulseup() {

  68. if(document.all) {

  69. clearTimeout(timerID);

  70. if ((theTagName == "A" && autoFade) || theClassName == "fade" || (sloppyClass && theClassName.indexOf("fade") != -1)) {

  71. //alert(theElement);

  72. fade(startColor,endColor,theUniqueID,stepIn);

  73. timerID = setTimeout('pulsedown(theElement)',500);

  74. }

  75. }

  76. }



  77. function pulsedown(theElement) {

  78. if (document.all) {

  79. clearTimeout(timerID);

  80. if ((theTagName == "A" && autoFade) || theClassName == "fade" || (sloppyClass && theClassName.indexOf("fade") != -1)) {

  81. //alert(theElement);

  82. fade(endColor,startColor,theUniqueID,stepOut);

  83. timerID = setTimeout('pulseup()',500);

  84. }

  85. }

  86. }





  87. function domouseout() {

  88. if (document.all) {

  89. clearTimeout(timerID);

  90. var srcElement = event.srcElement;

  91. if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1))

  92. fade(endColor,startColor,srcElement.uniqueID,stepOut);

  93. }

  94. }



  95. function makearray(n) {

  96. this.length = n;

  97. for(var i = 1; i <= n; i++)

  98. this[i] = 0;

  99. return this;

  100. }



  101. function hex(i) {

  102. if (i < 0)

  103. return "00";

  104. else if (i > 255)

  105. return "ff";

  106. else

  107. return "" + hexa[Math.floor(i/16)] + hexa[i%16];}



  108. function setColor(r, g, b, element) {

  109. var hr = hex(r); var hg = hex(g); var hb = hex(b);

  110. element.style.color = "#"+hr+hg+hb;

  111. }



  112. function fade(s,e, element,step){

  113. var sr = s[0]; var sg = s[1]; var sb = s[2];

  114. var er = e[0]; var eg = e[1]; var eb = e[2];



  115. if (fadeId[0] != null && fade[0] != element){

  116. setColor(sr,sg,sb,eval(fadeId[0]));

  117. var i = 1;

  118. while(i < fadeId.length){

  119. clearTimeout(fadeId[i]);

  120. i++;

  121. }

  122. }



  123. for(var i = 0; i <= step; i++) {

  124. fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" +

  125. step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+

  126. ")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step);

  127. }

  128. fadeId[0] = element;

  129. }
复制代码
外观万物知天道 内视自我悟玄机

TOP

要使背景图案不随文字“滚动”的CSS是这样的:

  1. 〈style type="text/css"〉
  2. 〈!--
  3. BODY { background: purple url(bg.jpg);
  4.     background-repeat:repeat-y;
  5.     background-attachment:fixed  
  6.     }
  7. --〉
  8. 〈/style〉
复制代码
外观万物知天道 内视自我悟玄机

TOP

应该都有个演示就好了

TOP

不错,收集了一些

TOP

珍藏

TOP

返回列表