Home » Blogger Tutorials, Tricks and Hacks » Blogger Graphics / Effects Tricks » Add Link Fading Effect To Blogger Using MooTools

Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.

|| View All Tutorials ||

Add Link Fading Effect To Blogger Using MooTools

Add Link Fading Effect To Blogger Using MooTools

1 Star2 Stars3 Stars4 Stars5 Stars

Report Error

736 views

We hardly see any Blogger tutorials around the web that involves MooTools. This one comes from a blogger named Sohail Jawaid, and it’s a way to add a fading effect to hyperlinked text.

This may seem like the usual stuff you see around the web but again, in this case we’re using MooTools, one of several JavaScript frameworks. Follow the instructions below.

  • In your dashboard, go to the Design page and under the Template section, click Edit HTML.
  • By pressing Ctrl+F, look for the </head> tag.
  • Copy/paste the code below right before it:
< script type='text/javascript'>
 window.onload = function() { var paras = document.getElementById( & #39;
 content & #39;).getElementsByTagName( & #39; p & #39;); if (paras.length)
 { paras[0].className = paras[0].className + &#39; intro & #39;; } };
 < /script>
 <style type='text/css '>
 #link1 { color:#f00; }#link2 { color:#00f; }#link3 { color:#000; }
 </style>
 <script src='http: 
 //ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools.js' type='text/javascript'
 />
 <script type='text/javascript'>
 window.addEvent( & #39;domready&# 39;, function() {
 $each($( & #39;.fade&# 39;), function(el) {
 var original = el.getStyle( & #39;color&# 39;);
 var morph = new Fx.Morph(el, { & #39;duration&# 39;: &#39;300&# 39;,
 &#39;link&# 39;: &#39;cancel&# 39;
 });
 el.addEvents({ & #39;mouseenter&# 39;: function() {
 morph.start({ & #39;color&# 39;: &#39;# ffffff & #39; }) }, &# 39;
 mouseleave & #39; : function() { morph.start({ &# 39;
 color & #39;: original }) } });});});
 </script> 
  • Save the template and you’re done.

To use it, simply add the ID and class attributes to your links (see example below):

<a id="link1" href="javascript:;">Link Fade 1</a>

<a id="link2" href="javascript:;">Link Fade 2</a>

<a id="link3" href="javascript:;">Link Fade 3</a>

Hope you like it. Cheers!

Liked It ? Please Share

Comments

26 Responses | Post A Comment | Subscribe To Comments RSS Feed

  1. kamran says:

    Dear to make a menu at the top.
    i read this post in your Blog.
    but for this need Css code that you not provided.
    am i right? or it will work

  2. your Weblog is so best useful for us.

  3. I definitely imagine this web site requirements additional interest.

  4. I will possibly be back to study much more,thanks for your info.

  5. One particular matter I just would like to say is always that your Site is so fantastic valuable for us.

  6. I definitely think this website requirements more focus.

  7. Pune Escorts says:

    I hope you can preserve in posting new content pieces & thank you for sharing your great experience among us.

  8. I hope you will hold in submitting new articles or blog posts & many thanks for sharing your great experience among us.

  9. I will probably be again to examine much more, thank you to the data.

  10. Contact me for escorts service in Delhi City.

  11. We are offering vacation rentals home & villa’s for short term.

  12. Blogger Tips says:

    Nice post for traffic ….such a awesome post

  13. I really feel this site wants much more consideration.

  14. I’ll likely be again to browse extra, many thanks to the data.

  15. Goa Escorts says:

    Thanks!The blog article very useful to me!Nice sharing guys!

  16. Goa Escorts says:

    Actually Your post helps me to work.Thanks for providing such important information.

  17. Goa Escorts says:

    Thanks for providing such important information.

  18. Pune Escort says:

    Actually Your post helps me to work . Thanks for providing such important information.

  19. I’ll likely be again to go through additional, thank you for the info.

  20. Just one matter I just wish to say is your Site is so fantastic valuable for us.

  21. I will possibly be again to go through more, many thanks for your information.

  22. I hope you will continue to keep in submitting new posts & thanks for sharing your great experience among us.

  23. Nikita seth says:

    I read you message.you message is very interesting.If you want to know more about pune escort service then you can Visit : pune escort service/a

  24. Call +91-98189.90100 And If you are at home or stuck in a hotel and you fancy some company why not call me and make an Outcall appointment. I help you for choosing Delhi Escort.

Comments will be closed off on this post 365 days (1 year) after it is published. Apologies to this, but it's all about avoiding a growing comment spam problem. See our most recent posts where you can comment here