Drop-Up On Hover Menu

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 25th, 2009, 7:59 pm

I need a menu (Like I have as my drop down menu), where you hover over the link, it would drop UP instead of down. It would be nice if the solution is CSS only, but if it involves JavaScript, than I guess I'll live with it... This menu would be generated automatically (Dynamically with PHP).
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 25th, 2009, 7:59 pm

  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post July 26th, 2009, 6:35 pm

Hmmm...I would think you already know about script.aculo.us, cause you can definitely do all kinds of crazy tish with that, combine functions to make a menu fade and shrink to a zero point at the same time, the same thing backward, set the length in seconds of the effect, etc, all really damn simply. I am just waiting for "vortex", "puzzle" and "shatter" functions.

But you are now talking both barrels: javascript :roll:
Image
  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post July 26th, 2009, 6:38 pm

http://script.aculo.us/

The one you want is class BlindUp:
Quote:
Scales the x dimension of element to 0 percent with contents of element anchored at the top, like window blinds. After finishing, element is hidden
Image
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 26th, 2009, 6:42 pm

mk27 wrote:
oops.
Oops what? I don't get that
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post July 26th, 2009, 6:46 pm

Bogey wrote:
mk27 wrote:
oops.
Oops what? I don't get that


Sorry, I hit reply instead of edit, but you can't delete a post. Usually this board is slow and I always add stuff after I post and go "hmmm"; anyway, scroll back up and look where the oops used to be.

Have you really never heard of script.aculo.us? That's crazy. It could be like I'm turning you on to psychedelic drugs :mrgreen:
Image
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 26th, 2009, 6:52 pm

I might have visited that site once, and probably forgot about it. Thanks for reminding me about it.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post July 26th, 2009, 6:59 pm

Bogey wrote:
I might have visited that site once, and probably forgot about it. Thanks for reminding me about it.


It does require prototype, too. It works and it really ain't any harder than this:
Code: [ Select ]
 
new Effect.Shrink($('dropout'), { duration: 1.5 });
 
  1.  
  2. new Effect.Shrink($('dropout'), { duration: 1.5 });
  3.  


I should do a tutorial for this, methinks.

Here's BlindUp/BlindDown in action:

http://206.251.36.107/simple/

all I wrote was the page source you see there. You will have to do some playing around to get it to work nicely with "onmouseover" maybe.
Image
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 26th, 2009, 9:09 pm

Thanks :D That was great help except it didn't work... the problem with that is that it works, but only inside of that div which is 97% wide and 40px wide... it's basically a bar at the bottom similar to Facebook or MySpace that holds the chat and online friends... what I need this pop-up menu for is the online friends thing...
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6738
  • Loc: Martinsburg, WV
  • Status: Offline

Post July 27th, 2009, 4:22 am

Take a look through some of these

http://www.cssplay.co.uk/menus/

There are some that go up instead of down, like this one http://www.stunicholls.com/menu/skeleton_up.html
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post July 27th, 2009, 7:47 am

Bogey wrote:
Thanks :D That was great help except it didn't work... the problem with that is that it works, but only inside of that div which is 97% wide and 40px wide... it's basically a bar at the bottom similar to Facebook or MySpace that holds the chat and online friends... what I need this pop-up menu for is the online friends thing...


You could look into the underlying functions used; BlindUp is a combination effect using combinations of more basic things (like "Scale"), but you should be able to look through the effects.js and figure it out. Can't say I have tried myself tho, and I'm not sure how the script.aculo.us docs are in this regard.

My tactic with that stuff is to have just *one* div for the whole bar, and swap the contents since you are only going to view one drop down at a time; ie the same div goes up and comes down again with different content. But that's a stylistic choice; if you're trying to emulate something specific I guess you would have to find out how that is specifically done.

grinch2171 wrote:
Take a look through some of these

http://www.cssplay.co.uk/menus/

There are some that go up instead of down, like this one http://www.stunicholls.com/menu/skeleton_up.html


That second one looks good but I hope the guy responsible for the first one isn't also responsible for propagating this set of mistakes all over of the web, cause I see it everyday -- which just goes to show, you should really test stuff in more than one browser, etc:
Image
Image
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6738
  • Loc: Martinsburg, WV
  • Status: Offline

Post July 28th, 2009, 11:06 am

What browser are you using. According to his info on that menu
Stu nicholls wrote:
Tested in IE6, IE7, Firefox, Opera, Safari (PC) and Safari (iPod Touch). Mozilla and Netscape in Firefox mode have a small problem with this one, as does the latest alpha release of Opera.
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 28th, 2009, 12:14 pm

@grinch2171: I didn't find any menus there that work :( this is getting to be frustrating.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6738
  • Loc: Martinsburg, WV
  • Status: Offline

Post July 28th, 2009, 12:32 pm

None worked at all or they won't work with what you are wanting to do?
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 28th, 2009, 1:05 pm

Check My Site... you will see the bar at the bottom... that is where I want that pop-up menu... I had one working there, but it would only show inside that bottom div and the top absolutely positioned div would cover the rest...

Z-INDEX wouldn't work then no matter what I would do, and so I gave up on it... this is becoming a little frustrating.

Thanks for your help so far guys!
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post July 29th, 2009, 9:38 am

grinch2171 wrote:
What browser are you using. According to his info on that menu
Stu nicholls wrote:
Tested in IE6, IE7, Firefox, Opera, Safari (PC) and Safari (iPod Touch). Mozilla and Netscape in Firefox mode have a small problem with this one, as does the latest alpha release of Opera.


That's not the stu nicholls one unless they are both by the same guy.

The screenshot is from firefox 3.0.4 Fedora Core 10-64.
Bogey wrote:
Check My Site... you will see the bar at the bottom... that is where I want that pop-up menu... I had one working there, but it would only show inside that bottom div and the top absolutely positioned div would cover the rest...

I don't see it. Why do need a pop-up anyway? Your site seems fine.
Image
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 29th, 2009, 9:38 am

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: No registered users and 112 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.