Rainbow highligher : Text Effects « Ajax Layer « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » Ajax Layer » Text Effects 
Rainbow highligher


<html>
<head>
<title>DynAPI Examples - Highlighter</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api');
dynapi.library.include('dynapi.functions.Color');
dynapi.library.include('dynapi.gui.Highlighter');
</script>
<script language="Javascript">
var x=0,y=50,c=0,lyr,clr,inc=1;
var d1=new Date();

for(var i=0;i<300;i++){
  y+=inc;
  if(y>200inc*=-1;
  x=50+c*1;
  c+=1;
  if (i<=100clr=dynapi.functions.fadeColor('#0000FF','#FF0000',i);
  else if (i>100 && i<=200clr=dynapi.functions.fadeColor('#FF0000','#00FF00',i-100);
  else clr=dynapi.functions.fadeColor('#00FF00','#FFFFFF',(i-200));
  lyr=new Highlighter(x,y,1,50,clr);
  dynapi.document.addChild(lyr);
}

dynapi.onLoad(init);

function init(){
  var d2=new Date();
  document.frm.txt.value = i+' layers in '+(d2-d1)+' milliseconds';
}

</script>
</head>
<body>
<form name="frm">Speed:
<input type="text" size="50" name="txt" value="loading...">
</form>
<script>
  dynapi.document.insertAllChildren();
</script>
</body>
</html>

           
       
dynapi.zip( 791 k)
Related examples in the same category
1. Highlight text dynamically
2. Text color fade in
3. Text BlindUp and BlindDown
4. Text: Slide Up and Slide Down
5. Text Effects: highlight
6. Text Effects: Puff
7. Text effects: Scale X only, Scale Y only, Scale X and Y
8. Text effects: outlook bar
9. Text effects: slide down, slide up
10. Text effects: scroll (slow-motion) down-below, scroll last-heading
11. Fade/Appear effect functional test
w___w__w___._j___a_v__a_2__s_.___c_o__m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.