![]() |
| ||
| save and load font and background setting using cookies hi i am new to javascript and i try to play around with it but i am stuck at the moment lol hope that someone can help me check my code and tell me what is wrong with it in the page the user can change the background color and the font family so when they open the website, the background and the font they selected is load back
try copy and paste my code first if someone select the value in the background color to red, when they reload the page the value in the list box still red but the page color is not red, it is back to white again i dont know how to make the page red can you guys help me please. thank you regards, ayi |
| ||
| Re: save and load font and background setting using cookies Hi there! Heres the conclusion to your 1st query regarding changing the looks of your page. This script wil load specific themes' using different style sheets depending on the selection being provided by the user and of course with the help of cookies. It's a compact script, hope youll enjoy this... <?xml version="1.0" encoding="utf-8"?> |
| ||
| Re: save and load font and background setting using cookies if i have lots of option like change the background color : blue, red, black, green and fontfamily : tahoma, arial, verdana fontcolor: red,green, blue that will be mean that i have to make css file for each possibility that will happen? like blue bgcolor, tahoma, red font then blue bgcolor, arial, green font howdo you make one cookies with lots of different name? |
| ||
| Re: save and load font and background setting using cookies Just a sets of theme so you dont have to choose for the font, font sizes, color, bgcolor and so on... Ok assuming that i have the following rules in the "black.css" body {You can provide themes as many as you want. The ones you use depends only on your design capabilities and imagination. |
| ||
| Re: save and load font and background setting using cookies this is my latest code there are several option for user background color = red, green, blue font color = red, green, blue, black font type = arial, times, verdana, tahoma font size = small, medium, large, x-large, xx-large lets assume that someone want to choose: background color = red font color = green font type = verdana font size = medium that is mean that i have to make css page that can handle those requirements what about if that person want to change the page like: background color = green font color = blue font type = times font size = xx-large that is another page which is mean another css file, right so there gonna be lots of css then to meet all the possibilities that can happens What do you think? Oh, and thank you for the cookies code it works perfect <html> |
| ||
| Re: save and load font and background setting using cookies This one is working example but i want to change it into listbox instead of radio button <html> it works with radio button but not with listbox i dont know how to make the listbox works hope that someone can help me thank you |
| All times are GMT -4. The time now is 9:09 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC