Gabriel Fernandez Posted April 22, 2010 Report Share Posted April 22, 2010 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 Quote Link to comment Share on other sites More sharing options...
piper338 Posted April 22, 2010 Report Share Posted April 22, 2010 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. Quote Link to comment Share on other sites More sharing options...
Artjom Posted April 22, 2010 Report Share Posted April 22, 2010 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! Quote Link to comment Share on other sites More sharing options...
Artjom Posted April 22, 2010 Report Share Posted April 22, 2010 Sorry for double post! Quote Link to comment Share on other sites More sharing options...
Kieran Posted April 22, 2010 Report Share Posted April 22, 2010 Ouch-double post there :/ @Piper338 Thanks so much for pointing me out to the 3D rotator, Its totally amazing! Quote Link to comment Share on other sites More sharing options...
Gabriel Fernandez Posted April 22, 2010 Author Report Share Posted April 22, 2010 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. Quote Link to comment Share on other sites More sharing options...
Kieran Posted April 22, 2010 Report Share Posted April 22, 2010 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 Quote Link to comment Share on other sites More sharing options...
piper338 Posted April 22, 2010 Report Share Posted April 22, 2010 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" Quote Link to comment Share on other sites More sharing options...
RIco Linhas Virtuais Posted April 22, 2010 Report Share Posted April 22, 2010 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 Quote Link to comment Share on other sites More sharing options...
Artjom Posted April 22, 2010 Report Share Posted April 22, 2010 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> Quote Link to comment Share on other sites More sharing options...
RIco Linhas Virtuais Posted April 22, 2010 Report Share Posted April 22, 2010 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> English: Thank Commander I'll try and post the results here .. Portugues: Muito obrigado Comandante Vou testar e Posto os resultados aqui.. Quote Link to comment Share on other sites More sharing options...
Artjom Posted April 22, 2010 Report Share Posted April 22, 2010 I'll wait for your feedback Quote Link to comment Share on other sites More sharing options...
RIco Linhas Virtuais Posted April 23, 2010 Report Share Posted April 23, 2010 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 Quote Link to comment Share on other sites More sharing options...
Thomas Posted April 24, 2010 Report Share Posted April 24, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.