Checkout my reply in this other thread to help you get the clicked and
hover functionality working:
http://tinyurl.com/3lqr7y

In terms of hiding and showing the div, it looks like you've got a
*lot* of stuff going on there.  My first recommendation is to bundle
your actions up into "hideSidebar()" and "showSidebar()" functions.
Then, you can call them as necessary, without having to worry about
throwing a lot of code into your click() call.

You've got a range of options when it comes to the specifics of how
you implement the hiding and showing.   Since your main column shrinks
as the sidebar grows, I'm guessing you'll want to change the CSS on
those elements, and probably reload the content of the sidebar.

so, something like:

function showSidebar() {
 $('#main-column').removeClass('wide').addClass('narrow');
 $
('#sidebar').empty().removeClass('narrow').addClass('wide').append( 
variableContainingNewDomElements );
}

I'm guessing there's probably a better way to do this, perhaps someone
else can weigh in here.

Lastly, for your popup, you'll want to investigate the UI.dialog
plugin:   http://docs.jquery.com/UI/Dialog
or the jqModal plugin: http://dev.iceburg.net/jquery/jqModal/

-E

On Oct 14, 10:13 am, Takaya213 <[EMAIL PROTECTED]> wrote:
> Hi All
>
> I was wondering if anybody could help me please. I have several divs
> on a page that show.hide according to an image button that is pressed.
>
> 1. The buttons need to hover but the one that was clicked needs to
> stay in the hover/selected state.
> 2. The button that is selected, doesn't need to hover.
>
> I also need help in getting a div to open sliding to the left.
>
> 1. When the arrow at the top of the basket is clicked the basket
> slides open to the left.http://www.webnow.co.za/enquiry/bask-closed.jpg
> 2. As you can see the basket that was on the side now expands and the
> content that was in the small area moves to the top and the arrow
> faces the other way.http://www.webnow.co.za/enquiry/bask-open.jpg
> 3. Then when one clicks on the one button a "popup" needs to display
> at the button that was 
> clicked.http://www.webnow.co.za/enquiry/bask-open-popup.jpg
>
> I know this sounds like a lot of things, but any help would be
> absolutley appreciated.
>
> Thanks
> Tak
> --
> View this message in 
> context:http://www.nabble.com/Help-needed-please%21-tp19974386s27240p19974386...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to