homepage Welcome to WebmasterWorld Guest from 50.16.130.188
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Sending css settings from one page to another
sending css settings
Romerz




msg:3852297
 1:40 pm on Feb 18, 2009 (gmt 0)

Basically I have a series of css menus split up into div tags. I then have a little bit of javascript which allows people to click on a subject header and the current css menu will dissapear and another one will appear.

This works perfectly, however I was wondering if there was a simple way to pass the details onto another page, as once the new menu that is being displayed is used it will send the user to another page on the site, read the default css setup and display the first menu again.

 

Romerz




msg:3852301
 2:01 pm on Feb 18, 2009 (gmt 0)

Basically im just wanting to change the

div#menu2
{
display: none;
}

to

div#menu1
{
display: none;
}
div#menu2
{
display: block;
}

by default, however I can only really add code into the body section of the area that requires the 2nd menu to apear by default.

Romerz




msg:3852339
 2:46 pm on Feb 18, 2009 (gmt 0)

Sorry for basically having a conversation with myself here, but Ive come up with a solution.

(I was over complicating things)

Basically in the body of the sections im wanting the 2nd menu to appear in ive put:

<style type="text/css">
div#menu1
{
display: none;
}
div#menu2
{
display: block;
}
</style>

rocknbil




msg:3852388
 3:53 pm on Feb 18, 2009 (gmt 0)

Welcome aboard and glad you sorted it, but for future reference,

I was wondering if there was a simple way to pass the details onto another page,

It sounds like you didn't really need to do this, but if you ever do, the solution is most likely in cookies. Set some small cookie value using Javascript, and check for it's presence on load of any pages. If your pages are output using a server side language, even better; do your cookies from there and eliminate the need for Javascript.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved