Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New image/flash movie everytime you go to page?

    Hi .

    New to this forum. Not quite sure where this question would fall into, category-wise.

    I'd like to create a web page that has a flash movie in it.

    But the catch is this: Everytime you'd go to this web page, I'd like it to be coded in such a way that it would play at random one of a certain amount of flash movies.

    So is this done in FlashMX? JavaScript? I have DreamweaverMX if that can help....

    If anyone can point me in the right direction, I'd greatly appreciate it.

    Richtoon

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A server side option would probably be best as javascript can be disabled.

    PHP, if your host supports it, would easily be able to do such a thing.

    Have a look at this random image script -

    http://www.totallyphp.co.uk/scripts/random_image.htm

    You could easily modify it so instead of an image, it does the flash file like so -

    Instead of -

    echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";

    You could have -

    echo "<embed src=\"$image_folder/$image_name\" />";

    (I can't remember exactly how to embed a flash file (should you use Object instead of Embed?), but you get the idea I hope! )

  • #3
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey mark87,

    I'm gonna contact my host right after this.

    This might do the trick! if its supported.

    I am a little new to this so I'll have to baby step my way through it all but hopefully this is the first step.


    I'll post it here as soon as I know that the host can handle PHP. Got a phone call to make.
    Thanks,
    Richtoon

  • #4
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I called and they seem to think that anything will work... But they did not know what PHP was....gulp. Will just have to write up something quick and see if it works.


    Richtoon

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do a quick php test, but if you are paying for hosting, you will most probably be able to use it.

    Save the following a .php file, upload and view it. If you see a lot of info, then PHP works!

    <?php
    phpinfo();
    ?>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •