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.

Banner Scroll?

View previous topic View next topic Go down

Solved Banner Scroll?

Post by VelvetMoon on January 1st 2012, 9:06 pm

Hello

I'm not sure how to explain, but I want the forum banner to scroll different banners?
Forum Link (in case): http://www.AnimeCookies.nstars.org

Here is a example: http://www.anime-forums.com
They have a revolving banner, displaying a different one each time.

Is this possible for Forumotion?

Thanks ^^


Last edited by VelvetMoon on January 2nd 2012, 3:07 pm; edited 1 time in total

VelvetMoon
Forumember

Posts : 33
Reputation : 1
Language : English

Back to top Go down

Solved Re: Banner Scroll?

Post by Guest on January 1st 2012, 9:13 pm

Yes, it's possible. Read this tutorial, it's simple to understand. Just use first code in your Javascript management. Smile

Guest
Guest


Back to top Go down

Solved Re: Banner Scroll?

Post by VelvetMoon on January 1st 2012, 9:43 pm

Thanks, but where is the tutorial?

VelvetMoon
Forumember

Posts : 33
Reputation : 1
Language : English

Back to top Go down

Solved Re: Banner Scroll?

Post by VelvetMoon on January 1st 2012, 10:06 pm

I can't read that... >.>

VelvetMoon
Forumember

Posts : 33
Reputation : 1
Language : English

Back to top Go down

Solved Re: Banner Scroll?

Post by Skhectic28 on January 1st 2012, 10:10 pm

To get the scrolling message go to,
General -> Messages and email -> Announcements

Create the announcement message and pick your scrolling options.
http://gyazo.com/9eb5a37dd9d0631bb0f0e297c7f84527


Skhectic28
Forumember

Posts : 156
Reputation : 4
Language : English

http://anime-alliance.forumotion.co.uk/

Back to top Go down

Solved Re: Banner Scroll?

Post by Guest on January 2nd 2012, 9:32 am

@VelvetMoon wrote:I can't read that... >.>
Of course you can't. It's hard to try. Just kidding. Mr. Green As I said add in your Javascript management (Administration Panel => Modules => HTML & JAVASCRIPT => Javascript codes management => Create a new javascript) and the first code from forumactif's tutorial. Don't forget to enable javascript on your forum. Like this: Enable Javascript code management : Yes. Click Save. Smile

Guest
Guest


Back to top Go down

Solved Re: Banner Scroll?

Post by VelvetMoon on January 2nd 2012, 2:08 pm

Thanks! I'll try it now. :DD

EDIT: One last thing - where exactly in the code do you insert the banner image URLs?

VelvetMoon
Forumember

Posts : 33
Reputation : 1
Language : English

Back to top Go down

Solved Re: Banner Scroll?

Post by Guest on January 2nd 2012, 2:19 pm

So, the code is:
Code:
$(function() {
 
  var a = ["http://adresse_image_1", "http://adresse_image_2", "http://adresse_image_3"];
 
  $("#pun-logo img,#i_logo,#logo img").attr("src", a[Math.floor(Math.random() * a.length)])
 
});
Replace:
http://adresse_image_1
http://adresse_image_2
http://adresse_image_3

Guest
Guest


Back to top Go down

Solved Re: Banner Scroll?

Post by VelvetMoon on January 2nd 2012, 3:06 pm

The code worked. Thank you for your help. ^^

VelvetMoon
Forumember

Posts : 33
Reputation : 1
Language : English

Back to top Go down

Solved Re: Banner Scroll?

Post by Guest on January 2nd 2012, 3:15 pm

Welcome. Smile

Guest
Guest


Back to top Go down

Solved Re: Banner Scroll?

Post by Sanket on January 2nd 2012, 7:35 pm

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

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