vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Heres one for you experts out there:P (https://vborg.vbsupport.ru/showthread.php?t=71074)

Blam Forumz 10-27-2004 07:24 PM

Heres one for you experts out there:P
 
Ello..again :nervous:

No, I have a Flash clock on my site (vBa CMPS - but this question isnt to do with CMPS its to do with html so i'll ask here :P)

How would I go about showing a random flash clock on each page refresh?

I have 10 differnet flash clocks here, just itching to be used

thanks

Blam Forumz 10-28-2004 05:36 PM

Bump >_<

Xenon 10-28-2004 05:46 PM

hmm, why not using the rand function of php and depending on it's value choose another html code?

like some are using for their title image and so on.

Blam Forumz 10-28-2004 05:53 PM

Quote:

Originally Posted by Xenon
hmm, why not using the rand function of php and depending on it's value choose another html code?

like some are using for their title image and so on.

Erm...urgh..hmm... iin english please :ermm:

Xenon 10-28-2004 06:01 PM

i mean something like that:

PHP Code:

switch(intval(time() / 2) % 3)
{
    case 
0:
    echo 
'htmlcode for flashbannerone';
    break;
    case 
1:
    echo 
'htmlcode for flashbannertwo';
    break;
    case 
2:
    echo 
'htmlcode for flashbannerthree';
    break;



Blam Forumz 10-28-2004 06:09 PM

Oh I see :| I have no clue where to put that though, any advice? thanks

Xenon 10-28-2004 07:15 PM

i'd suggest phpinclude_start for that

it's just to show you the technic, it may need a few little changes to get exactly what you want :)

Andreas 10-28-2004 07:18 PM

The "Technik"? :D

Xenon 10-28-2004 07:31 PM

grml....

Auf deutsch schreib ich dafür dann immer Technic ^^

Andreas 10-28-2004 07:32 PM

Hehe, just kidding ;)


All times are GMT. The time now is 01:43 PM.

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.03071 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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