banner

Rainbow Link Hover

1. Copy this code BEFORE </head> tags

<script type='text/javascript'>
//<![CDATA[
var rate = 50;
if (document.getElementById) 
window.onerror=new Function("return true")

var objActive; // The object which event occured in 
var act = 0; // Flag during the action 
var elmH = 0; // Hue 
var elmS = 128; // Saturation 
var elmV = 255; // Value 
var clrOrg; // A color before the change 
var TimerID; // Timer ID
if (document.all) { 
document.onmouseover = doRainbowAnchor; 
document.onmouseout = stopRainbowAnchor; 
} 
else if (document.getElementById) { 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT); 
document.onmouseover = Mozilla_doRainbowAnchor; 
document.onmouseout = Mozilla_stopRainbowAnchor; 
}
function doRainbow(obj) 
{ 
if (act == 0) { 
act = 1; 
if (obj) 
objActive = obj; 
else 
objActive = event.srcElement; 
clrOrg = objActive.style.color; 
TimerID = setInterval("ChangeColor()",100); 
} 
}
function stopRainbow() 
{ 
if (act) { 
objActive.style.color = clrOrg; 
clearInterval(TimerID); 
act = 0; 
} 
}
function doRainbowAnchor() 
{ 
if (act == 0) { 
var obj = event.srcElement; 
while (obj.tagName != 'A' && obj.tagName != 'BODY') { 
obj = obj.parentElement; 
if (obj.tagName == 'A' || obj.tagName == 'BODY') 
break; 
}
if (obj.tagName == 'A' && obj.href != '') { 
objActive = obj; 
act = 1; 
clrOrg = objActive.style.color; 
TimerID = setInterval("ChangeColor()",100); 
} 
} 
}
function stopRainbowAnchor() 
{ 
if (act) { 
if (objActive.tagName == 'A') { 
objActive.style.color = clrOrg; 
clearInterval(TimerID); 
act = 0; 
} 
} 
}
function Mozilla_doRainbowAnchor(e) 
{ 
if (act == 0) { 
obj = e.target; 
while (obj.nodeName != 'A' && obj.nodeName != 'BODY') { 
obj = obj.parentNode; 
if (obj.nodeName == 'A' || obj.nodeName == 'BODY') 
break; 
}
if (obj.nodeName == 'A' && obj.href != '') { 
objActive = obj; 
act = 1; 
clrOrg = obj.style.color; 
TimerID = setInterval("ChangeColor()",100); 
} 
} 
}
function Mozilla_stopRainbowAnchor(e) 
{ 
if (act) { 
if (objActive.nodeName == 'A') { 
objActive.style.color = clrOrg; 
clearInterval(TimerID); 
act = 0; 
} 
} 
}
function ChangeColor() 
{ 
objActive.style.color = makeColor(); 
}
function makeColor() 
{ 
// Don't you think Color Gamut to look like Rainbow?
// HSVtoRGB 
if (elmS == 0) { 
elmR = elmV; elmG = elmV; elmB = elmV; 
} 
else { 
t1 = elmV; 
t2 = (255 - elmS) * elmV / 255; 
t3 = elmH % 60; 
t3 = (t1 - t2) * t3 / 60;
if (elmH < 60) { 
elmR = t1; elmB = t2; elmG = t2 + t3; 
} 
else if (elmH < 120) { 
elmG = t1; elmB = t2; elmR = t1 - t3; 
} 
else if (elmH < 180) { 
elmG = t1; elmR = t2; elmB = t2 + t3; 
} 
else if (elmH < 240) { 
elmB = t1; elmR = t2; elmG = t1 - t3; 
} 
else if (elmH < 300) { 
elmB = t1; elmG = t2; elmR = t2 + t3; 
} 
else if (elmH < 360) { 
elmR = t1; elmG = t2; elmB = t1 - t3; 
} 
else { 
elmR = 0; elmG = 0; elmB = 0; 
} 
}
elmR = Math.floor(elmR).toString(16); 
elmG = Math.floor(elmG).toString(16); 
elmB = Math.floor(elmB).toString(16); 
if (elmR.length == 1) elmR = "0" + elmR; 
if (elmG.length == 1) elmG = "0" + elmG; 
if (elmB.length == 1) elmB = "0" + elmB
elmH = elmH + rate; 
if (elmH >= 360) 
elmH = 0;
return '#' + elmR + elmG + elmB; 
}
//]]>
</script>

2. Save and look on your page

Source: academyoftumblr

    • #admin
    • #rainbow link hover
    • #rainbow hover
    • #link hover
    • #tutorial
  • 1 year ago
  • 250
  • Permalink
  • Share

