The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 9:40 am

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



 [ 33 posts ]  Go to page 1, 2, 3  Next
Animated Text 

Who wants animated text on the forums?
I do! 29%  29%  [ 8 ]
NO 71%  71%  [ 20 ]
Total votes : 28

Animated Text 
Author Message
User avatar

Joined: Sat May 30, 2009 5:57 pm
Posts: 686
Country: United States (us)
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
User avatar

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?

_________________
ImageImage
Damian wrote:
Boray's not a noob, buddy. Boray's awesome.
so i'm awesome Ya hear?


Sun Feb 21, 2010 5:48 pm
User avatar

Joined: Sun Sep 27, 2009 1:05 pm
Posts: 1503
Location: in your heart all along
Gender: Female
I don't see why not.

_________________
Image


Sun Feb 21, 2010 6:44 pm
Site Admin
User avatar

Joined: Tue Jan 27, 2009 11:32 am
Posts: 11709
Country: United States (us)
Gender: Anime Girl
Currently Playing: Undertale
I think it's a great idea.


Sun Feb 21, 2010 6:46 pm
Site Admin
User avatar

Joined: Tue Jan 27, 2009 11:32 am
Posts: 11709
Country: United States (us)
Gender: Anime Girl
Currently Playing: Undertale
Kyuubit wrote:
Why? What's the point?

What's the point of these?

:headbang: :snack: :bump:


Sun Feb 21, 2010 6:58 pm
User avatar

Joined: Mon Aug 11, 2008 2:28 pm
Posts: 1036
Location: Who cares!!! Im Gold!!!
Geno wrote:
Kyuubit wrote:
Why? What's the point?

What's the point of these?

:headbang: :snack: :bump:

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

_________________
Image
Im blue for SSF2AF.Im spader555 of the mcleodgaming forums


Sun Feb 21, 2010 7:19 pm
User avatar

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..!

_________________
Image
Image


Sun Feb 21, 2010 7:25 pm
User avatar

Joined: Sat May 30, 2009 5:57 pm
Posts: 686
Country: United States (us)
Gender: Male
Boray wrote:
o_0 ouch! i think my brains just exploded.
so with this is can change text colours so that they flash or something?
Read the first post:
Mystyr Nile wrote:
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 9:37 pm
User avatar

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
WWW
User avatar

Joined: Thu May 21, 2009 1:05 pm
Posts: 269
Location: The Netherlands
Mystyr Nile wrote:
Boray wrote:
o_0 ouch! i think my brains just exploded.
so with this is can change text colours so that they flash or something?
Read the first post:
Mystyr Nile wrote:
Here, you can see it work.
Man, I wouldn't be surprised if I soon found this in the Declined Ideas topic.


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.

_________________
ImageImage
Damian wrote:
Boray's not a noob, buddy. Boray's awesome.
so i'm awesome Ya hear?


Mon Feb 22, 2010 4:33 pm
Site Admin
User avatar

Joined: Sat Aug 02, 2008 4:07 pm
Posts: 8058
Location: NJ
Country: United States (us)
Gender: Male
Time to vote...

_________________
Image
Current project(s):
SSF2 (Working Title) | Percent Done: 90% | Descrip: Sequel to SSF


Mon Feb 22, 2010 8:13 pm
WWW
Legendary Ghost
User avatar

Joined: Mon Aug 11, 2008 6:42 am
Posts: 12630
Location: Belgium
Country: Belgium (be)
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)

Image

"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
User avatar

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.

_________________
Image
Image
[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

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.

_________________
Razahtleb wrote:
Thaiberium wrote:
So why do we have a moderator section? :wee:

Section for the dick suckers moderators to make them feel special talk about important issues on the forums. It's just a forum that is named "moderator section"


Tue Feb 23, 2010 8:24 am
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
xXx1337p0s73rxXx~~~~ wrote:
Can we change the "I DO" option to "f*** YES"? I can't concur strongly enough to this decent idea.

Funny that, you didn't even vote.

_________________
Image


Tue Feb 23, 2010 8:26 am
Display posts from previous:  Sort by  
 [ 33 posts ]  Go to page 1, 2, 3  Next

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

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.