Jump to content

Recommended Posts

Posted

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 :D

Posted

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 :D

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.

Posted

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 :D

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!

Posted

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

Posted

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"

Posted

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 :rolleyes:

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

Posted

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>

Posted

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..

Posted

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. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...