MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Dec 04, 2008, 01:35 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Development & Coding
»
In Development
(Moderators:
zi
,
PaulGregory
)
»
Fisheye / Dock Menu
Pages: [
1
]
Go Down
« Previous topic
Next topic »
Print
Author
Topic: Fisheye / Dock Menu (Read 3196 times)
0 Members and 1 Guest are viewing this topic.
bunk58
Committed to MODx
Posts: 996
David Bunker
Fisheye / Dock Menu
«
on:
Dec 17, 2007, 05:18 PM »
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
fisheye.jpg
(13.46 KB, 450x141 - viewed 366 times.)
fisheye.zip
(109.13 KB - downloaded 308 times.)
«
Last Edit: Dec 24, 2007, 11:17 AM by bunk58
»
Logged
Snippets :
Highslide Gallery
|
Fisheye Menu
|
JS Tree Menu
|
PHC Results
|
EasyNewsletter from CSV
Wiki Articles :
Custom DB table to custom placeholders
Website :
U.K. based MODx development
rthrash
Foundation
Posts: 9,577
Re: Fisheye / Dock Menu
«
Reply #1 on:
Dec 17, 2007, 10:20 PM »
Very cool and even plays nice with Safari!
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
bunk58
Committed to MODx
Posts: 996
David Bunker
Re: Fisheye / Dock Menu
«
Reply #2 on:
Dec 24, 2007, 11:21 AM »
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
Logged
Snippets :
Highslide Gallery
|
Fisheye Menu
|
JS Tree Menu
|
PHC Results
|
EasyNewsletter from CSV
Wiki Articles :
Custom DB table to custom placeholders
Website :
U.K. based MODx development
ganeshXL
Testers
Posts: 1,552
Re: Fisheye / Dock Menu
«
Reply #3 on:
Dec 24, 2007, 12:52 PM »
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?
3913.gif
(112.47 KB, 999x610 - viewed 243 times.)
Logged
http://www.screengang.com/
·
http://www.online-marketing-consulting.ch/
·
http://www.dnik.ch/
bunk58
Committed to MODx
Posts: 996
David Bunker
Re: Fisheye / Dock Menu
«
Reply #4 on:
Dec 24, 2007, 01:12 PM »
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
Logged
Snippets :
Highslide Gallery
|
Fisheye Menu
|
JS Tree Menu
|
PHC Results
|
EasyNewsletter from CSV
Wiki Articles :
Custom DB table to custom placeholders
Website :
U.K. based MODx development
sinbad
Committed to MODx
Posts: 506
Re: Fisheye / Dock Menu
«
Reply #5 on:
Sep 15, 2008, 08:53 PM »
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!
Logged
VanMeter
Jr. Member
Posts: 32
Re: Fisheye / Dock Menu
«
Reply #6 on:
Oct 29, 2008, 03:42 PM »
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.
Logged
bunk58
Committed to MODx
Posts: 996
David Bunker
Re: Fisheye / Dock Menu
«
Reply #7 on:
Oct 30, 2008, 03:24 AM »
Thanks for the pointer.
The JS is not my strong point, but I'll look a bit deeper.
Logged
Snippets :
Highslide Gallery
|
Fisheye Menu
|
JS Tree Menu
|
PHC Results
|
EasyNewsletter from CSV
Wiki Articles :
Custom DB table to custom placeholders
Website :
U.K. based MODx development
Pages: [
1
]
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Czech Community
-----------------------------
=> Oznámení
===> Důležitá oznámení/novinky
===> Bezpečnost
=> Podpora
===> FAQ (často kladené otázky)
===> Instalace
===> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
===> Design & Šablony
=> Dokumentace, tutoriály (návody) a překlady
===> Dokumentace
===> Tutoriály (návody)
===> Překlady (lokalizace)
=> Komunita
===> Oznámení
===> Představte se, prosím
===> Ukázky práce
===> Různé aneb cokoli co se jinam nehodí
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı