vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A series of random images opposed to one (https://vborg.vbsupport.ru/showthread.php?t=99309)

PennylessZ28 10-25-2005 09:30 PM

A series of random images opposed to one
 
I have been using this for a random image

In my phpinclude

PHP Code:

$total "11";

$file_type ".gif";

$image_folder "images/random";

$start "1";

$random mt_rand($start$total);

$image_name $random $file_type

Then in the template I use the following code
HTML Code:

<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />
So I have been reading and the one thing I haven't seen is, a set of rotating images.

And I might be wording this wrong.

Lets say I create one banner that uses 3 images, we will call them A B C

What if I wanted to create A1 B1 C1 and then have them randomly rotate to A2 B2 C2 or A5 B5 C5

So far all I have manged to do is A1 B7 C3

I can't get them to to rotate in squence.

jugo 10-25-2005 09:40 PM

in that case you have to use arrays so that goes in order.


All times are GMT. The time now is 10:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete