SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    martinez, ca
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    flash intro to main webpage

    available programs: flash mx 2004 pro, dreamweaver mx 6.0, photoshop 7.0
    php nuke 7.3
    i have created a flash intro to go before my website (www.equity-consulting.com), i would like to know how to get that in my FTP so that it comes up frist. How i mean by do i need to take that flash file and place it into a html file and then what do i call it or name the file so that it will be loaded first.. again, i am running a php-nuke database. any suggestions would be so much help..

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2002
    Location
    Texas
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can try using cookies or sessions in PHP to see if the flash intro has been loaded.

    If you want it to load no matter what page the user tries to navigate to, edit mainfile.php. If you just want it to load it if they user tries to go to index.php, edit that file instead.

    You can try putting this at the top of mainfile.php or index.php (depending on your needs)...

    PHP Code:
    if (empty($_COOKIE['flash_intro'])) {
        
    header('Location: path_to_flash_intro.php');
        exit;

    ...and somewhere in the file containing the flash file put...

    PHP Code:
    // set the cookie to expire in a year
    setcookie('flash_intro'1, (60 60 24 365)); 
    This will redirect the user to the flash intro if they haven't viewed it, or will ignore it if they have. Hope that helps.
    Last edited by michin namja; Sep 27, 2004 at 10:12.

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Location
    martinez, ca
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    got it up and running, sorry i have not checked this.. thanks so much for the code..

  4. #4
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure you include a 'Skip Intro' button - nobody watches them
    Lats...


Bookmarks

Posting Permissions

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