Random PHP include for flash header
-
Howdy.
I’m trying to add a random flash header into a site.
There’s one of two ways I am thinking this would work….
One way would be to create multiple php pages to incorporate all of the necessary flash scripting and links and then have a php_include in the header.php to a choice of those pages to incorporate into the header.
The other, would be to leave all of the scripting for the flash element in place and put some sort of variable inside the script (that defines the source) to call a random flash file. I’m just not sure that I can put a php variable inside the javascript without breaking it.
Could someone give me some advice as to which way (or another way) that would be appropriate and a link to sample code or a point in the right direction that could help me figure this out?
- The topic ‘Random PHP include for flash header’ is closed to new replies.