Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Evolution
  • In Development
  •  
  • Fisheye / Dock Menu#

  • 4310
    2,276
    Snippets : eForm 1.4.4.7 with SMTP & PMS's security fixes | PHC Results | EasyNewsletter from CSV

    Wiki Articles : Custom DB table to placeholders | Manager Locked Out?

    Websites : Work - U.K. based MODx development  |  Hobby - Free interactive education resources for teaching 4 - 11 year olds

    Hosting : One Smart Host - Professional MODx hosting 

    bunk58 Reply #1, 4 years, 5 months ago

    Reply
    • Link to this post#1
    Here is a simple port of a Fisheye or Dock menu.
    It is meant to be fairly quick and easy to get up and running so has a limited set of additional features.
    Aimed at smaller sites and or users who aren't confident with template chunks?
    See a working demo in two level mode at http://www.3913.co.uk.
    The snippet embeds the standalone Javascript within the page.

    The default set-up :
    images based on the doc id e.g. 1.gif & 1_small.gif for the home page
    image sizes to be 128 px & 64px respectively
    directory path to be assets/snippets/fisheye/
    outputs top level pages that are both published and show in menu

    You can customise any of the above and more with a smallish range of optional parameters.

    It's very basic PHP (my skill level) and could do with some tidying!
    In particular the SELECT COUNT(*) query I used to check for no records to avoid output of useless HTML & JS.
    I'm sure there's a better way of doing it along with the SELECT * FROM query to get the document data, if someone can offer advice.
    Any help or feedback appreciated before possible release to a wider audience.

    Regards,

    David


  • 25663
    12,071


    Ryan Thrash

    MODX Co-Founder & Leader of Awesomeness




    MODX Revolution

    Your Content, Your Way.


    Issues | Documentation | Git the Source


    Need help? Help us help you.


    rthrash Reply #2, 4 years, 5 months ago

    Reply
    • Link to this post#2
    Very cool and even plays nice with Safari!


  • 4310
    2,276
    Snippets : eForm 1.4.4.7 with SMTP & PMS's security fixes | PHC Results | EasyNewsletter from CSV

    Wiki Articles : Custom DB table to placeholders | Manager Locked Out?

    Websites : Work - U.K. based MODx development  |  Hobby - Free interactive education resources for teaching 4 - 11 year olds

    Hosting : One Smart Host - Professional MODx hosting 

    bunk58 Reply #3, 4 years, 4 months ago

    Reply
    • Link to this post#3
    I've updated the snippet to include an &orderField
    I've also streamlined the DB Query using one of the DBAPI functions (must look into what else they can do!)

    David


  • 10449
    948
    http://www.screengang.com/
    http://www.dnik.ch/
    http://www.fantastique.ch/
    http://www.flickr.com/photos/dnik/

    ganeshXL Reply #4, 4 years, 4 months ago

    Reply
    • Link to this post#4
    Works nicely once it's fully loaded, but for approx. 1-2 seconds, I see the big images overlapping content (see screenshot). Any chance to add a preloader or something?



  • 4310
    2,276
    Snippets : eForm 1.4.4.7 with SMTP & PMS's security fixes | PHC Results | EasyNewsletter from CSV

    Wiki Articles : Custom DB table to placeholders | Manager Locked Out?

    Websites : Work - U.K. based MODx development  |  Hobby - Free interactive education resources for teaching 4 - 11 year olds

    Hosting : One Smart Host - Professional MODx hosting 

    bunk58 Reply #5, 4 years, 4 months ago

    Reply
    • Link to this post#5
    I wondered if a preloader would help or not.
    My thinking was that the large menu images are called earlier in the HTML than the JS that controls the transition from large to small and therefore the delay was in waiting for the JS to do it's thing.
    Or should I look at preloading the small images ready for the JS, which might minimise the delay?
    Any help appreciated as I'm a beginner!
    David


  • 27330
    854

    sinbad Reply #6, 3 years, 8 months ago

    Reply
    • Link to this post#6
    David this looks HOT. I saw it few days ago and I think this is as close as I ever going to get to my Mac workstation im dreaming about.
    but the large images do ruins it for me too, there gotta be a way and I wish you'll find it soon.
    thanks for sharing!


  • 31290
    37

    VanMeter Reply #7, 3 years, 6 months ago

    Reply
    • Link to this post#7
    Why don't you make it initially load the smaller images as the placeholder image? Seems like this would make more since anyways since they start small anyways until they are hovered. I didnt look at the script at all but it appears that the small image expands until it reaches full size and then is swapped out for the full size image to get rid of the pixelation.


  • 4310
    2,276
    Snippets : eForm 1.4.4.7 with SMTP & PMS's security fixes | PHC Results | EasyNewsletter from CSV

    Wiki Articles : Custom DB table to placeholders | Manager Locked Out?

    Websites : Work - U.K. based MODx development  |  Hobby - Free interactive education resources for teaching 4 - 11 year olds

    Hosting : One Smart Host - Professional MODx hosting 

    bunk58 Reply #8, 3 years, 6 months ago

    Reply
    • Link to this post#8
    Thanks for the pointer.
    The JS is not my strong point, but I'll look a bit deeper.


  • 29626
    34

    thbenda Reply #9, 2 years, 8 months ago

    Reply
    • Link to this post#9
    I was looking for something like it for a client demo.
    This will be a cool modx integration now ;-)

    Thanks a lot.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
VanMeter, bunk58, ganeshXL, rethrash, sinbad, thbenda

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy