SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    733
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with a Fallback solution

    I'm just getting started with a jQuery script that is a video gallery/slider that plays videos when you select the thumbnail image, but it doesn't play in IE8. I get this across the player screen:
    "Browser does not support the video tag", via IE8.

    I'm trying this:

    Code:
    <script>
    var ie = (function(){
        var undef,
            v = 3,
            div = document.createElement('div'),
            all = div.getElementsByTagName('i');
        while (
            div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
            all[0]
        );
        return v > 4 ? v : undef;
    });
    if (ie <9){
    //this is where you would load your fallback content
    but I need help with the next fallback part, which I can add to this post, if someone's interested in helping me.

    Thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,682
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by ChrisjChrisj View Post
    I'm just getting started with a jQuery script that is a video gallery/slider that plays videos when you select the thumbnail image
    I would suggest that you take a look at a library that's dedicated to providing video playback with good cross-browser support, such as video.js
    It works back to at least IE8 that I can tell.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •