Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    ... or if the flashplayer is too early a version.

    Anyone know of any way of presenting different messages depending on the above?

    If the user doesn't have javascript enabled updating the Flash player won't change anything at all so it would be better to have message eg: You do not have javascript enabled so Flash content cannot play on this page.
    • CommentAuthorphilip
    • CommentTimeFeb 1st 2008 edited
     
    you can toy with the "noscript" element to show custom messages without requiring JavaScript. i've used this successfully:


    <div id="flashcontent">

    <p>This music player requires Flash Player<noscript> and
    JavaScript</noscript>. It appears you don't have a current
    version of Flash Player installed <noscript>&mdash;
    <em>this is probably because you have JavaScript disabled</em>
    </noscript>. Please <noscript>enable JavaScript, then reload
    the page.<br/><br/>If you continue to see this message,
    please </noscript><a href="(adobeURL)">install the free
    Adobe Flash Player</a> to use this music player.</p>

    </div>


    you can also use SWFObject to give an alert or perform a DOM edit if the wrong version of Flash is found:


    var so = new SWFObject("player.swf", "playerSwf", "550", "400", "8", "#FFFFFF");
    if(!so.write("flashcontent")){
    var warning = "Your version of Flash is too old. Please update [optional link here]";
    alert(warning);
    document.getElementById("flashcontent").innerHTML = warning;
    }