![]() |
Text Fade (Rainbow Faded Text) BBCode
This BB Code produces a rainbow like text fade effect. It uses Javascript to put multiple html font color tags between characters. There are two ways of doing this, the first method uses an external javascript file. In the second post you add the javascript to every page via the header template instead, this may be better if you expect the rainbow text to be called many times on a single page.
Demo: here. Screen Shot: https://vborg.vbsupport.ru/external/2011/08/71.jpg 1. Download the attached textfade.js.txt file, rename it to textfade.js, and upload it to your forums/clientscript folder. 2. Add a new BBCode Title: Text Fade BB Code Tag Name: fade Replacement: Code:
<script type="text/javascript" src="/forums/clientscript/textfade.js"></script> Example: [fade]This code fades text in a rainbow.[/fade] Description: This uses javascript to make a smooth rainbow effect in text. Use Option: No Button Image: (optional) https://vborg.vbsupport.ru/external/2011/08/71.jpg Remove Tag If Empty: Yes All Disable Options: Yes except disable word wrapping: No Limitations:
This BB Code was made for vB 3.8 but should work on all current versions. Please mark as installed if you use this. :) |
Alternate Method- no external file.
1. In Style Manager -> All Style Options edit the headinclude Template for each style At the bottom add: Code:
<script type="text/javascript"> Title: Text Fade BB Code Tag Name: fade Replacement: Code:
<script>fadeText("{param}");</script> Note- the example won't work in Admin CP because the standard header is not loaded, but it will work in your forum. Description: This uses javascript to make a smooth rainbow effect in text. Use Option: No Button Image: (optional) https://vborg.vbsupport.ru/external/2011/08/71.jpg Remove Tag If Empty: Yes All Disable Options: Yes except disable word wrapping: No All the same limitations as the original method in the top post apply. |
tagged and thanks
|
If you want the rainbow to fade the other direction (VIBGTOR instead of ROYGBIV) then change the line near the bottom from:
Code:
document.write("<font color=\"#" + colorv + colory + colorw + "\">" + intext.substring(i, i + 1) + "</font>") Code:
document.write("<font color=\"#" + colorw + colory + colorv + "\">" + intext.substring(i, i + 1) + "</font>") |
Someone has expanded this mod to work in Usernames, if you are interested please see here:
https://vborg.vbsupport.ru/showthread.php?t=251286 |
All times are GMT. The time now is 04:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|