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.

Moving images announcements

View previous topic View next topic Go down

Moving images announcements

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

Hi i want a moving images announcements like this :



My forum :

avatar
Builderbox
Forumember

Male Posts : 150
Reputation : 1
Language : English

http://pwnyswtor.rpdforum.com/

Back to top Go down

Re: Moving images announcements

Post by Sir. Mayo on 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.
avatar
Sir. Mayo
Forumember

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

http://sir-mayo.forumotion.com/

Back to top Go down

Re: Moving images announcements

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

It works but i dont have this buttons ^)^



avatar
Builderbox
Forumember

Male Posts : 150
Reputation : 1
Language : English

http://pwnyswtor.rpdforum.com/

Back to top Go down

Re: Moving images announcements

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

Bump !
avatar
Builderbox
Forumember

Male Posts : 150
Reputation : 1
Language : English

http://pwnyswtor.rpdforum.com/

Back to top Go down

Re: Moving images announcements

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


Guest
Guest


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