Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

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

    • CommentAuthormista3
    • CommentTimeJan 31st 2006
     permalink
    Hey folks,

    I've just installed the lovely new version of FlashObject (http://blog.deconcept.com/flashobject/)

    Can anyone help a non-programmer work out how to redirect anyone with 800x600 resolution or below to a new popup window that doesn't have toolbars/statusbar?

    All others users would still be shown the flash content in the same page... but where should I add the javascript to detect the stage size... before FlashObject in it's own javascript block... or inside flashobject.js?

    Any input much appreciated :-D

    James
    • CommentAuthormista3
    • CommentTimeJan 31st 2006 edited
     permalink
    Update: I've tried adding this snippet before the FlashObject tag... but it is triggering popup blockers like crazy!? I also need to find a way to stop the swf from loading in the original page if the popup is triggered - at the moment it loads in both pages - doh!

    <script language="JavaScript">

    function myPopup() {
    window.open( "index2.php", "new", "status = 0, height = 790, width = 590, resizable = 0" )
    }

    var Wide = screen.width;

    if (Wide <= 800){
    myPopup();
    }


    OR should I maybe detect the stage size in Flash using actionscript, and get Flash to offer up a link to a bigger popup window if the stage is less than 800x600?

    (At least this way you would be sure that everyone had Flash installed properly before doing anything else)
Add your comments
    Username Password
  • Format comments as (Help)