The class solution would work fine.

As there is only 1 page that the overlay really needs to be open on and the
button active so a class function would be sufficient.


Charlie Tomlinson wrote:
> 
> what are parameters to determine your "certain pages"? does this
> require an involved solution like parsing url or would a simple
> solution like adding class to body like "myOverlay" and use that as
> selector in code to run overlay functions? 
> 
> Takaya213 wrote:
> 
>   
> Hi
> 
> I have a DIV overlay that I want to show as open only on certain pages but
> not on others (it is on all pages). The button that is related to the DIV
> must also display as on when the DIV overlay is open and in the off state
> when it is closed.
> 
> This must happen on page load.
> 
> e.g. DIV open, button on.
> DIV closed, button off.
> 
> I have the click show and activation working so all i need is it to
> display
> as open and on, on certain pages and then on others closed and off.
> 
> An help would be greatly appreaciated.
> 
> Thanks
>   
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Div-and-Button-display-as-active-and-open-only-on-certain-pages-tp24286826s27240p24289383.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to