Then, simply add the code in any HTML/JavaScript widget (Log in -> Layout -> Add a Gadget).
If you want to show this effect only in the HomePage or any specific page, then you should read this post, on "How to display a widget only in a specific page in Blogger".
<script language="javascript">
// ENTER TEXT BELOW. CAN *NOT* INCLUDE NORMAL HTML CODE.
var text='YOUR TEXT HERE...';
var delay=40; // SPEED OF TRAIL
var Xoff=0; // PIXEL COUNT FROM THE LEFT OF THE CURSOR (- VALUES GO TO LEFT)
var Yoff=-30; // PIXEL COUNT FROM THE TOP OF THE CURSOR (- VALUES GO UP)
var txtw=14; // AMOUNT OF PIXEL SPACE EACH CHARACTER OCCUPIES
var beghtml='<font color="#00436e"><b>'; // OPTIONAL HTML CODE THAT EFFECTS WHOLE TEXT STRING SUCH AS FONT COLOR, SIZE, ETC.
var endhtml='</b></font>'; // END HTML CODE. MOSTLY USED IF ABOVE SETTING IS USED.
//********** NO NEED TO EDIT BELOW HERE **********\\
ns4 = (navigator.appName.indexOf("Netscape")>=0 && document.layers)? true : false;
ie4 = (document.all && !document.getElementById)? true : false;
ie5 = (document.all && document.getElementById)? true : false;
ns6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var txtA=new Array();
text=text.split('');
var x1=0;
var y1=-1000;
var t='';
for(i=1;i<=text.length;i++){
t+=(ns4)? '<layer name="txt'+i+'" top="-100" left="0" width="'+txtw+'" height="1">' : '<div id="txt'+i+'" style="position:absolute; top:-100px; left:0px; height:1px; width:'+txtw+'; visibility:visible;">';
t+=beghtml+text[i-1]+endhtml;
t+=(ns4)? '</layer>' : '</div>';
}
document.write(t);
function moveid(id,x,y){
if(ns4)id.moveTo(x,y);
else{
id.style.left=x+'px';
id.style.top=y+'px';
}}
function animate(evt){
x1=Xoff+((ie4||ie5)?event.clientX+document.body.scrollLeft:evt.pageX);
y1=Yoff+((ie4||ie5)?event.clientY+document.body.scrollTop:evt.pageY);
}
function getidleft(id){
if(ns4)return id.left;
else return parseInt(id.style.left);
}
function getidtop(id){
if(ns4)return id.top;
else return parseInt(id.style.top);
}
function getwindowwidth(){
if(ie4||ie5)return document.body.clientWidth+document.body.scrollLeft;
else return window.innerWidth+pageXOffset;
}
function movetxts(){
for(i=text.length;i>1;i=i-1){
if(getidleft(txtA[i-1])+txtw*2>=getwindowwidth()){
moveid(txtA[i-1],0,-1000);
moveid(txtA[i],0,-1000);
}else moveid(txtA[i], getidleft(txtA[i-1])+txtw, getidtop(txtA[i-1]));
}
moveid(txtA[1],x1,y1);
}
window.onload=function(){
for(i=1;i<=text.length;i++)txtA[i]=(ns4)?document.layers['txt'+i]:(ie4)?document.all['txt'+i]:document.getElementById('txt'+i);
if(ns4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=animate;
setInterval('movetxts()',delay);
}
</script>
I followed these steps yet I am not getting the result properly...
ReplyDeleteThe text simplt appears on the screen then disappears and it does not trail the mouse!!
Pls guide...
Thanks
@Abhay please follow the link below to add it just in a single click. It works 100%
ReplyDeleteClick here
thanx, it so simple...but you could only do that in blogger..but with this code you can paste it anywhere you want...it successful for me...
ReplyDeletelongchamp outlet, nike air max, jordan pas cher, prada handbags, oakley sunglasses, chanel handbags, polo ralph lauren outlet online, louis vuitton outlet, air max, longchamp outlet, nike air max, polo outlet, cheap oakley sunglasses, tiffany and co, louis vuitton outlet, ray ban sunglasses, nike outlet, kate spade outlet, nike free, louis vuitton, louis vuitton outlet, tiffany jewelry, jordan shoes, longchamp outlet, oakley sunglasses, ray ban sunglasses, louboutin pas cher, louis vuitton, sac longchamp pas cher, burberry pas cher, christian louboutin uk, ugg boots, tory burch outlet, uggs on sale, polo ralph lauren, christian louboutin outlet, gucci handbags, nike free run, oakley sunglasses wholesale, ray ban sunglasses, longchamp pas cher, christian louboutin, christian louboutin shoes, michael kors pas cher, replica watches, replica watches, oakley sunglasses, prada outlet, nike roshe
ReplyDeletehollister, beats by dre, vans, mont blanc pens, valentino shoes, gucci, giuseppe zanotti outlet, vans outlet, reebok outlet, hermes belt, babyliss, celine handbags, wedding dresses, nike roshe run, chi flat iron, oakley, iphone cases, soccer shoes, converse outlet, new balance shoes, ralph lauren, nike air max, p90x workout, nike air max, mac cosmetics, longchamp uk, lancel, nike trainers uk, ray ban, ferragamo shoes, nike huaraches, soccer jerseys, north face outlet, lululemon, louboutin, jimmy choo outlet, baseball bats, nfl jerseys, insanity workout, asics running shoes, herve leger, hollister, north face outlet, abercrombie and fitch, ghd hair, bottega veneta, mcm handbags, timberland boots, instyler, hollister clothing
ReplyDeletecanada goose, thomas sabo, moncler uk, ugg uk, ugg,uggs,uggs canada, ugg,ugg australia,ugg italia, montre pas cher, hollister, doudoune moncler, karen millen uk, juicy couture outlet, canada goose jackets, replica watches, canada goose uk, moncler, louis vuitton, links of london, louis vuitton, wedding dresses, louis vuitton, louis vuitton, swarovski, canada goose outlet, canada goose, marc jacobs, swarovski crystal, canada goose, louis vuitton, juicy couture outlet, pandora jewelry, coach outlet, pandora charms, moncler outlet, pandora jewelry, ugg, supra shoes, moncler, moncler outlet, ugg pas cher, canada goose outlet, pandora uk, canada goose outlet, toms shoes, moncler, moncler
ReplyDeletewhy not try here great site directory blog link you can check here see this here
ReplyDeleteHomepage replica ysl bags sites Chloe Dolabuy More Info Fendi Dolabuy
ReplyDelete