![]() |
|
|||||||
| phpBB3 Manuals and Guides You will find out how to admin a forum, change forum style and many other guides. Other online helps: http://www.phpbb.com/support/documentation/3.0/, http://www.phpbb.com/support/tutorials/3.0/, http://www.phpbb.com/kb/3.0/. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
Here is a fun BBCode for an animated window titler BBCode Code:
[animated]{TEXT}[/animated]
Code:
<script type="text/javascript">
var message="{TEXT}" //specifys the title
var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds.
i="0" //declares the variable and sets it to start at 0
var temptitle="" //declares the variable and sets it to have no value yet.
var speed="150" //the delay in milliseconds between letters
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
</script>
Code:
[animated]put your text there[/animated] and in just one forum of your choise (in a forum description), but not in a sub-forum! Any doubts, just ask me! Last edited by xupaulo : 03-18-2011 at 03:26 PM. |
|
||||
|
Yes, it's cool.
I think you're very good at javascript. Ajax, JQuery or Mootool are something I must use frequently. Thanks you.
__________________
Best regards, The ForumMate.com Support Team. ---------------------------------------------------------------------------------------------------- Free phpBB3 Forum http://www.forummate.com Free PHP-Nuke Hosting http://www.freephpnuke.org, http://www.greatnuke.com ---------------------------------------------------------------------------------------------------- Thanks you for choosing our service ![]() |
|
|||
|
Thanks tanduy2506
Well, I am not an expert on Java, but... My work is to adapt htlm, Javascript or other language codes in BBCode for phpbb3 platform I forgot to put an example of the above one: http://claroquenaosomosbroncos.freef...216&p=476#p476 Last edited by xupaulo : 03-18-2011 at 11:32 AM. |
|
|||
|
I like that one xupaulo
It might be wise to just edit your post and explain that the text here [animated]texthere[/animated] needs to be changed (to what ever) when its pasted in the forum description. I made that mistake myself and had text here scrolling across the tab |
|
|||
|
Yeah of course it need to be changed... My fault
(Post edited) As Paul says, you guys need to put your wanted text between the tags [animated][/animated] to appear in the window tab. Last edited by xupaulo : 03-18-2011 at 03:16 PM. |