Up and Down Text

Click to view
Click to view

Put this code into your page:

<html>
<head>

<style>
.text
{
FONT: 10pt arial;
COLOR: black
}
</style>

<script>

var fs=1
var direction="right"

function updowntext(whichone)
{
var thetext=whichone
for (i=0;i<thetext.length;i++)
{
document.write(thetext.charAt(i).fontsize(fs))

if (fs<7&&direction=="right")
fs++
else if (fs==7){
direction="left"
fs--
}
else if (fs==1){
direction="right"
fs++
}
else if (fs>1&&direction=="left")
fs--
}
}

</script>
</HEAD>

<BODY BGCOLOR="#FFFFFF">

<br><br><br>
<center>
<TABLE width="320" border="0" cellpadding="0" cellspacing="0" bgcolor=#F5F4E0>
<tr>
<td colspan=3><img src=images/spacer.gif height=10></td>
</tr>
<tr>
<td><img src=images/spacer.gif width=10></td>
<td width=300 height=30 bgcolor=white align=center>
<span class=text><script>
updowntext("Sample Code Six, Up And Down Text From WebDesignHelper.co.uk")
</script></span></td>
<td><img src=images/spacer.gif width=10></td>
</tr>
<tr>
<td colspan=3><img src=images/spacer.gif height=10></td>
</tr>
</table>
</center>

</body>
</html>


Related Articles

  • The First Taste of Anchor Text
    All search engines of quality give significant weight to the anchor text on any web page. Here you will discover what this means.
  • Anchor Text Optimisation Guide
    What if I were to tell you that one of the most important principles of search engine optimisation is so simple you that you will kick yourself for not realising it before?
  • Your Web Page Check List
    The appearance of your web site text can actuallyincrease or decrease your sales. The size, font, styleand color of your text can easily affect your readersbuying decision. Below are ten points to considerwhen typing text on your web site...
  • Top Two Google Ranking Factors
    In this article I reveal what I believe are the two most important ranking factors used by Google. My findings are as a result of my ongoing optimization e...
  • Web Site Design Mistakes
    Some wise human once said Learn from the mistakes of others. There isnt nearly enough time to make them all yourself. Hence this article. Here are five of the most annoying and common web design mistakes...
  • Writing Effective ALT Text For Images
    Anyone who knows anything about web accessibility knows that images need alternative, or ALT, text assigned to them. This is because screen readers cant understand images, but rather read aloud the alternative text assigned to them...
  • How To Triple Your Banner Click-Through-Rates
    Have you noticed that your banner ads rarely get clicked on? Banner ads used to be a very effective method of advertising, but the web has become bloated with banner after banner. As a result theyre largely ignored today. But did you know there is a simple and effective way to get people to ....
  • PopUp Window
    This code allows your links to pop-up in a new window. Just copy the code below: .
  • Color Theory 101
    You may never think about color when you design. You may just think what looks good is what is good. Well think again, because it goes much deeper than that. This week I want to begin talking about color theory. Before I do, I want to stress that some of this is hard and true Color Theory as
  • Javascript Windows
    In this tutorial youll learn how to use Javascript windows. Asking a name with a Promptbox, asking a question with Confirmboxes en ginving an alert with an Alertbox.

Contact Web Design Outsource and get started today

Need Website Designing, Development, Redesigning, Maintenance and SEO services or help growing your company's web presence? Request a free Quote Now.