[BBCode] Neonlights

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
User avatar
Terr0r
BBCoder V
BBCoder V
Posts: 339
Joined: 04 May 2011, 00:47
BBCodes: 100
Location: The Netherlands
Contact:

[BBCode] Neonlights

Post by Terr0r »

Neonlights BBCode
Written by Terr0r

BBCode usage
[hide]

Code: Select all

[neonlights]{TEXT}[/neonlights]
[/hide]
HTML replacement
[hide]

Code: Select all

<h2><script language="JavaScript1.2">

var message="{TEXT}"
var neonbasecolor="black"
var neontextcolor="red"
var neontextcolor2="#darkred"
var flashspeed=100						// speed of flashing in milliseconds
var flashingletters=3						// number of letters flashing in neontextcolor
var flashingletters2=1						// number of letters flashing in neontextcolor2 (0 to disable)
var flashpause=0						// the pause between flash-cycles in milliseconds

///No need to edit below this line/////

var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)

function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}

function neon(){

//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
crossref(m).style.color=neonbasecolor
}

//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor

if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2 
if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor


if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",flashpause)
return
}
}

function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()


</script></h2>
[/hide]
Help line
[hide]

Code: Select all

Neonlights :[neonlights]Your text here[/neonlights]
[/hide]
Example
[hide]

Code: Select all

[neonlights]Your text here[/neonlights]
[/hide]
Demo
Screenshot
demoneolights.png
demoneolights.png (4.01 KiB) Viewed 3860 times
Live Demo
Live Demo Neonlights

Note
The original file comes from Dynamicdrive.com and I have just tweaked it to work with phpbb.

Enjoy! Image

Greets Terr0r
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
User avatar
slash
BBCoder II
BBCoder II
Posts: 57
Joined: 27 Oct 2011, 18:53
BBCodes: 31
Contact:

[BBCode] Neonlights

Post by slash »

great! thank you! terr0r
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 129
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

[BBCode] Neonlights

Post by Galandas »

User avatar
Terr0r
BBCoder V
BBCoder V
Posts: 339
Joined: 04 May 2011, 00:47
BBCodes: 100
Location: The Netherlands
Contact:

[BBCode] Neonlights

Post by Terr0r »

No it is not the same take a look to my bbcode and to the Color Slide BBCode it is not the same

Greets Terr0r
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
User avatar
darkonia
BBCoder II
BBCoder II
Posts: 57
Joined: 23 May 2011, 19:40
BBCodes: 35
Favourite BBCode: hs bbcode
Favourite MOD: dm video
Location: Munich

[BBCode] Neonlights

Post by darkonia »

looks good, thx
Von Spielern für Spieler bietet Dir MMOG-Heaven genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings auf MMOG-Heaven.
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 129
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

[BBCode] Neonlights

Post by Galandas »

Terr0r wrote:No it is not the same take a look to my bbcode and to the Color Slide BBCode it is not the same

Greets Terr0r
okay it was only a question

thanks :thumb:
juango
BBCoder II
BBCoder II
Posts: 34
Joined: 30 May 2011, 20:44

[BBCode] Neonlights

Post by juango »

is there any way you can make that xhtml strict? if you use that bbcode on your forum you get validation errors!
User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 23:20
BBCodes: 30
Favourite MOD: Thanks for Posts
Contact:

[BBCode] Neonlights

Post by doktornotor »

Sure, once you have replaced nonsensical junk such as language="JavaScript1.2" with valid code... :lol:
Support requests via PM go straight to /dev/null!
juango
BBCoder II
BBCoder II
Posts: 34
Joined: 30 May 2011, 20:44

[BBCode] Neonlights

Post by juango »

dok i know what the correct code is, i was just trying to let terr0r know if he could fix it so that his posted code here is valid that is all!
User avatar
FTH
BBCoder III
BBCoder III
Posts: 124
Joined: 25 Nov 2011, 23:28
BBCodes: 10
Contact:

[BBCode] Neonlights

Post by FTH »

try to replace with :

Code: Select all

<script language="Javascript1.2" type="text/javascript">
or just :

Code: Select all

<script type="text/javascript">
Locked