Forums FAQForums FAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 

Regarding "BBCode"
 
This topic is locked you cannot edit posts or make replies    DDR Freak Forum Index -> Site Feedback
View previous topic :: View next topic  
Author Message
D r S a n e
Trick Member
Trick Member


Joined: 07 Jul 2004
0. PostPosted: Mon Sep 06, 2004 5:31 pm    Post subject: Regarding "BBCode" Reply with quote

Is there anyway to take javascript and transfer it into working form on a forum using BBCode, perhaps changing tags? I am not a very highly experienced programmer, so can anyone help me out wit this?

More specifically with this piece of code:

Quote:
function createHexArray(n) {
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = i - 1;

this[11] = "A";
this[12] = "B";
this[13] = "C";
this[14] = "D";
this[15] = "E";
this[16] = "F";
return this;
}
hx = new createHexArray(16);

function convertToHex(x) {
if (x < 17) x = 16;
var high = x / 16;
var s = high+"";
s = s.substring(0, 2);
high = parseInt(s, 10);
var left = hx[high + 1];
var low = x - high * 16;
if (low < 1) low = 1;
s = low + "";
s = s.substring(0, 2);
low = parseInt(s, 10);
var right = hx[low + 1];
var string = left + "" + right;
return string;
}

function makeRainbow(text) {
text = text.substring(0, text.length);
color_d1 = 255;
mul = color_d1 / text.length;
for(var i = 0; i < text.length; i++) {
color_d1 = 255*Math.sin(i / (text.length / 3));
color_h1 = convertToHex(color_d1);
color_d2 = mul * i;
color_h2 = convertToHex(color_d2);

k = text.length;
j = k - i;
if (j < 0) j = 0;
color_d3 = mul * j;
color_h3 = convertToHex(color_d3);

document.write("<FONT COLOR=\"#" + color_h3 + color_h1 + color_h2 + "\">" + text.substring(i, i + 1) + "</FONT>");
}
}

</script>
</HEAD>

<BODY>

<center>
<strong>
<font size=6>
<script>
<!--
makeRainbow("DR SANE");
// -->
</script>
</font>
</strong>
</center>
Back to top
View users profile Send private message MSN Messenger
evn
Staff Member
Staff Member


Joined: 23 Jan 2002
Location: Calgary AB
1. PostPosted: Mon Sep 06, 2004 5:40 pm    Post subject: Re: Regarding "BBCode" Reply with quote

Sane wrote:
Is there anyway to take javascript and transfer it into working form on a forum using BBCode, perhaps changing tags? I am not a very highly experienced programmer, so can anyone help me out wit this?

In short: not here.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Agilab
Contributor
Contributor


Joined: 10 Mar 2003
Location: Baltimore, MD
2. PostPosted: Mon Sep 06, 2004 7:10 pm    Post subject: Reply with quote

Check it out:

http://www.ddrfreak.com/phpBB2/faq.php?mode=bbcode

Oh, and that looks mostly like HTML. phpBB DOES support HTML, but DDR Freak has it turned off.....
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Cutriss
Staff Member
Staff Member


Joined: 24 Jan 2002
3. PostPosted: Mon Sep 06, 2004 9:23 pm    Post subject: Reply with quote

I could see *that* getting annoying *very* fast...
_________________

Sentient Mode is capable...
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger Xbox Live Gamertag
D r S a n e
Trick Member
Trick Member


Joined: 07 Jul 2004
4. PostPosted: Tue Sep 07, 2004 3:56 pm    Post subject: Reply with quote

How would it get annoying? It would be just like a little signature. I've seen people who only type in blue for instance, I was planning to only type in rainbow. E13.gif Oh well...

Javascript >< HTML

Same thing... E4.gif
Back to top
View users profile Send private message MSN Messenger
Larrikin
Contributor
Contributor


Joined: 17 Feb 2002
Location: Illadelphia
5. PostPosted: Tue Sep 07, 2004 3:58 pm    Post subject: Reply with quote

Sane wrote:
How would it get annoying?

Quote:
I was planning to only type in rainbow.


Yea exactly.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Spike
Administrator
Administrator


Joined: 17 Jan 2002
Location: Denver
6. PostPosted: Tue Sep 07, 2004 4:01 pm    Post subject: Reply with quote

Thanks Larrikin.

Colors are fine. Excessive use of annoying colors is not so hot.
_________________
Back to top
View users profile Send private message
D r S a n e
Trick Member
Trick Member


Joined: 07 Jul 2004
7. PostPosted: Tue Sep 07, 2004 4:06 pm    Post subject: Reply with quote

