HomeHome  
  • WelcomeWelcome  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Random banner at each access

    avatar
    • Administrator

        Reputation : 312
        Registered on : 2012-02-22
        Posts : 2315
        School of codes courses: coming soon
      Random banner at each access


       

      Description

      This tutorial will allow you to have a random banner every time you load your forum pages


      Demo



      Code

      You have to reply to this topic to see the code (avoid Flood)


      General Informations

      Code creator: Ange Tuteur
      Code tested on:  All browsers -  All forum versions
      Checked by: Niko
      Extra infos: We set a range from 0 - 4, but not including 4. So, Math.floor(Math.random() * 4) will have a chance of 0, 1, 2, and 3.

      Increase the value of four and add more conditions to display a wider range of banners.

      Also replace /img.gif by the URL of your images.

      Codes last updated on 2014-06-30 by Niko

      avatar
      • **


          Reputation : 1
          Registered on : 2014-05-18
          Posts : 24
          Love Fmcodes
        Thanks to the author

        avatar
        • **


            Reputation : 0
            Registered on : 2014-06-02
            Posts : 24
            Love Fmcodes
          I like Random banner. Thank you.

          avatar
          • **


              Reputation : 0
              Registered on : 2014-07-18
              Posts : 15
              Love Fmcodes
            COOOOL

            avatar
            • Support Moderator

                Reputation : 8
                Registered on : 2014-03-11
                Posts : 299
                Helping on the forum
              @neos wrote:COOOOL
              Do not post in all caps!



              FMCodes Support Moderator

              I am very active now! Feel free to PM me anytime.
              avatar
              • ***


                  Reputation : 0
                  Registered on : 2014-08-20
                  Posts : 25
                  Love Fmcodes
                thankssssss

                avatar
                • **


                    Reputation : 1
                    Registered on : 2014-06-10
                    Posts : 11
                    Love Fmcodes
                  Gonna check this one out

                  avatar
                  • ***


                      Reputation : 0
                      Registered on : 2013-08-28
                      Posts : 31
                      LG
                    Absolutely cool!

                    avatar
                    • I'm a new member :)


                        Reputation : 0
                        Registered on : 2014-07-05
                        Posts : 6
                        Love Fmcodes
                      Like

                      avatar
                      • **


                          Reputation : 0
                          Registered on : 2014-06-18
                          Posts : 19
                          Love Fmcodes
                        Thanks :D

                        avatar
                        • **


                            Reputation : 0
                            Registered on : 2014-11-28
                            Posts : 17
                            Love Fmcodes
                          nice

                          avatar
                          • ***


                              Reputation : 1
                              Registered on : 2014-11-17
                              Posts : 32
                              Love Fmcodes
                            nice work, thanks

                            avatar
                            • **


                                Reputation : 1
                                Registered on : 2015-01-16
                                Posts : 11
                                Love Fmcodes
                              thank you

                              avatar
                              • ***


                                  Reputation : 0
                                  Registered on : 2016-04-21
                                  Posts : 46
                                  Love Fmcodes
                                thanks

                                avatar
                                • **


                                    Reputation : 0
                                    Registered on : 2016-07-19
                                    Posts : 17
                                    Love Fmcodes
                                  Good

                                  avatar
                                  • ***


                                      Reputation : 0
                                      Registered on : 2016-08-10
                                      Posts : 46
                                      Love Fmcodes
                                    Gonna check this one out


                                    YOUR BANNER HERE
                                    728x90
                                    DMCA.com Protection Status
                                    © PunBB | Contact | Report an abuse