250 Notes/ Hide

  1. blisss-paradise likes this
  2. guiltyrealities likes this
  3. charitable-giving likes this
  4. personalview-comment likes this
  5. special-snowflake-hall-of-fame likes this
  6. eim-group reblogged this from academyoftumblr
  7. silouete likes this
  8. yabukuron likes this
  9. apriilfoolsdee likes this
  10. lesmileyy likes this
  11. seerofbabes likes this
  12. wh0rificunic0rns likes this
  13. terezi-troll-pyrope likes this
  14. t-u-r-t-l-e-beach likes this
  15. 69withzelo likes this
  16. star-booty likes this
  17. harsh-truth likes this
  18. pilyangmabait likes this
  19. vampirloba likes this
  20. faggotalert likes this
  21. klaatu likes this
  22. htmlthemecodes reblogged this from academyoftumblr and added:
    When you will hover any link, It will show cool Rainbow Effects. It looks awesome while navigating links. The easiest...
  23. lunarmission likes this
  24. planetdab likes this
  25. veemalambing likes this
  26. phantasticamazingdan likes this
  27. cuhe likes this
  28. lafoxtriel likes this
  29. asiantbh likes this
  30. inhalekitt3ns likes this
  31. heykatline likes this
  32. coloradocowgirlforchrist likes this
  33. weird-load likes this
  34. philharvs likes this
  35. thetwirlingcynic likes this
  36. crystalxmoonlight likes this
  37. blamemyniam likes this
  38. im-my-own-w0rst-enemy likes this
  39. brown-eyes-tuxedo-james-dean reblogged this from academyoftumblr
  40. brown-eyes-tuxedo-james-dean likes this
  41. lush-colour likes this
  42. fanqirlingwbu likes this
  43. wi1dc4t likes this
  44. amy--chan likes this
  45. makin-bac0n-pancakes likes this
  46. funkyfiniteever likes this
  47. herfacelindsee likes this
  48. dattclass likes this
  49. livingwild-inparadise likes this
  50. littledreamsss likes this
  51. Show more notesLoading...
← Previous • Next →

Portrait/Logo

Tumblr Academy is a Tutorial Blog. You can find a various tutorials for your tumblr including html code, theme, useful link, tips etc.

7 confused students




For Theme Docs
● Energy Saving Mode
● Welcome Message
● Putting A Background
● Putting A Header
● Endless Scroll
● Disable Right Click
● Fading Image
● Reblog Button On Your Post
● Cursor
● Scroll To Top Button
● Recommend Button
● Stylish Scrollbar / Scrollbar With Image
● Sparkle Link Hover
● Rainbow Link Hover
● Shaking Image
● Pop Up Ask Box/Link

For Descriptions
● Background Music
✓ Youtube Player
✓ SCM Player
✓ MixPod
✓ Streampad
● Ask Box In Description/Sidebar
● Twitter Badge
● Chat Box
●Make A Link
● Hit Counter And User Online
● Scroll Box
● Scrolling Image / Image Marquee
● Navigation Bars
● Sliding Drop Down Menu
● Sliding Drop Down Menu With Image

For Dashboard
●Missing e 1.5.7 [update]
[ ✓ Unfollower List. ✓ Follow Checker. ✓ Bookmark. ✓ Magnify. ✓ Reblog Yourself. ✓ Safe Dash. ✓ Time Stamp. ✓ Post Tumblr Crush. ✓Jump To Dash. ✓ Ask Box In Dashboard. ✓ Enlarge Tumblr Avatar. ✓ Slim Sidebar. ✓ One Click Reblog. ✓ Mass Editor Tweaks etc ]
● Dashboard / Log-in Background
● Others

Basic / For Posting
● Basic HTML Code
● Marquee
● Change URL
● Hide Following People
● Follow Yourself
● Answer Questions With Image/Gifs
● Let People Answer Your Post
● Link Tag Post
● Make A Page
Music Posting ● Number of post to show on your blog
● Enable Ask Box (for new dashboard)

Others
● Image For Saving Energy / Standby Mode
● Track Anonymous Ask
● Redirect To a New URL
●Delete Secondary Blog ● Tumblr Status
● Disable Follow Button
● Mapping Image / Image Map
● Background Layout
● Facebook Things
● Theme Recover

● Pop Up Ask Box/Link
● Sliding Drop Down Menu With Image
● Sliding Drop Down Menu
● Energy Saving Mode
● Shaking Image
● Rainbow Link Hover
● Image For Saving Energy / Standby Mode
●Make A Link
● Redirect To a New URL

I do not own all the code on this blog, i'm modify and edit some code a bit to suit for the Tumblr Theme All images for an explanation of the tutorial is copyrighted by TUMBLR ACADEMY. If you see something has been poorly credited, please TA me. Thank You.

  • FAQs
  • Useful Link
  • Saving Energy Image
  • Icons
  • RSS
  • Random
  • Archive
  • Ask Professor
  • Submit
  • Mobile

Tumblr Academy. Effector Theme by Carlo Franco.

Powered by Tumblr

Counting Since 30 MAY 2011 free counters



ASK BOX IS NOW OPEN

CLICK HERE

click the link and wait for 5second and click skip ad. Thank You ;)