PCS Game Hosting
 
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Private MessagesLogin, Check Messages    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search



Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » Content management system » Script: different image to each page refresh
 View previous topic :: View next topic  
Author Message
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: Nov 25, 2017
Age: 36
Posts: 1131
Location: Milan
Italy.png 
Reputation: 4709
votes: 6
Medals: 6 (View more...)
Super Dedicated User (Amount: 1)

Status: Offline
PostPosted: Thu Mar 01, 2012 9:53 am
PostPost subject: No icon Script: different image to each page refresh
Reply with quote

Code:
<script type="text/javascript"><!--
var ran=new Array();

ran[0]='<a href="LINK FORUM"><img src="LINK LOGO1"> </a>';
ran[1]='<a href="LINK FORUM"><img src="LINK LOGO2"> </a>';
ran[2]='<a href="LINK FORUM"><img src="LINK LOGO2"> </a>';

var id=Math.round(Math.random()*(ran.length-1)); document.write(ran[id]);
//--></script>


Then you have to change this part by adding your image code or content:

Code:
<a href="LINK FORUM"><img src="LINK LOGO1"> </a>
<a href="LINK FORUM"><img src="LINK LOGO2"> </a>
<a href="LINK FORUM"><img src="LINK LOGO2"> </a>


Also you can add others, inserting ran[3], then 4, 5, etc. etc.

cheers

Teo.


Game Hosting: www.proclanservers.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Sponsor
Smiley face
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index »  Content management system
 
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts block - Teo No Cheat Clan 6 Teo 3365 Tue Mar 05, 2013 2:19 am
jl-loe- View latest post
No new posts Block: Teo Highest Rated Articles 0 Teo 1333 Wed Jan 16, 2013 5:45 pm
Teo View latest post
No new posts Teo's mp_shop_ctf.ent - new shop map 9 Teo 6021 Tue Nov 20, 2012 4:35 pm
darkraider View latest post
No new posts Teo Mod v.4 7 Teo 4679 Wed Sep 19, 2012 5:25 pm
orkan View latest post
No new posts Teo which programs u use for make themes? 1 MacTavishXx 2909 Wed May 02, 2012 5:23 pm
Teo View latest post
 




Back to Top

SOF2.ORG Multiplayer Community © 2017 All times are UTC + 2 Hours [DST enabled]
 

Copyright ©