• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would just find an simple ad rotating script, or for something more extravagent phpAdsNew which can be used to rotate ads around and display randomly.

    Then you just shove the code in your header.

    Thread Starter cyberworm

    (@cyberworm)

    Thanks. I guess that is another option I hadn’t considered.

    I’d still like to know if either of the ways I mentioned are valid though, so I could try to create my own. I was looking at some of the image rotation scripts that are out there and was thinking that one of those might work to control the random php page (with some modification).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Random PHP include for flash header’ is closed to new replies.