Hello, i request any php now
well i have more one images, and i put 3,4 or more images in my header logo, bat i need a rotate code to make this. Similar a flash.
Where is cod of my header logo
<img alt=“” src=“<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_73.jpg” />
i want put more one images rotate in this part.
Thanks
Hello, i request any php now
well i have more one images, and i put 3,4 or more images in my header logo, bat i need a rotate code to make this. Similar a flash.
Where is cod of my header logo
i want put more one images rotate in this part.
Thanks
There are several ways to go about this… Flash Java or PHP
I’m using this on my new site http://www.progressivered.com/cu3er/
My old site I just used simple php
<img src="<?php echo SITE_URL?>/lib/skins/valujet2/images/header_<?php echo(rand(1,3)); ?>.png"
Then in the image folder I had header_1.png header_2.png ect.
Artjom
April 22, 2010, 12:47pm
3
Hello, i request any php now
well i have more one images, and i put 3,4 or more images in my header logo, bat i need a rotate code to make this. Similar a flash.
Where is cod of my header logo
i want put more one images rotate in this part.
Thanks
I have 2 scripts rotation, one works at the time were taken:
1.gif - Night logo (00:00 - 07:00)
2.gif - Morning logo (07:00 - 12:00)
3.gif - daily logo (12:00 - 19:00)
4.gif - Evening logo (19:00 - 00:00)
and the other rotates, logo and extradite him gently, and not just appeared …
evening ladies script!
Kieran
April 22, 2010, 1:24pm
5
Ouch-double post there
@Piper338 Thanks so much for pointing me out to the 3D rotator, Its totally amazing!
Piper388 i put this
<img src=“<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/header_<?php echo(rand(1,2,3,4)); ?>.jpg”
but dont wokr, i have four images .jpg and put this images in my image skin folder.
Kieran
April 22, 2010, 5:30pm
7
Piper388 i put this but dont wokr, i have four images .jpg and put this images in my image skin folder.
Your skin name probably isn’t Obsessblue, make sure you change the url and your images are called:
header_1.jpg through header_4.jpg
Piper388 i put this but dont wokr, i have four images .jpg and put this images in my image skin folder.
Try something like this
<img src=“<?php echo SITE_URL?>/lib/skins/Your_skin_folder/images/header_<?php echo(rand(1,4)); ?>.jpg”
I have 2 scripts rotation, one works at the time were taken:
1.gif - Night logo (00:00 - 07:00)
2.gif - Morning logo (07:00 - 12:00)
3.gif - daily logo (12:00 - 19:00)
4.gif - Evening logo (19:00 - 00:00)
and the other rotates, logo and extradite him gently, and not just appeared …
evening ladies script!
English:How did you make the pictures appear at different times?
I am half donkey when it comes to pure HTML.
Could someone help me with a source code example?
Sincerely: Luiz Cortinhas
Portugues: Como voçe fez para as imagens aparecerem em horarios diferentes?
sou meio burrinho quanto se trata de HTML puro.
Alguem poderia me ajudar com um codigo fonte de exemplo?
Sinceramente: Luiz Cortinhas
Artjom
April 22, 2010, 8:47pm
10
Time rotate
logo_night.png - Night logo (00:00 - 07:00)
logo_morning.png - Morning logo (07:00 - 12:00)
logo_day.png - Daily logo (12:00 - 19:00)
logo_evening.png - Evening logo (19:00 - 00:00)
This is code:
<script type="text/javascript">
function shapka(n)
{document.write('<img border="0" src="<?php echo SITE_URL?>/lib/skins/YOUR_SKIN_NAME/images/'+n+'.png">');}
var h=(new Date()).getHours();
if (h > 23 || h <7) shapka('logo_night');
if (h > 6 && h < 12) shapka('logo_morning');
if (h > 11 && h < 19) shapka('logo_day');
if (h > 18 && h < 24) shapka('logo_evening');
</script>
Time rotate
logo_night.png - Night logo (00:00 - 07:00)
logo_morning.png - Morning logo (07:00 - 12:00)
logo_day.png - Daily logo (12:00 - 19:00)
logo_evening.png - Evening logo (19:00 - 00:00)
This is code:
English:
Thank Commander
I’ll try and post the results here ..
Portugues: Muito obrigado Comandante
Vou testar e Posto os resultados aqui..
Artjom
April 22, 2010, 9:48pm
12
I’ll wait for your feedback
I’ll wait for your feedback
English:Thank you master, you are really very good.
It worked perfectly
Portugues:Muito Obrigado comandante, voçe é realmente muito bom.
Funcionou com perfeição
Thomas
April 24, 2010, 11:00am
14
This is probably the most easiest one, I use it on my VA’s website, Just put it where you want the images to go and then it should work fine!
<script language=javaScript>
var j,d="",l="",m="",p="",q="",z="",list= new Array()
list[list.length]='<?php echo SITE_URL?>###.png';
list[list.length]='<?php echo SITE_URL?>###.png';
list[list.length]='<?php echo SITE_URL?>###.png';
list[list.length]='<?php echo SITE_URL?>###.png';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
document.write("<img src='"+list[j]+"'>");
</script>
You can see it in use here: http://members.pulseair.co.uk/ If you want to add more then just copy this line:
list[list.length]='<?php echo SITE_URL?>###.png';
Hope this helps,
Thomas.