473,750 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do i get a cookie to remember what css you choose

4 New Member
Does anyone know the code to have multiple css sheets on one website? Could you give me the exact code for xhtml to make it work. I have a drop down list with the options of different style sheets available, and the different style sheets written. I just need to know how to make it so that when you choose an option from the dropdown menu it changes the style sheet. Also if you know how to write a cookie to remember what style sheet the user chose that would be great. Thanks
Apr 3 '08 #1
3 1147
acoder
16,027 Recognized Expert Moderator MVP
See this earlier thread to get you started.
Apr 3 '08 #2
rodneyystwyth
4 New Member
thanks for the help much apperiated
Apr 3 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
No problem, you're welcome. Let me know if you have any problems implementing it.
Apr 4 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
2216
by: Sims | last post by:
Hi, I am using setcookies to store one single value. But i was reading http://za2.php.net/manual/en/function.setcookie.php and i noticed that a cookie might not be accepted yet it might return true. So that makes me wonder what the use of the cookies are if i have no way of making sure that it has been properly accepted. What is the point of having cookies if i have to make a backup plan for users that do not accept them? What do you...
6
2238
by: Patrick Zittle | last post by:
Does anyone know the code for the cookie monster app? It is a little app that when you start it up it says "I want a cookie" and if you answer anything but "cookie" it asks you agian. If you answer "cookie" it goes away. It was on the movie "Hackers" i belive. I also saw it in a learning python book but can't remember which one. If someone could please post the code for it on this mailing list. Thanks a lot!!! Kevin From...
7
7206
by: What-a-Tool | last post by:
How does the expire date work setting it server side with asp. I know with javascript setting it client side it will be set to the clients local time, and therefore expire when the clients local time reaches the set expire-time. But if it is an expire time set on my server in California, and the cookie is put on a computer that is running on London Time, and the expire time is set at the server as 20 minutes from now, the London computer...
4
3821
by: socialism001 | last post by:
I'm trying to store a value in a cookie but its not working. Can anyone see what I might be doing wrong. Thanks, Chris ~~~~~~~~~~~~~~~~~~ <script language="javascript"> if(document.cookie.indexOf("beenHere1=true")!=-1) else
0
280
by: D. Shane Fowlkes | last post by:
I have a form with a CheckBoxList which is created from a SQLDataReader. It contains Staff personnel and I use the ID and LogOnName (a string) to build the CBL. All works fine. I also have a "Remember my settings" checkbox on the form that if checked, will run a sub routine to create a cookie to store the IDs of the checked names in the CBL. The idea is to have the form "remember" the user's selections so when they come back to the form...
2
1174
by: news.microsoft.com | last post by:
I have an extremely odd cookie problem and had many programmers in the group looked at it but still with no solution. The following is the synptom: I have a user control ( for inputting user information) used in many apsx files. And I used a cookie in the control to remember the inputs. After the user input the values and click "submit", server will unload this control and load some other user control. Here is the problem: if I come back to...
4
3156
by: craigkenisston | last post by:
I have an asp.net application in which I sometimes store a persistent cookie once the user has logged in and this has been working great. However, I now add some user information like, username, firstname, lastname, etc. in the session collection and this works fine, but only the first time the user loggin. But, when the user returns I just get nil errors, because this data is lost. So, I guess, I'm missing something like auto-logging the...
5
4745
by: James | last post by:
hi, I'm trying to remember a user who has visited the page. what i found out was to use persistent cookie, is there any other way that i can remember the user next time he visit? When using cookies, I used the code below to add -----in login.aspx------ Dim aCookie As New HttpCookie("userInfo") aCookie.Values("userID") = "1" aCookie.Expires = DateTime.Now.AddYears(50)
1
2712
by: trint | last post by:
Hi, I need to have a "remember my login" cookie if someone checks the checkbox. The checkbox's text is "Remember Me on this Computer" The login users name is their email (like): users name: trinity@gmail.com password: windintrees If the cookie exists, open and read if it has a "1" to load the login information, or "0" for no auto-login.
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.