<script>
function setDivBG(s)
{
document.getElementById("div1").className=s;
}
</script> <style type="text/css">
.style1
{
width: 100px;
height: 100px;
background-image:url('http://img.baidu.com/img/logo-zhidao.gif');
}
.style2
{
width: 100px;
height: 100px;
background-image:url('http://img.baidu.com/img/iknow/images/r1s1g5.gif');
}
.style
{
width: 100px;
height: 100px;
background-image:url('aa.gif');
}
</style> <select onchange="setDivBG(this.value);">
<option value="" selected></option>
<option value="style1">知道</option>
<option value="style2">头像</option> </select>
<div id="div1" class="style" ></div>
你可以几个标记到cookie里面去。