![]() |
|
|
#1 (permalink) |
|
Nasty Nate
Join Date: Aug 2003
Location: Michigan
Posts: 627
Internets: 4881
|
Hey guys... im in this web class thats mainly been html and css stuff, but now we are learning really basic jQuery. If anyone knows anything about jQuery and is willing to help me out with something id really appreciate it.
Just get at me over icq - 57850601 or aim - ntp04 |
|
|
|
|
|
#3 (permalink) |
|
Nasty Nate
Join Date: Aug 2003
Location: Michigan
Posts: 627
Internets: 4881
|
Its like introductory javascript. Not that this will mean anything to you necessarily, but this is the function I wanted to tweak a bit.
$(document).ready(function() { $('#nav > ul').hover( function () { $(this).children('li').slideDown('fast'); }, function () { $(this).children('li').slideUp('fast'); }) }); And the website that the function goes to is yipe.emich.edu/~npolaski. The website is really ghetto, and not something we plan to maintain but more so just to meet the requirements of the course. The function above is what makes the sub-menus appear when you highlight various aspects of our navigation bar. The problem is when you move the mouse around very quickly on the navigation bar, things get really ugly, and I wanted to somehow implement a delay. So for example, you would have to "hover" your mouse over Bars and Clubs for x amount of time before the sub-menu appeared. Im just not sure on the implementation of something like that. We only got like 2 weeks to learn basic jQuery, so our knowledge is extremely limited. |
|
|
|
|
|
#4 (permalink) |
|
COME ON YOU YANKS
|
Hmm...I'm not sure how dropdown menus like that could work anyway. Even if you do have a delay, it seems like you'll still have the same problem...that being that, when you hover over a 2nd item, the items you're hovering over will all shift and you'll be hovering over something else.
Can you try to make them more like this: http://pfirsichmelba.de/artikel-scri...orizontal.html The submenu is beside the main items instead of underneath? |
|
|
|
|
|
#5 (permalink) |
|
Nasty Nate
Join Date: Aug 2003
Location: Michigan
Posts: 627
Internets: 4881
|
That may be possible. Doing it that way would have more to do with the CSS (cascade styling sheet) of the website then the jQuery function I would imagine. I believe the way I have the navigation bar is set up now, it "floats" on the left hand side of the page, essentially pushing all of the page content on the right over to make room for it. I would somehow have to make it so the sub-menus didnt work that way so they could overlap the content on the right.
Ill probably work on it some more soon and see what I can come up with. Right now though the navigation bar is pretty ugly with all the shifting of content. |
|
|
|
|
|
#6 (permalink) |
|
Almost there...
Join Date: Feb 2005
Posts: 5,979
Internets: 161638
|
Nathan,
I demand more from you. Nubblies demands more from you. You've been here since 2003, over 5 years, yet you never participate in the tom foolery. You randomly pop up to ask a question and then vanish from my life without a second thought. I need more of a commitment if this relationship is going to work. Love is a two way street - I can only give so much before I expect something in return. Would it be too much for you to come around more? Maybe join in in the conversations once in a while? How many nights do I have to go without your touch? Think about it. |
|
|
|
|
|
#9 (permalink) | |
|
Spice Master
Join Date: Jan 2004
Posts: 17,969
Internets: 278288
|
Quote:
| |
|
|
|