The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Moving images announcements

    Builderbox
    Builderbox
    Forumember


    Male Posts : 150
    Reputation : 1
    Language : English

    Moving images announcements  Empty Moving images announcements

    Post by Builderbox December 1st 2015, 5:58 pm

    Hi i want a moving images announcements like this :

    Moving images announcements  16ga2it

    My forum :

    Sir. Mayo
    Sir. Mayo
    Forumember


    Male Posts : 978
    Reputation : 90
    Language : English, Some french.
    Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

    Moving images announcements  Empty Re: Moving images announcements

    Post by Sir. Mayo December 2nd 2015, 3:15 pm

    Hello,

    This simple script should do the trick for you.
    Code:
    <script language="JavaScript">
    var i = 0;
    var path = new Array();
     
    // LIST OF IMAGES
    path[0] = " URL  ";
    path[1] = " URL  ";
    path[2] = " URL ";
    /** Copy each line bellow to add additionial images
    path[3] = " URL  ";
    path[4] = " URL  ";
    path[5] = " URL  ";
    path[6] = " URL  ";
    path[7] = " URL  ";
    path[8] = " URL  ";
    path[9] = " URL  ";
    path[10] = " URL  ";
    path[11] = " URL  ";
    */

    function swapImage()
    {
      document.slide.src = path[i];
      if(i < path.length - 1) i++; else i = 0;
      setTimeout("swapImage()",3000);
    }
    window.onload=swapImage;
    </script><img id="slide" style="width: 400px; height: 200px;" src="image_1.gif" />

    Add it to as a new announcement in your ACP.
    Make sure its at the top of your announcements list.
    To make it show your images replace URL in each line with the url, but make sure you leave the quote marks.
    Builderbox
    Builderbox
    Forumember


    Male Posts : 150
    Reputation : 1
    Language : English

    Moving images announcements  Empty Re: Moving images announcements

    Post by Builderbox December 2nd 2015, 7:07 pm

    It works but i dont have this buttons ^)^

    Moving images announcements  16ga2it

    Builderbox
    Builderbox
    Forumember


    Male Posts : 150
    Reputation : 1
    Language : English

    Moving images announcements  Empty Re: Moving images announcements

    Post by Builderbox December 4th 2015, 11:29 am

    Bump !
    avatar
    Guest
    Guest


    Moving images announcements  Empty Re: Moving images announcements

    Post by Guest December 5th 2015, 4:28 am


      Current date/time is September 23rd 2024, 11:25 pm