Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MyCode] Capitalize It
Author Message
mastermunj
Senior Member


Posts: 547
Joined: Aug 2009
Reputation: 2
Post: #1
[MyCode] Capitalize It
This MyCode capitalizes text specified.

Title:
Code:
Capitalize It

Short Description:
Code:
Capitalizes specified text

Regular Expression:
Code:
\[capitalize\](.*?)\[/capitalize\]

Replacement:
Code:
<script>function c(x){x.innerHTML = x.innerHTML.toLowerCase();}</script><body onload="c(document.getElementById('h'));"><div id="h" style="text-transform:capitalize;">$1</div></body>

Example:
[glogo]HI THERE, hOW ArE YOu?[/glogo]

Result:
Hi There, How Are You?

(This post was last modified: 09-24-2009, 08:35 PM by ptcsquad)
09-24-2009, 08:32 PM
wethegreenpeople
Member


Posts: 169
Joined: Jul 2009
Reputation: 1
Post: #2
RE: [MyCode] Capitalize It
LOL Sorry, but i don't get it. It makes each word caps right?
09-25-2009, 12:51 AM
mastermunj
Senior Member


Posts: 547
Joined: Aug 2009
Reputation: 2
Post: #3
RE: [MyCode] Capitalize It
yups... it makes first letter of each word capital.. actually its done using simple css style...
I am just a learner so making basic MyCodes

09-25-2009, 04:57 AM
wethegreenpeople
Member


Posts: 169
Joined: Jul 2009
Reputation: 1
Post: #4
RE: [MyCode] Capitalize It
Nah nah this is cool, i didn't realize that we can use CSS HAHA
09-25-2009, 10:31 AM
mastermunj
Senior Member


Posts: 547
Joined: Aug 2009
Reputation: 2
Post: #5
RE: [MyCode] Capitalize It
in that case its mix of css and javascript both

mainly css can't capitalize all uppercase words, hence javascript does lowercase and css does capitalization

09-25-2009, 02:44 PM
VarcoAlex
Junior Member


Posts: 20
Joined: Jan 2009
Reputation: 0
Post: #6
RE: [MyCode] Capitalize It
It's good but i think it's unusefull
09-27-2009, 04:33 PM
starvinmarvin14
Junior Member


Posts: 22
Joined: Mar 2009
Reputation: 0
Post: #7
RE: [MyCode] Capitalize It
Seems kind of pointless to me... but it's cool.
09-28-2009, 03:00 AM
mastermunj
Senior Member


Posts: 547
Joined: Aug 2009
Reputation: 2
Post: #8
RE: [MyCode] Capitalize It
initial mycode can be useless at times but they are always good for learning..

09-28-2009, 03:17 AM
ghazal
Pluginer, Themer and MyCoder

Posts: 226
Joined: Jun 2009
Post: #9
RE: [MyCode] Capitalize It
I really like it, Good work ptcsquad, you done a great job
09-28-2009, 03:20 AM
Jimmy
www.adminpromotion.com


Posts: 131
Joined: Oct 2009
Reputation: 0
Post: #10
RE: [MyCode] Capitalize It
this is really useless for me but could help out others... so nice job!
10-05-2009, 06:32 AM




User(s) browsing this thread: 2 Guest(s)