hi, I'm having trouble to develop switch js files. I have two .js files (one.js and two.js). in index is loading with one.js file and if i want to click link or button and to change js files from red.js to blue.js files. My question is that how do i can write that code with cookie statments so when i clicked blue.js it will chane to blue background and if i reload same page it will show same blue page. I'm sorry im new .js and learning new js. but need help here is some sample what i did so for. switch(con) { case con: document.write('<script type="text\/javascript" src="test.js"><\/s'); break; case con1: document.write('<script type="text\/javascript" src="test.js"><\/s'); break; } Code (markup): it does not matter if use php, or js or jquery, please help me thanks. AM