Well good to hear before I went ahead and started rainbowerizing myself all over the forums... laugh.gif

(Spike, too lazy to PM you so, that APD joke site you showed me, the first link to the first conversation is broken, didn't know who to tell. E15.gif )
Back to top
View users profile Send private message MSN Messenger
Cutriss
Staff Member
Staff Member


Joined: 24 Jan 2002
8. PostPosted: Tue Sep 07, 2004 4:24 pm    Post subject: Reply with quote

Not to mention that if you were to have the ability to do this, there would be a number of *FAR* more annoying adaptations/exploits of the new functionality.

No thanks...there's a reason we don't allow HTML. E10.gif
_________________

Sentient Mode is capable...
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger Xbox Live Gamertag
Agilab
Contributor
Contributor


Joined: 10 Mar 2003
Location: Baltimore, MD
9. PostPosted: Tue Sep 07, 2004 6:42 pm    Post subject: Reply with quote

A lot of people want HTML for NNR signatures, but there are ways around using HTML....just like everything.

I can type in rainbow E13.gif
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Radix
Trick Member
Trick Member


Joined: 03 Jul 2002
Location: 烈士
10. PostPosted: Tue Sep 07, 2004 11:13 pm    Post subject: Reply with quote

That's not too bad. This, on the other hand...
Back to top
View users profile Send private message AOL Instant Messenger MSN Messenger
Spike
Administrator
Administrator


Joined: 17 Jan 2002
Location: Denver
11. PostPosted: Tue Sep 07, 2004 11:46 pm    Post subject: Reply with quote

Jesus that burns my eyes.
_________________
Back to top
View users profile Send private message
Mark of the DMast
Trick Member
Trick Member


Joined: 15 Mar 2004
Location: What who put me in this tux
12. PostPosted: Wed Sep 08, 2004 10:05 am    Post subject: Reply with quote

ok thats it *goes to get forks*
_________________
Back to top
View users profile Send private message Send email Visit posters website AOL Instant Messenger
Radix
Trick Member
Trick Member


Joined: 03 Jul 2002
Location: 烈士
13. PostPosted: Wed Sep 08, 2004 3:09 pm    Post subject: Reply with quote

DDR Freak Forums Admin wrote:
This is an automated message from the DDR Freak Forums warning system. You have been warned for the following reason: Bad taste.
This is in regards to your behavior in the thread http://www.ddrfreak.com/phpBB2/viewtopic.php?p=7762779#7762779, in post number(s): 10.
If you have any questions regarding this warning or believe it was sent in error, contact Cutriss. Do not reply to this PM, as it will be ignored.
You have been given 1 points for this warning, and now have 2 points total. When your point total reaches 9, you will be automatically and permanently banned.

Ouch.
Back to top
View users profile Send private message AOL Instant Messenger MSN Messenger
AZNBOITN
Trick Member
Trick Member


Joined: 07 Sep 2004
14. PostPosted: Wed Sep 08, 2004 3:23 pm    Post subject: Reply with quote

What if we use colors, its not a big deal.

Last edited by AZNBOITN on Wed Sep 08, 2004 7:14 pm, edited 1 time in total
Back to top
View users profile Send private message
Radix
Trick Member
Trick Member


Joined: 03 Jul 2002
Location: 烈士
15. PostPosted: Wed Sep 08, 2004 3:33 pm    Post subject: Reply with quote

It's a joke, genius.
Back to top
View users profile Send private message AOL Instant Messenger MSN Messenger
onoessnaked
Staff Member
Staff Member


Joined: 22 Aug 2002
Location: UK
16. PostPosted: Wed Sep 08, 2004 3:51 pm    Post subject: Reply with quote

Mommy, the rainbow is giving my eyes an owie :{
_________________

Well, it explains the disappearance
Back to top
View users profile Send private message Send email AOL Instant Messenger Yahoo Messenger MSN Messenger
AZNBOITN
Trick Member
Trick Member


Joined: 07 Sep 2004
17. PostPosted: Wed Sep 08, 2004 4:44 pm    Post subject: Reply with quote

They sure dont.
Back to top
View users profile Send private message
Larrikin
Contributor
Contributor


Joined: 17 Feb 2002
Location: Illadelphia
18. PostPosted: Wed Sep 08, 2004 6:22 pm    Post subject: Reply with quote

What are you talking about?
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Display posts from previous:   
This topic is locked you cannot edit posts or make replies    DDR Freak Forum Index -> Site Feedback All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group