Today is . Page created 01/05/03, updated 06/04/07

Letters Random Letter Spacing Menu Spacing

This menu is really an eye catching effect if it is not overdone. It can get to being annoying if it is used in excess. This is actually two (2) different effects in one script. It makes use of Cascading Style Sheets (CSS) on mouseover and java to randomly change spacing within the links that are set within the parameters of the script.

We have tested the code in IE 7.0, Firefox 2.0.0.4, Opera 9.21, Netscape 8.1.3 and AOL Explorer 1.5. This script worked well in all platforms with no variations observed.

Depending on your knowledge of HTML and javascripts, this is an easy two (2) part copy and paste code that goes in both the <HEAD> section (CSS and Javascript sections) and <BODY> section (wherever you want it to appear) of your document. The below two sections of code (located within the<HEAD> section) are where you will make your first reconfigurations. The CSS section is cosmetic for colors mouseover etc. The second part (javascript) is for the speed of the animation and the spacing between letters. See below where and howto reconfigure these sections.

<style type="text/css">
.menulinks {position:relative;}
#menucont a{color:#006699; font-weight:bold; text-decoration:none;}
#menucont a:hover{color:#ff0000; font-weight:bold; text-decoration:underline overline;
text-transform: uppercase;}
</style>


<SCRIPT LANGUAGE="JavaScript">
/**********************************************************
Script made by Martial Boissonneault © 2001 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
***********************************************************/
nSpace=5   // how many space maximum between each letter
nSpeed=100 // the speed of the animation
timerLSM=null;



Here is where you will configure the mouseover and color effects. This is the CSS section. Just experiment with this until it fits your site.










Here is where you will make your reconfigurations for the spacing and speed of the links.

For Your Information For your Information:     On these reconfigurations the higher the number for the nSpeed setting will be the slower the links animate. We have ours set at 400.
For the nSpace we have ours set at 3. The higher this number the more spaces between letters on animation.

The last part of this script is pasted into the <BODY> section of your document wherever you want this effect to appear. This is where you reconfigure your links, targets and the path they will follow. Since this section is slightly more configurable, we will first show you the "default" and then the reconfigurations.

<!------ Default <BODY> Section ------>

<div id="menucont">
  <!-- Put all links between <center> </center> to get those links align center for older browser -->
  <a href="#" id="a1" class="menulinks" title="what's new">what's new</a><br>
  <a href="#" id="a2" class="menulinks" title="about this site">about this site</a><br>
  <a href="#" id="a3" class="menulinks" title="dhtml scripts">dhtml scripts</a><br>

<!------ Reconfigured <BODY> Section ------>

<div id="menucont">
  <!-- Put all links between <center> </center> to get those links align center for older browser -->
  <a href="Link URL Here"target="_blank" id="a1" class="menulinks" title="Alt Tag Link Description">Link Name</a><br>
  <a href="Link URL Here" id="a2" class="menulinks" title="Alt Tag Link Description">Link Name</a><br>
  <a href="mailto:Your Email Address" id="a3" class="menulinks" title="Send Us Email">Contact Us</a><br>

Now that we have shown you where you need to reconfigure this script, we will now give you a little description of what the different sections do so that when you reconfigure, it will make more sense with the configurations.

On A Final Note     This script removes the lines under the links until mouseover only within the script parameters itself. If you have other text links on your page, you will see the lines under the links unless you use one of the below scripts to eliminate the lines.

This below script will remove the line completely from all links Outside the parameters of the script, and is pasted before the closing <BODY> tag in your document.

<!---------- Start Copy Here ----------->
<style>
<!--
a{text-decoration:none}
//-->
</style>
<!---------- End Copy Here ----------->

This below snipplet of code is pasted in the <HEAD> section of your document. Just change the ?????? to a six digit HEX code. With hhis in place it will show no line under a link until mouseover and then a line underneath the link will appear in the color you designate.

<!---------- Start Special No Line Script ---------->
<style>
a{text-decoration:none}
a:hover{text-decoration: underline; color:#??????;}
</style>
<!---------- End Special No Line Script ---------->

We hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
Get Code Here ]   [ Rate This Page ]   Digg It!

Talk Live To A Support Technician

Search Our Site By Individual letter

A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ G ]  [ H ]  [ I ]  [ J-K ]  [ L ] 
M ]  [ N-O ]  [ P-Q ]  [ R ]  [ S ]  [ T ]  [ U-V ]  [ W ]  [ X-Y-Z ] 

Little Tips Directory

Page 1  ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5  ] [ Page 6  ] [ Page 7  ]

Index Page 1 ] [ Index Page 2 ] [ Index Page 3 ] [ Index Page 4 ] [ Index Page 5 ]
Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ]
Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ] [ Form Index ]
2001 ] [ 2002 ] [ 2003 ] [ 2004 ] [ 2005 ] [ 2006 ] [ 2007 ]
Disclaimer ]

News Letter Archives ] [ Navigation Page ] [ Archives Of Published Material ]
Link To Us ] [ Alphabet Index ] [ Feedback ] [ On Line Support ] [ FAQ ]
Webmaster Utilities ] [ Casino ] [ Banner Exchange ] [  Advanced Site Search ]

If you are part of the ever growing number of webmasters who enjoy sharing your knowledge with others on web design, join The Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today

This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.

Copyright © Consigliere Ltd., All Rights Reserved. 2001-