INTRO


A website is the fastest, cost efficient and the most informative medium of the current era.Website is a strong marketing tool, which can help popularize a business or institutions. This site provides you useful notes related to web designing for starters and Web design Downloads...

Friday, May 10, 2013

JavaScript - Example

Create Cursor (with Text) on web page using JavaScript

<script language='JavaScript' type='text/JavaScript'>
function fifteenth(sixteenth){seventeenth =document.body.scrollLeft+event.clientX;eighteenth = document.body.scrollTop+event.clientY;nineteenth = event.clientX;twentieth = event.clientY;first2(seventeenth,eighteenth);}document.onmousemove = fifteenth;var second2 = '<font color="#676569" face="Monotype Corsiva"><b>JavaScript</b></font>';var third2 = 'position: absolute; visibility:visible; font-family:Arial; font-size:16px; width=150px; height=110px; top:-210px; left:-205px; z-index:1;';var fourth2 = 'top=-220 left=-180 width=140 height=115 visibility="show"';var fifth2 = 'Arial, Helvetica';var sixth2 = '14px'; var fifteenth3 = 5; var sixteenth3 = 65; var seventeenth3 = 44;var eighteenth3 = 55; var nineteenth3 = 28; var twentieth3 = 1; var first4; var second4;var twelfth4;var third4;var fourth4;var fifth4;var ninth4;var tenth4 = 0;
function first2(thirteenth4,fourteenth4){clearTimeout(first4);fifth4 = thirteenth4;ninth4 = fourteenth4;first4 = setTimeout('fifteenth4()',2);return true;}
function fifteenth4(){
if (tenth4>2 * 180) {tenth4 = 0}second4 = Math.sin(tenth4/180*3.1415);twelfth4 = Math.cos(tenth4/180*3.1415);third4 = (fifth4 - eighteenth3) + (sixteenth3 * second4);fourth4 = (ninth4 - nineteenth3) + (seventeenth3 * twelfth4);
if (document.all){document.all.sixteenth4.style.posLeft = third4;document.all.sixteenth4.style.posTop = fourth4;}tenth4 += fifteenth3;first4=setTimeout('fifteenth4()',twentieth3);}document.write('<div id="sixteenth4" ');document.write('style="' + third2 + '">') ;document.write('<p align="center">' + second2 + '</p>');document.write('</div>');</script>

No comments:

Post a Comment