Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
  1. #1
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    how do i go about creating =html links to open multiple flash movies in the same html page..

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    There are two ways I can think of ...

    Without refreshing the page, you could put the flash movie
    inside an "inline frame" <iframe> (not a frame <frame>, but <iframe>).

    If you don't mind having the page refresh, you would use a PHP include to
    place the video anywhere on the page (perhaps inside a <div> section).

    Maybe there's a Javascript method also, but you would have to decide
    whether or not you want to use Javascripting?


  4. #3
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    can you explain the php process ..

    heres the page

    http://www.kreativ.cn/portfolio.html

    and at the top i want to click a html link .. the port categories and it just swap .swf on that page

  5. #4
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    i found this way mlseim , what do you think about this

    http://www.sitruc.com/cow/iframe/change_two.html

  6. #5
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    You'll get some people who will scoff at <iframes>, but I use them
    all the time, and have never had problems with SEO.

    In your case, they are very OK to use because they don't contain
    content that is essential for your page - relationship with keywords and content.

    You're placing various videos into them, which is exactly the intent.

    This page not found:
    http://www.kreativ.cn/portfolio/

    With PHP, the idea is that you don't use <iframes>, but instead just
    use a PHP include to insert the proper video into an area of your page.

    With PHP, you also need to change the extension of your page from
    .html to .php

    Based on a variable in your link, the PHP script would open (or create) the
    specific video file that you want displayed. If no variable was given (default),
    a default video would be loaded, or you could display a random video each
    time the page loads. PHP includes or PHP dynamic page generation simply
    uses PHP to create the HTML for you, so it could be anything and any video
    you want displayed. If you happen to have many videos in a database, PHP
    would be the best thing to use, as it could querie the database and create
    a list of links for you automatically. You wouldn't have to edit your HTML code
    each time you add videos.


  7. #6
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    i have no clue where to begin w/ creating the php includes though.. just to change the file extension and <php?

    do i create a variable for each .swf?

  8. #7
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    You do change the file extension to .php

    (I assume your webhost allows PHP ... most of them do).

    QUESTIONS:
    How many videos do you have?

    Will there be a link for each one?

    Do you want the links to be created automatically
    so you don't have to edit your page all the time?


    =======
    Some ideas ...

    Put all of your videos into one directory called "videos".
    Then, in your main directory, where your PHP is located,
    create a text file called "videos.txt" ... that looks like this:

    video1.swf|title of video|size of video|any other info
    video2.swf|title of video|size of video|any other info
    video3.swf|title of video|size of video|any other info
    video4.swf|title of video|size of video|any other info

    This is a simple flat-file database with the name of the .swf file,
    the title, size, and any other info .. separated by pipes |

    The PHP script will read this file and automatically create your links.

    How you display them (using an inline frame or not) ... let us know that too.
    You can still use an inline frame ... it's up to you.

    ====

    keep in mind that you will not be able to view your PHP page offline, because it
    needs the server to execute PHP (unless you have your own server). So, upload
    the PHP page to your webhost to view it and test it.

    Once you have an example to show us with one video, we can show you the PHP
    script part to create the list of videos.


    .


  9. #8
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    i have apache to test the php and my server does support it.. its set on linux

    ill setup the .txt file soon as i get home..

    so i use a iframe to change one from one video to another? and the php script will automatically create links for when i add a video, correct?

  10. #9
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    how do u link movies w/ the php route?

  11. #10
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    msleim .. i dont htink ill need the script to pull movies from a database and automatically generate a link... b/c im only going to have around 5 .swf galleries.. so maybe just best to do an iframe and have 5 links that display in it? that swap out.. what do u think?


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:27 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com