Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Automatsko mjenjanje slika na siteu?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Tomei



Joined: 09 Dec 2007
Posts: 53

PostPosted: 15.10.2008 14:06    Post subject: Automatsko mjenjanje slika na siteu? Add user to your forum ignore list Reply with quote

Kako izvest da napravim jedno 3 verzije jednog headera koje se mjenjaju na refresh / pnovni ulaz na stranice?
Back to top
View user's profile Send private message
ITS



Joined: 06 Feb 2008
Posts: 377

PostPosted: 15.10.2008 14:35    Post subject: Add user to your forum ignore list Reply with quote

google:

http://www.webwasp.co.uk/tutorials/042/index.php
Back to top
View user's profile Send private message Send e-mail
Tomei



Joined: 09 Dec 2007
Posts: 53

PostPosted: 15.10.2008 14:38    Post subject: Add user to your forum ignore list Reply with quote

E ali ne flash, obični jpg
Back to top
View user's profile Send private message
ITS



Joined: 06 Feb 2008
Posts: 377

PostPosted: 15.10.2008 14:40    Post subject: Add user to your forum ignore list Reply with quote

možda ovo...

http://www.ahfb2000.com/webmaster_help_desk/showthread.php?t=4996
Back to top
View user's profile Send private message Send e-mail
Tomei



Joined: 09 Dec 2007
Posts: 53

PostPosted: 15.10.2008 15:06    Post subject: Add user to your forum ignore list Reply with quote

E hebi ga sad...u Chrome radi, u Mozilli ne... Rolling Eyes


Code:

<script type="text/javascript">
var aryimages = new Array('img/logo1.png', 'img/logo2.png', 'img/logo3.png');
someimage.src = aryimages[Math.floor(Math.random() * aryimages.length)];
</script>
</html>
Back to top
View user's profile Send private message
ip00



Joined: 12 Sep 2008
Posts: 2

PostPosted: 15.10.2008 17:22    Post subject: Add user to your forum ignore list Reply with quote

Ako ti na serveru radi PHP mislim da ti je najjednostavnije ovako:

Code:
<img src="foto_<?php echo(rand(1,4)); ?>.jpg" width="400px" height="20px" alt="Foto" />


foto_<?php echo(rand(1,4)); ?>.jpg

Datoteke sa slikama ti se zovu: foto_1.jpg, foto_2.jpg, foto_3.jpg...itd. Ovisno o tome koliko imas slika mijenjas vrijednost u zagradi, ako ih imas 4 onda je (1,4) ako ih imas vise stavis broj koliko ih imas.

Stvar je jednostavna, ali je i ogranicena, nema nikakvih dodatnih mogucnosti i sve ti slike moraju biti iste velicine, sto u headeru uglavnom i jesu.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
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


Powered by phpBB © 2001, 2005 phpBB Group