WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Mobile Dev World

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : 'Ripple effect text' - This sequentially changes the case and color for a short set time period for each character in a text string. It provides a simple 'Ripple' text effect.
Categories : Java Script Update Picture
Mark Boyle
Date : Oct 22nd 2000
Grade : 5 of 5 (graded 2 times)
Viewed : 7189
File : webdev-rippleb.html
Images : No Images for this code example.
Search : More code by Mark Boyle
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

This is first of three different 'ripple text' effects coded in Javascript.
Sample 1 = Random change the display of characters in a text string
Sample 2 = Sequential change display of characters in a text string - colour and case
Sample 3 = Change display of characters in a text string - progressive colour change

This is sample 2: 'Ripple Text - colour and case change'

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function open () {return true;}
//-->
</SCRIPT>
<title>Ripple Text Examples by Mark Boyle email mboil@hotmail.com</title>
</head>

<BODY bgcolor=green text="white" bgcolor="green" link="yellow" vlink="yellow"
alink="red">
<font color="yellow">


<SCRIPT LANGUAGE="JavaScript">

var speed = 5; // enter duration time here
var fulltext;
var whichchar=0;

if(navigator.appName == "Netscape")
document.write('<layer id="wds"></layer><br>');
if (navigator.appVersion.indexOf("MSIE") != -1)
document.write('<span id="wds"></span><br>');


function livetext()
{
fulltext="Ripple Text with case and colour change effect."
whichchar = whichchar + 1
if (whichchar==fulltext.length+1)
whichchar=0;

// var whichchar=Math.round((Math.random()*fulltext.length))
switch(whichchar){
case 0:
fulltext = '<b><font face="courier" color="orange">' + fulltext.substring
(0,1).toUpperCase() + '</font><font face="courier" color="orange">' + fulltext.substring
(1,fulltext.length).toLowerCase() + '</font></B>';
break;
case fulltext.length:
fulltext = '<b><font face="courier" color="yellow">' + fulltext.substring
(0,fulltext.length).toUpperCase() + '</font></B>';
break;
default:
fulltext = '<b><font face="courier"><font color="orange">' +
fulltext.substring(0,whichchar).toLowerCase() + '</font><font color="tomato">' +
fulltext.substring(whichchar,whichchar+1).toUpperCase() + '</font><font
color="orange">' +
fulltext.substring(whichchar+1,fulltext.length).toLowerCase() + '</font></font></B>';
break;
}

if(navigator.appName == "Netscape") {
size = "<font point-size='25pt'>";
document.wds.document.write(size+'<center>' + fulltext + '</center></font>');
document.wds.document.close();
}
if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = '<p><center>' + fulltext + '</center>';
wds.style.fontSize='25px'
}

setTimeout("livetext()",speed);
}

livetext()

</script>

</font>

</BODY>
</html>




Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
Hilight Form Element onFocus
Categories : Java Script, Form Processing, CSS
write an event to the eventlog via JScript
Categories : Java Script, Windows 2000
Pull Down Surfing - Surf on Change
Categories : Java Script, MySQL, HTML and PHP, PHP, Databases
Upload any fixed type of files, control file type through javascript and encrypt filename using php so file not get overwrite
Categories : PHP, Java Script, Functions, PHP References, Form Processing
How to get the Focus (Cursor) into a Form-Element.
Categories : HTML, Java Script
Ajax - Perform a simple server side request and update the current HTML page.
Categories : AJAX, Java Script, Beginner Guides
JavaScript IP validation; IP validation script;
Categories : Java Script, Algorithms
How to check if JavaScript is enabled on a remote browser with PHP
Categories : PHP, Java Script
PHP and javascript mouseover, mouseout, and mousedown events
Categories : PHP, Java Script, Form Processing, Beginner Guides
Validator 98 - a PHP-script to generate form-validation-code in JavaScript.
Categories : Complete Programs, Java Script, PHP, HTML and PHP
Dynamic Loading of XML array data into ComboBox and Display XML data using PHP + DOM + Javascript.
Categories : PHP, Java Script, DOM XML, XML, Arrays
Adding a Filter to a Text Element
Categories : Java Script, Data Validation, Form Processing
Classic guest book made with PHP and Flash
Categories : PHP, Flash, Java Script