Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uphill Text Javascript
01-02-2010, 03:07 AM
Post: #1
Uphill Text Javascript
This is interesting text effect in Javascript. It is easy to make. Just separate every char using charAt() function (the same as in C++) and change font size + bold at the end. Example picture :
[Image: 30264_uphilltetxjavascript.jpg]
Put this into <head> section :
Code:
<script>
function uphilltext(text)
{
var temptext=text.toUpperCase()
var size=1
for (i=0;i<temptext.length;i++){
document.write(temptext.charAt(i).fontsize(size).bold())
if (size<7)
size++
else
size=1
}
}
</script>
And put this into <body> wherever you want :
Code:
<script>
uphilltext("THIS IS UPHILL TEXT")
</script>

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
01-02-2010, 07:02 AM
Post: #2
RE: Uphill Text Javascript
hehe thats cool nice job

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: