刷新各ifream当前页,下拉项改变触发事件js,给选中项加背景色js
<script type="text/javascript" language="javascript">
//刷新框架各页面
function refresh() {
window.frames["topPage"].window.location.href = window.frames["topPage"].window.location.href;
window.frames["leftPage"].window.location.href = window.frames["leftPage"].window.location.href;
window.frames["mainTopPage"].window.location.href = window.frames["mainTopPage"].window.location.href;
window.frames["mainBottomPage"].window.location.href = window.frames["mainBottomPage"].window.location.href;
window.frames["rightPage"].window.location.href = window.frames["rightPage"].window.location.href;
return false;
}
</script>
让框架页面跳转:
<script type="text/javascript" language="javascript">
//页面跳转
function redirect() {
window.parent.window['mainTopPage'].location = '../ByWhole/dqzh.aspx';
window.parent.window['mainBottomPage'].location = '../ByWhole/dqzhfx.aspx';
return false;
}
</script>
给选中项加背景色js:
//给选中地区加背景
$('.main_cont_city li').each(function() {
$(this).click(function() {
$('.main_cont_city li').removeClass('selected');
$(this).addClass('selected');
});
}); <div class="main_cont_city">
<asp:Repeater ID="rptDq" runat="server">
<HeaderTemplate>
<span class="fl">地区:</span>
<li class="selected"><a href='' onclick=" return redirect();">全国</a></li>
</HeaderTemplate>
<ItemTemplate>
<li><a href="javascript:" onclick='dqRedirect(<%#Eval("dq_id") %>)'>
<%#Eval("dq_name") %></a></li>
</ItemTemplate>
</asp:Repeater>
</div>
下拉项改变触发事件js:
var mon = ""; $("#ddlMonth").change(function() {
mon = $(this).val();
window.frames["UpSession"].window.location.href = "../UpSession.aspx?mon=" + mon;
refresh();
}); <asp:DropDownList ID="ddlMonth" runat="server" Width="70px">
<asp:ListItem Value="1" Text="1月份">1月份</asp:ListItem>
<asp:ListItem Value="2" Text="2年">2月份</asp:ListItem>
<asp:ListItem Value="3" Text="3年">3月份</asp:ListItem>
<asp:ListItem Value="4" Text="4年">4月份</asp:ListItem>
<asp:ListItem Value="5" Text="5年">5月份</asp:ListItem>
<asp:ListItem Value="6" Text="6年">6月份</asp:ListItem>
<asp:ListItem Value="7" Text="7年">7月份</asp:ListItem>
<asp:ListItem Value="8" Text="8年">8月份</asp:ListItem>
<asp:ListItem Value="9" Text="9年">9月份</asp:ListItem>
</asp:DropDownList>
刷新各ifream当前页,下拉项改变触发事件js,给选中项加背景色js的更多相关文章
- jquery操作select下拉框的各种方法,获取选中项的值或文本,根据指定的值或文本选中select的option项等
简介jquery里对select进行各种操作的方法,如联动.取值.根据值或文本来选中指定的select下拉框指定的option选项,读取select选中项的值和文本等. 这一章,站长总结一下jquer ...
- select下拉框选择触发事件
我一直以来都认为,select 下拉框选择对选项 options 使用 onclick 注册事件即可,如下: <select> <option value="0" ...
- 点击select下拉框,触发事件
<div class="controls moneycheck floatleft"> <select class="span12 chosen_cat ...
- 关于select下拉框选择触发事件
最开始使用onclick设置下拉框触发事件发现会有一些问题: <select> <option value="0" onclick="func0()&q ...
- select change下拉框改变事件 设置选定项,禁用select
select change下拉框改变事件 设置选定项,禁用select 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio ...
- PHP文本框的值随下拉框改变
初学PHP,下面是实现文本框内容随下拉框变化的代码实现: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN&q ...
- 下拉框改变事件:获取下拉框中当前选择的文本 SelectionChanged事件
/// <summary> /// 下拉框改变事件:获取下拉框中当前选择的文本 /// </summary> /// <param name="sender&q ...
- Vue 下拉框值变动事件传多个参数
在使用 Vue 进行开发时,下拉框值变动事件 @change 是很常用的. 其传参一般分为两种方式:默认传参和自定义传参. 默认传参 @change 默认会传选中项标识的参数,在传参处不用定义,在方法 ...
- layui select 下拉框 级联 动态赋值 与获取选中值
//下拉框必须在 class="layui-form" 里 不然监听事件没有作用 <div class="layui-form" > <div ...
随机推荐
- shared jedis 在spring中的配置
redis 属性文件配置: redis.host=xx.xx.xx.xx redis.port=6379 #redis.pass=xxxxx redis.maxIdle=10000 redis.max ...
- doT.js详细介绍
doT.js详细介绍 doT.js特点是快,小,无依赖其他插件. 官网:http://olado.github.iodoT.js详细使用介绍 使用方法:{{= }} for interpolati ...
- HTML中行内元素与块级元素的区别:
HTML中行内元素与块级元素的区别:在标准文档流里面,块级元素具有以下特点: ①总是在新行上开始,占据一整行:②高度,行高以及外边距和内边距都可控制:③宽带始终是与浏览器宽度一样,与内容无关:④它可以 ...
- Sublime Text 3 杂记
Sublime Text 是一个功能强大的代码编辑器(收费,但可无限期试用).由程序员Jon Skinner于2008年1月份所开发出来,它最初被设计为一个具有丰富扩展功能的Vim.Sublime T ...
- 手机版本高于xcode,xcode的快速升级
iPhone手机更新版本,xcode未更新时,不能真机测试 在xcode show in finder里面添加最新iPhone 版本 重启xcode即可 真机测试
- vmstat和iostat
一.vmstat1.命令示例#vmstat 5每5秒输出一次 2.输出详解procs -----------memory---------- ---swap-- -----io---- --syste ...
- Implicit and Explicit Multithreading MULTITHREADING AND CHIP MULTIPROCESSORS
COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION The concept of thread ...
- 如何在spring容器开始后,和销毁前,执行一些操作
转:参考文档:资料链接
- js滚动条滚动到某个元素位置
scrollTo(0,document.getElementById('xxx').offset().top);
- OC中协议, 类目, 时间, 延展, 属性
只有继承和协议需要引IMPORT "头文件"; 必须接受marryprotocol协议, id<marryprotocol>基于类型的限定, 才能给实例变量赋值 @pr ...