The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Script For Homepage Message?

View previous topic View next topic Go down

Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 5:28 pm

Sorry if I put this in the wrong category, I wasn't sure whether to put it here or in Design & Appearance. Anyway so on the homepage message I've seen forum's where the message scrolls up from the bottom of the border, stays in place for a few seconds so you can read it, then it scrolls up to the top. Then a new message scrolls up and the cycle continues like that. Does anyone know how to do this?

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by SLGray on May 10th 2013, 6:58 pm

Are you exactly referring to the announcements?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36642
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 7:04 pm

No, the homepage message in the AP. It's like a border similar to a description with text in it on the homepage.

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by Ultron's Vision on May 10th 2013, 7:10 pm

You can add simple effects with the
Code:
[updown]
BBCode and with additional JavaScript timeout functions, yes.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 7:13 pm

So just type
Code:
[updown][/updown]
For each message?

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by Ultron's Vision on May 10th 2013, 7:18 pm

Well, I guess a <marquee> tag would do the job.

I have no idea how you want this to look like, would be great if you provided a source.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 7:19 pm

I'm afraid I can't find one as the site I saw it on closed down, but I'll try that code.

EDIT: It worked but all of the messages are displayed at once. http://cpdb.forummotions.com/

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by Ultron's Vision on May 10th 2013, 7:25 pm

So you want to have it like that with each message sliding in one after another with a few seconds delay in between?

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 7:27 pm

Yes please.

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by Ultron's Vision on May 10th 2013, 9:15 pm

You could try inserting this into the homepage message field:

Code:
<marquee style="display: none;" direction="up">Your text goes here.</marquee>
<marquee style="display: none;" direction="up">More text here.</marquee>
<marquee style="display: none;" direction="up">Last text here.</marquee>
<script type="text/javascript">
   function marq(){
      var marquee = document.getElementsByTagName("marquee");
      for(var i = 0; i < marquee.length; i++){
         if(i == 0) {
            marquee[0].style.display = "block"; hidemarq();
         } if(i == 1) {
            marquee[1].style.display = "block"; hidemarq();
         } if(i == 2) {
            marquee[2].style.display = "block"; hidemarq();
      } }
      function hidemarq(){
         setTimeout(function marquee(){
            marquee[i].style.display = "none";
         },10000);
   }
marq();
</script>


Last edited by Ultron's Vision on May 11th 2013, 1:09 pm; edited 2 times in total

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 9:35 pm

Didn't work, it doesn't display any message just a border :/

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by Ultron's Vision on May 10th 2013, 10:08 pm

Oh yeah, I forgot to add something there.

I edited my post, try it again.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 10th 2013, 10:29 pm

It still didn't work :/ thanks for trying and being persistant by the way :3

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

Re: Script For Homepage Message?

Post by Ultron's Vision on May 11th 2013, 1:07 pm

I looked through my syntax and found another error.
I'll give it this last try u_u

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Script For Homepage Message?

Post by CreepyPastaDB on May 11th 2013, 3:02 pm

Sorry still not working, thanks a bunch though!

CreepyPastaDB
New Member

Posts : 16
Reputation : 1
Language : English, Japanese

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum