jQuery: The Write Less, Do More JavaScript Library

Re: Div and Button display as active and open only on certain pages

by Takaya213 :: Rate this Message:

Reply to Author | View in Thread

It is the exact same overlay that has to show as open on the homepage and closed on all of the other pages, but you can click on a button to show and hide it as well.
That is the button that must show as selected/active when the overlay is open and as unselected/inactive when closed.

Open Overlay - http://www.njwebdesign.co.za/TestImages/openOverlay.jpg
Closed Overlay - http://www.njwebdesign.co.za/TestImages/closedOverlay.jpg

Now it needs to be open on the homepage and closed on the other pages.

Charlie Tomlinson wrote:
shot in the dark here................ $("#overlay").show(). ??

Takaya213 wrote:

 
The button image has 2 states an on when it is active and an off when it is
inactive. I am not too concerned about this one, but more of the showing and
hiding of the overlay on page load.

Thanks.


Charlie Tomlinson wrote:
 
 
   
Can you put together a sample page link with your modal and give a
better description of what you mean by button="off". Does this mean
disabled, or css change? Seeing what you are working with would make
finding the solution much easier

Takaya213 wrote:

 
Hi Can anybody help me please?

Thanks
 






   
 
 
 



 « Return to Thread: Div and Button display as active and open only on certain pages