i made changes in here in the resetLists
function resetLists(){
document.forms[0].select1.options[1].selected = true;
document.forms[0].select2.options[1].selected = true;
if ((document.forms[0].select1.selectedIndex == 1) && (document.forms[0].select2.selectedIndex == 1)) {
deleteCookie('colorSet');
deleteCookie('fontSet');
document.body.setAttribute('style','font:normal 80% Arial, sans-serif;background:#fff;color:#000;'); }
}
</script>
the selected index goes to number 1 which is mean arial font and blue background color
when push reset button, the listbox is set to the default but the color and the font is not reset to the default
eg. i choose red background and helvetica font
then i press reset button
the background color and the font should be change into blue background and arial font
but it is not changing, just the listbox that reset to default
the page is still the same
the previous code you gave me
<script type="text/javascript">
function resetLists(){
document.forms[0].select1.selectedIndex = 0;
document.forms[0].select2.selectedIndex = 0;
if ((document.forms[0].select1.selectedIndex == 0) && (document.forms[0].select2.selectedIndex == 0)) {
document.body.style.backgroundColor = '#FFF'; };
}
</script>
it works it change the background color and font to the default setting
but the problem is that when i refresh the page, the page is not default but it goes to the previous setting
eg. i choose red background and helvetica font
then i press reset button
the background color and the font change into blue background and arial font
but when i refresh the page, the background back to red and helvetica font where it should be blue background and arial
I hope you can understand my english
thank you
sorry for troubling you
it is confusing to understand with my bad english