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 :


Builderbox
Forumember

Male Posts : 149
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.

Sir. Mayo
Forumember

Male Posts : 963
Reputation : 85
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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 ^)^




Builderbox
Forumember

Male Posts : 149
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 !

Builderbox
Forumember

Male Posts : 149
Reputation : 1
Language : English

http://pwnyswtor.rpdforum.com/

Back to top Go down

Re: Moving images announcements

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


@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.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