see live demo!

Not signed in (Sign In)

Categories

 

buy Monoslideshow

via PayPal / credit card

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

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthornusbaum
    • CommentTimeOct 7th 2009
     permalink

    I'm allowing the use of keystrokes to control monoslideshow by calling JavaScript methods. This works great until I use the controller to pause or go to full screen, after this monoslideshow no longer responds to method calls. This could be a problem a problem with my javascript, but I've tested the swf variable and it's not getting lost or reset.

    <script type="text/javascript"> var swf; var flashvars = { callBackFunction: "initializeMonoslideshow", showLogo: "false", showRegistration: "false", dataFile: "<?= SITE_PATH.'slides/'.$id.'/'.$index ?>" }; var params = { allowFullScreen: "true", allowScriptAccess: "always" }; var attributes = { bgColor: "191919", id: "monoslideshow", name: "monoslideshow" }; swfobject.embedSWF("<?= SITE_PATH ?>monoslideshow.swf", "slideshow", "750", "500", "9", "<?= SITE_PATH ?>expressInstall.swf", flashvars, params, attributes); function pageNav(e) { if (!e) e = window.event; if(!swf) { alert("WTF?"); } if (e.keyCode == 37) { swf.previousImage(); } if (e.keyCode == 39) { swf.nextImage(); } if(e.keyCode == 32) { swf.togglePause(); } } function initializeMonoslideshow() { swf = document.getElementById("monoslideshow"); document.onkeyup = pageNav; } </script>

    My web site is here if you want to see how it works (and how it doesn't).

    • CommentAuthornusbaum
    • CommentTimeOct 26th 2009
     permalink

    I'm still struggling with this... does anybody have any thoughts?

    • CommentAuthorJarredja
    • CommentTimeOct 26th 2009
     permalink

    Nothing of real value, but if you click anywhere outside of the slideshow, the functionality returns. Clicking inside the show also returns the control but requires the clickee to back up to return to the main page. Perhaps this can stir some creative thoughts for you? Would you be willing to hide the control bar and lose the fullscreen function? or add buttons with javascript outside of the slideshow to have the controls? Just ideas.

    • CommentAuthornusbaum
    • CommentTimeNov 6th 2009
     permalink

    Thank you for the reply... I had almost given up.

    I would be willing to lose the control bar because I can find a way to duplicate that with buttons, but I really like the fullscreen function and hate to let that go.
    But, you noticed that control is returned when clicking anywhere outside the slideshow which is a symptom of the problem I had not noticed before. Thank you.

    • CommentAuthorJarredja
    • CommentTimeNov 7th 2009
     permalink

    Another idea.

    Put all of the control buttons in javascript outside of the viewport and remove them from the control bar. However, leave the fullscreen icon by itself in the control bar. This would give you the fullscreen for that picture and the following pictures (although they would lose the arrow function in fullscreen) but once they clicked on the picture, it would take them to the link you have set up.

monokai logo © 2009 Monokai, all rights reserved. Buy Monoslideshow.