View previous topic :: View next topic |
Author |
Message |
D r S a n e Trick Member
Joined: 07 Jul 2004
|
0. Posted: Mon Sep 06, 2004 5:31 pm Post subject: Regarding "BBCode" |
|
|
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 |
|
|
evn Staff Member
Joined: 23 Jan 2002 Location: Calgary AB |
1. Posted: Mon Sep 06, 2004 5:40 pm Post subject: Re: Regarding "BBCode" |
|
|
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 |
|
|
Agilab Contributor
Joined: 10 Mar 2003 Location: Baltimore, MD |
|
Back to top |
|
|
Cutriss Staff Member
Joined: 24 Jan 2002
|
3. Posted: Mon Sep 06, 2004 9:23 pm Post subject: |
|
|
I could see *that* getting annoying *very* fast... _________________
Sentient Mode is capable... |
|
Back to top |
|
|
D r S a n e Trick Member
Joined: 07 Jul 2004
|
4. Posted: Tue Sep 07, 2004 3:56 pm Post subject: |
|
|
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. Oh well...
Javascript >< HTML
Same thing... |
|
Back to top |
|
|
Larrikin Contributor
Joined: 17 Feb 2002 Location: Illadelphia |
5. Posted: Tue Sep 07, 2004 3:58 pm Post subject: |
|
|
Sane wrote: | How would it get annoying? |
Quote: | I was planning to only type in rainbow. |
Yea exactly. _________________
|
|
Back to top |
|
|
Spike Administrator
Joined: 17 Jan 2002 Location: Denver |
6. Posted: Tue Sep 07, 2004 4:01 pm Post subject: |
|
|
Thanks Larrikin.
Colors are fine. Excessive use of annoying colors is not so hot. _________________
|
|
Back to top |
|
|
D r S a n e Trick Member
Joined: 07 Jul 2004
|
7. Posted: Tue Sep 07, 2004 4:06 pm Post subject: |
|
|
Well good to hear before I went ahead and started rainbowerizing myself all over the forums...
(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. ) |
|
Back to top |
|
|
Cutriss Staff Member
Joined: 24 Jan 2002
|
8. Posted: Tue Sep 07, 2004 4:24 pm Post subject: |
|
|
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. _________________
Sentient Mode is capable... |
|
Back to top |
|
|
Agilab Contributor
Joined: 10 Mar 2003 Location: Baltimore, MD |
9. Posted: Tue Sep 07, 2004 6:42 pm Post subject: |
|
|
A lot of people want HTML for NNR signatures, but there are ways around using HTML....just like everything.
I can type in rainbow _________________
|
|
Back to top |
|
|
Radix Trick Member
Joined: 03 Jul 2002 Location: ç士 |
10. Posted: Tue Sep 07, 2004 11:13 pm Post subject: |
|
|
That's not too bad. This, on the other hand... |
|
Back to top |
|
|
Spike Administrator
Joined: 17 Jan 2002 Location: Denver |
11. Posted: Tue Sep 07, 2004 11:46 pm Post subject: |
|
|
Jesus that burns my eyes. _________________
|
|
Back to top |
|
|
Mark of the DMast Trick Member
Joined: 15 Mar 2004 Location: What who put me in this tux |
12. Posted: Wed Sep 08, 2004 10:05 am Post subject: |
|
|
ok thats it *goes to get forks* _________________
|
|
Back to top |
|
|
Radix Trick Member
Joined: 03 Jul 2002 Location: ç士 |
13. Posted: Wed Sep 08, 2004 3:09 pm Post subject: |
|
|
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 |
|
|
AZNBOITN Trick Member
Joined: 07 Sep 2004
|
14. Posted: Wed Sep 08, 2004 3:23 pm Post subject: |
|
|
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 |
|
|
Radix Trick Member
Joined: 03 Jul 2002 Location: ç士 |
15. Posted: Wed Sep 08, 2004 3:33 pm Post subject: |
|
|
It's a joke, genius. |
|
Back to top |
|
|
onoessnaked Staff Member
Joined: 22 Aug 2002 Location: UK |
|
Back to top |
|
|
AZNBOITN Trick Member
Joined: 07 Sep 2004
|
17. Posted: Wed Sep 08, 2004 4:44 pm Post subject: |
|
|
They sure dont. |
|
Back to top |
|
|
Larrikin Contributor
Joined: 17 Feb 2002 Location: Illadelphia |
18. Posted: Wed Sep 08, 2004 6:22 pm Post subject: |
|
|
What are you talking about? _________________
|
|
Back to top |
|
|
|