50分求项目解决方案!!!不够再添! (在线等!) 最近,在做项目的时候遇到点问题。想实现让用户调节网页的某些颜色,用一个dropdownlist点击dropdownlist弹出,选择颜色的窗口。像在开发环境里选择按钮颜色一样。并把这些信息写到cookies里。求相应的思路!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个可以通过CSS文件来实现。 PageOne.htm:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>新建网页 1</title></head><body><select id=colorSelecter> <OPTION style="BACKGROUND-COLOR: blue" value="blue">蓝色</OPTION> <OPTION style="BACKGROUND-COLOR: red" value="red">红色</OPTION> <OPTION style="BACKGROUND-COLOR: green" value="green">绿色</OPTION></select><input type=button onclick="OnBtnNewWindow()" value="确定"><script language=javascript> function OnBtnNewWindow() { document.cookie=""; document.cookie=document.getElementById("colorSelecter").value; window.open("PageTwo.Htm"); }</script></body></html>PageTwo.htm:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>新建网页 1</title></head><body><script language=javascript> var bgColor=document.cookie; document.body.bgColor=bgColor</script></body></html> 你可以在数据库中定义这些颜色,然后把它绑定到list上,然后通过后台来定义页面的某些颜色.一边做论坛都会用的到,你可以参考一下! snip81说的是对的,而且,不必重新弹出窗口,本窗口的颜色也可以变得 asp.net能使用linq存储过程吗 WebForm_PostBackOptions 未定义 两张数据表,一张有消耗量,另一张有库存,显示到gridview的时候,我添加一条消耗记录,怎么让库存相应减少? .net 在线状态管理 如何去掉img上的灰色边框? 问委托与事件的差别 网站优化 怎样在datagrid点击更新后,使这一行的checkbox控件别选择上? 为什么啊?!!郁闷死 100跪求一个可以修改更新添加删除的webForm. ASP.NET中的解决方案 求WEB解决方案
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<select id=colorSelecter>
<OPTION style="BACKGROUND-COLOR: blue" value="blue">蓝色</OPTION>
<OPTION style="BACKGROUND-COLOR: red" value="red">红色</OPTION>
<OPTION style="BACKGROUND-COLOR: green" value="green">绿色</OPTION>
</select>
<input type=button onclick="OnBtnNewWindow()" value="确定">
<script language=javascript>
function OnBtnNewWindow()
{
document.cookie="";
document.cookie=document.getElementById("colorSelecter").value;
window.open("PageTwo.Htm");
}
</script>
</body>
</html>PageTwo.htm:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<script language=javascript>
var bgColor=document.cookie;
document.body.bgColor=bgColor
</script>
</body>
</html>
一边做论坛都会用的到,你可以参考一下!