Forum rules
DO NOT POST SSF2 OR GAME IDEAS/QUESTIONS IN THIS FORUM!
For SSF2 Discussion, please go here: http://forums.mcleodgaming.com/viewforum.php?f=4
Author |
Message |
Mystyr Nile
Joined: Sat May 30, 2009 5:57 pm Posts: 686 Country:
Gender: Male
|
Users would be able to animate text with this BBCode that I learned of on Speedtrap's forums. I edited the code to allow you to change the color that it flashes on my own forums and the code is as follows: | | | | Code: <head> <script language="javascript"> // Flooble.com's Animated Text script. Will animate a specified // bit of text (determined by the ID of containing tag) by // highlighting it with specified color one character at a time // in a moving pattern. // // Summary of use: // call animate(tagID, color); where "tagID" is the ID // of the tag that contains text to be animated, // and "color" is the color to use to highlight the text with. // // For more information, and detailed instructions, see // http://www.flooble.com/scripts/animate.php // // Copyright (c) 2002 by Animus Pactum Consulting Inc. // This script comes with no warranties whatsoever. // Animus Pactum Consulting will not be responsible // for any damages resulting from its use.
var ie4 = false; if(document.all) { ie4 = true; } function setContent(name, value) { var d; if (ie4) { d = document.all[name]; } else { d = document.getElementById(name); } d.innerHTML = value; }
function getContent(name) { var d; if (ie4) { d = document.all[name]; } else { d = document.getElementById(name); } return d.innerHTML; }
function setColor(name, value) { var d; if (ie4) { d = document.all[name]; } else { d = document.getElementById(name); } d.style.color = value; }
function getColor(name) { var d; if (ie4) { d = document.all[name]; } else { d = document.getElementById(name); } return d.style.color; }
function animate(name, col) { var value = getContent(name); if (value.indexOf('<span') >= 0) { return; } var length = 0; var str = ''; var ch; var token = ''; var htmltag = false; for (i = 0; i < value.length; i++) { ch = value.substring(i, i+1); if (i < value.length - 1) { nextch = value.substring(i+1, i+2); } else { nextch = ' '; } token += ch; if (ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) { htmltag = true; } if (ch == '>' && htmltag) { htmltag = false; } if (!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n') { str += '<span id="' + name + '_' + length + '">' + token + '</span>'; token = ''; length++; } } setContent(name, str); command = 'animateloop(\'' + name + '\', ' + length + ', 0, 1, \'' + col + '\')'; setTimeout(command , 100); }
function animateloop(name, length, ind, delta, col) { var next = ind + delta; if (next >= length) { delta = delta * -1; next = ind + delta; } if (next < 0) { delta = delta * -1; next = ind + delta; } setColor(name + '_' + ind, getColor(name + '_' + next)); setColor(name + '_' + next, col); command = 'animateloop(\'' + name + '\', ' + length + ', ' + next + ', ' + delta + ', \'' + col + '\')'; setTimeout(command , 100); } </script> </head> <body> <span ID="animate">{TEXT}</span> <SCRIPT language="JavaScript"> animate('animate', '{COLOR}'); </SCRIPT> </body> | | | | |
Here, you can see it work. Man, I wouldn't be surprised if I soon found this in the Declined Ideas topic.
|
Sun Feb 21, 2010 5:24 pm |
|
|
Boray
Joined: Thu May 21, 2009 1:05 pm Posts: 269 Location: The Netherlands
|
o_0 ouch! i think my brains just exploded. so with this is can change text colours so that they flash or something?
_________________ so i'm awesome Ya hear?
|
Sun Feb 21, 2010 5:48 pm |
|
|
War P. Anda
Joined: Sun Sep 27, 2009 1:05 pm Posts: 1503 Location: in your heart all along
Gender: Female
|
I don't see why not.
_________________
|
Sun Feb 21, 2010 6:44 pm |
|
|
Geno
Site Admin
Joined: Tue Jan 27, 2009 11:32 am Posts: 11709 Country:
Gender: Anime Girl
Currently Playing: Undertale
|
I think it's a great idea.
|
Sun Feb 21, 2010 6:46 pm |
|
|
Geno
Site Admin
Joined: Tue Jan 27, 2009 11:32 am Posts: 11709 Country:
Gender: Anime Girl
Currently Playing: Undertale
|
|
Sun Feb 21, 2010 6:58 pm |
|
|
spader555
Joined: Mon Aug 11, 2008 2:28 pm Posts: 1036 Location: Who cares!!! Im Gold!!!
|
Cause they're smileys. Do you know whats a smiley? Anyways i think the forum text idea is plain stupid but yet a good design. We don't need animating text to post stuff around these forums. Sorry but this ain't helping
_________________Im blue for SSF2AF.Im spader555 of the mcleodgaming forums
|
Sun Feb 21, 2010 7:19 pm |
|
|
0redyoshi0
Joined: Thu Sep 03, 2009 10:42 am Posts: 263
Gender: Male
|
I think that it will be something that's going to be abused by new members like those (annoying) headbang smileys euurgh..!
_________________
|
Sun Feb 21, 2010 7:25 pm |
|
|
Mystyr Nile
Joined: Sat May 30, 2009 5:57 pm Posts: 686 Country:
Gender: Male
|
|
Sun Feb 21, 2010 9:37 pm |
|
|
Xarhtna
Joined: Mon Aug 11, 2008 9:55 am Posts: 2568 Location: In your bathroom.
Gender: Female
|
Well this is a useless idea.
Seriously, half of the smilies we have are also useless.
_________________ "Adopted Neox, Sora, and A-Punk"
|
Mon Feb 22, 2010 4:02 pm |
|
|
Boray
Joined: Thu May 21, 2009 1:05 pm Posts: 269 Location: The Netherlands
|
I did, just not entirely, as i said, i wasn't able to process all that stuff, after reading for a while i started skipping the rest of the code, and since the part you quoted came from after the Code, i skipped it without noticing it. still, thanks for telling me though.
_________________ so i'm awesome Ya hear?
|
Mon Feb 22, 2010 4:33 pm |
|
|
Cleod9
Site Admin
Joined: Sat Aug 02, 2008 4:07 pm Posts: 8058 Location: NJ Country:
Gender: Male
|
Time to vote...
_________________Current project(s): SSF2 (Working Title) | Percent Done: 90% | Descrip: Sequel to SSF
|
Mon Feb 22, 2010 8:13 pm |
|
|
Hakker
Legendary Ghost
Joined: Mon Aug 11, 2008 6:42 am Posts: 12630 Location: Belgium Country:
Gender: Male
Currently Playing: Final Fantasy XI, Left 4 Dead 2
|
Can I point out that this will only be used by idiots who spam pages of it, potentially giving people seizures? You KNOW it's going to be flashy, admit it.
_________________Play Smite with me? (It's like LoL or Dota, but less frustrating)"Jesus promised the end of all wicked people. Odin promised the end of all ice giants. I don't see many ice giants around."
|
Tue Feb 23, 2010 3:42 am |
|
|
pimp_named_slinkback
Joined: Mon Aug 11, 2008 11:32 am Posts: 1340
Gender: Male
|
Can we change the "NO" option to "f*** NO"? I can't object strongly enough to this retarded idea.
_________________[11:08:57 PM] Luke: http://puu.sh/1WGsn[11:09:42 PM] Luke: like ok if it was something funny [11:09:44 PM] Luke: but [11:09:50 PM] Luke: really [11:15:07 PM] Super High School Level Shut-in: lol sigged xD
|
Tue Feb 23, 2010 7:59 am |
|
|
Szerencse
Joined: Mon Aug 11, 2008 9:02 am Posts: 1654 Location: Reunite with Bomberman!
Gender: Female
|
Can we change the "I DO" option to "f*** YES"? I can't concur strongly enough to this decent idea.
|
Tue Feb 23, 2010 8:24 am |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Funny that, you didn't even vote.
|
Tue Feb 23, 2010 8:26 am |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|