AllBlogTools.com | Blogger Templates and Tricks | |
- Add Link Fading Effect To Blogger Using MooTools
- Keyboard Shortcuts for Social Media Network Sites
- FinanceDaily
- MagicStyle
| Add Link Fading Effect To Blogger Using MooTools Posted: 11 Sep 2012 07:46 PM PDT 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.
< 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 + ' 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;: '300&# 39;, 'link&# 39;: 'cancel&# 39; }); el.addEvents({ & #39;mouseenter&# 39;: function() { morph.start({ & #39;color&# 39;: '# ffffff & #39; }) }, &# 39; mouseleave & #39; : function() { morph.start({ &# 39; color & #39;: original }) } });});}); </script>
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! |
| Keyboard Shortcuts for Social Media Network Sites Posted: 11 Sep 2012 07:12 PM PDT In today's generation, almost everybody has their own social media network profile, be it Facebook, Twitter, Google+, Pinterest and others. If you’re one of them, perhaps you might want to know some keyboard shortcuts for fast and easy use. Here's something I learned from Qasim Zaib who provides us the some good shortcut keys on three of the most popular social media sites. Facebook: Alt + M Compose new message Actions: Navigation: Timelines: Google + K Go to previous item in the stream (feed) |
| Posted: 11 Sep 2012 10:33 AM PDT Note: There is a file embedded within this post, please visit this post to download the file.
|
| Posted: 11 Sep 2012 10:32 AM PDT Note: There is a file embedded within this post, please visit this post to download the file.
|
| You are subscribed to email updates from Blogger Templates, Tutorials, Tools | WordPress Themes | Allblogtools.com To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |
0 comments:
Post a Comment