SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    check for flash in browser

    Hi..


    i have posted this thread in javascript but i want to know whether it is possible in PHP

    i want to check whether flash is in the browser id if so i want to load a flash if not i want to load a image that id jpg ...
    Where there is a will there is a way
    ArunKumar

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    You can do it with HTML alone, so there is no need for either javascript or PHP

    Code:
    <object type="application/x-shockwave-flash" data="my_movie.swf" width="?" height="?"><param name="movie" value="my_movie.swf" /><img src="" alt="" width="" height="" /></object>
    Just set the width height and paths to meet your needs, if the user does not have flash installed it will display the alternate content. In this case it is an image. You can place anything you want in there and if flash is not installed it will display the other

    Hope it helps

  3. #3
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello..

    Thanks for you reply here is my code how can i do that

    <table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"10\" onClick=\"showflash();\">\n";
    <tr>
    <td>
    <object classid=\"clsid27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"432\" height=\"430\">
    <param name=\"movie\" value=\"maps.swf\">
    <param name=\"quality\" value=\"high\">
    <embed src=\"".$path."maps.swf\" width=\"432\" height=\"430\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>
    </object>
    </td>
    </tr>
    </table>
    Where there is a will there is a way
    ArunKumar

  4. #4
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks i got it and worked
    Where there is a will there is a way
    ArunKumar


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
  •