Gadget in Sidebar not Working

Lucien <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
I added a HTML/Javascript Gadget to my Sidebar to create an image with 
roving eyes. I moved the gadget down to where I want it, but it isn't 
visible when I view my blog?

  <script type="text/avascript">
//------------------------------------------------------
//         Watching Eyes Script (Second edition)
//              script by Virtual_Max 
// Please, check my site for latest edition of this script
//      http://www.geocities.com/siliconvalley/lakes/8620    
// This script can be used/modified free without special permission 
// until this notice presents unchanged in all copies and 
derivatives.             
//------------------------------------------------------

function moveObject(ex,ey,objectid)
{if(document.layers)
                 {document[objectid].top = ey;
                  document[objectid].left = ex;
                 }
 if(document.all){document.all[objectid].style.pixelTop = ey;
                  document.all[objectid].style.pixelLeft = ex;
                 }
}

var mx=200;
var my=200;
var rx=0;
var ry=-200;
var eyetimer=null;

function mymousemoved(ex,ey)
{mx=ex; my=ey;}

function movestart()
{rx+=(mx-rx-40)*0.1;
 ry+=(my-ry-60)*0.1; 
 dy=my-ry-20;
 dx1=mx-rx-20;
 dx2=mx-rx-60;
 r=Math.sqrt(dx1*dx1+dy*dy);
 if(r<20) r=20
 dx1=dx1*10/r+rx+10;
 dy1=dy*10/r+ry+10;
 r=Math.sqrt(dx2*dx2+dy*dy);
 if(r<20) r=20
 dx2=dx2*10/r+rx+50;
 moveObject(Math.floor(rx),Math.floor(ry),"eyeballs");
 moveObject(Math.floor(dx1),Math.floor(dy1),"lefteye");
 moveObject(Math.floor(dx2),Math.floor(dy1),"righteye");
 eyetimer=setTimeout("movestart()",100);
}

function myhandler(e)
{if(e)
  {ex=e.pageX; 
   ey=e.pageY;
   mymousemoved(ex,ey);
   return routeEvent(e);
  }
 if(event)
  {ex=event.clientX+window.document.body.scrollLeft;
   ey=event.clientY+window.document.body.scrollTop;
   mymousemoved(ex,ey);
  }
 return null;  
}

function clearmytimer()
 {if(eyetimer!=null) clearTimeout(eyetimer);
 }

function setupeyes(href,eyeballs,eye)
{if(document.layers)
   {window.captureEvents(Event.MOUSEMOVE);
    window.onMouseMove=myhandler;
    window.onresize=new Function('history.go(0)');
   }
 if(document.all)
   {document.onmousemove=myhandler;}

 window.onunload = clearmytimer;
 s='<style type=text/css>';
 s+='    .eyes {position:absolute; top:200; left:200; width:1;}';
 s+='</style>';
 document.writeln(s);
 s ='<div ID="eyeballs" CLASS="eyes">'
 if(href) s+='<A HREF="http://jdstiles.com">'
 s+='<IMG SRC="'+eyeballs+'" border=0>'
 if(href) s+='</A>'
 s+='</div><div ID="lefteye"  CLASS="eyes">'
 if(href) s+='<A HREF="http://jdstiles.com">'
 s+='<IMG SRC="'+eye+'" border=0>'
 if(href) s+='</A>'
 s+='</div><div ID="righteye" CLASS="eyes">'
 if(href) s+='<A HREF="http://jdstiles.com">'
 s+='<IMG SRC="'+eye+'" border=0>'
 if(href) s+='</A>'
 s+='</div>';
 document.writeln(s);
 movestart();
}
</script>

<script type="text/javascript">
//------------------------------------------------------
//         Watching Eyes Script (Second edition)
//              script by Virtual_Max 
// Please, check my site for latest edition of this script
//      http://www.geocities.com/siliconvalley/lakes/8620    
// This script can be used/modified free without special permission 
// until this notice presents unchanged in all copies and 
derivatives.             
//------------------------------------------------------

function moveObject(ex,ey,objectid)
{if(document.layers)
                 {document[objectid].top = ey;
                  document[objectid].left = ex;
                 }
 if(document.all){document.all[objectid].style.pixelTop = ey;
                  document.all[objectid].style.pixelLeft = ex;
                 }
}

var mx=200;
var my=200;
var rx=0;
var ry=-200;
var eyetimer=null;

function mymousemoved(ex,ey)
{mx=ex; my=ey;}

function movestart()
{rx+=(mx-rx-40)*0.1;
 ry+=(my-ry-60)*0.1; 
 dy=my-ry-20;
 dx1=mx-rx-20;
 dx2=mx-rx-60;
 r=Math.sqrt(dx1*dx1+dy*dy);
 if(r<20) r=20
 dx1=dx1*10/r+rx+10;
 dy1=dy*10/r+ry+10;
 r=Math.sqrt(dx2*dx2+dy*dy);
 if(r<20) r=20
 dx2=dx2*10/r+rx+50;
 moveObject(Math.floor(rx),Math.floor(ry),"eyeballs");
 moveObject(Math.floor(dx1),Math.floor(dy1),"lefteye");
 moveObject(Math.floor(dx2),Math.floor(dy1),"righteye");
 eyetimer=setTimeout("movestart()",100);
}

function myhandler(e)
{if(e)
  {ex=e.pageX; 
   ey=e.pageY;
   mymousemoved(ex,ey);
   return routeEvent(e);
  }
 if(event)
  {ex=event.clientX+window.document.body.scrollLeft;
   ey=event.clientY+window.document.body.scrollTop;
   mymousemoved(ex,ey);
  }
 return null;  
}

function clearmytimer()
 {if(eyetimer!=null) clearTimeout(eyetimer);
 }

function setupeyes(href,eyeballs,eye)
{if(document.layers)
   {window.captureEvents(Event.MOUSEMOVE);
    window.onMouseMove=myhandler;
    window.onresize=new Function('history.go(0)');
   }
 if(document.all)
   {document.onmousemove=myhandler;}

 window.onunload = clearmytimer;
 s='<style type=text/css>';
 s+='    .eyes {position:absolute; top:200; left:200; width:1;}';
 s+='</style>';
 document.writeln(s);
 s ='<div ID="eyeballs" CLASS="eyes">'
 if(href) s+='<A HREF="http://jdstiles.com">'
 s+='<IMG SRC="'+eyeballs+'" border=0>'
 if(href) s+='</A>'
 s+='</div><div ID="lefteye"  CLASS="eyes">'
 if(href) s+='<A HREF="http://jdstiles.com">'
 s+='<IMG SRC="'+eye+'" border=0>'
 if(href) s+='</A>'
 s+='</div><div ID="righteye" CLASS="eyes">'
 if(href) s+='<A HREF="http://jdstiles.com">'
 s+='<IMG SRC="'+eye+'" border=0>'
 if(href) s+='</A>'
 s+='</div>';
 document.writeln(s);
 movestart();
}
</script>

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.