<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的更多相关文章

  1. jquery操作select下拉框的各种方法,获取选中项的值或文本,根据指定的值或文本选中select的option项等

    简介jquery里对select进行各种操作的方法,如联动.取值.根据值或文本来选中指定的select下拉框指定的option选项,读取select选中项的值和文本等. 这一章,站长总结一下jquer ...

  2. select下拉框选择触发事件

    我一直以来都认为,select 下拉框选择对选项 options 使用 onclick 注册事件即可,如下: <select> <option value="0" ...

  3. 点击select下拉框,触发事件

    <div class="controls moneycheck floatleft"> <select class="span12 chosen_cat ...

  4. 关于select下拉框选择触发事件

    最开始使用onclick设置下拉框触发事件发现会有一些问题: <select> <option value="0" onclick="func0()&q ...

  5. select change下拉框改变事件 设置选定项,禁用select

    select change下拉框改变事件 设置选定项,禁用select 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio ...

  6. PHP文本框的值随下拉框改变

    初学PHP,下面是实现文本框内容随下拉框变化的代码实现: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN&q ...

  7. 下拉框改变事件:获取下拉框中当前选择的文本 SelectionChanged事件

    /// <summary> /// 下拉框改变事件:获取下拉框中当前选择的文本 /// </summary> /// <param name="sender&q ...

  8. Vue 下拉框值变动事件传多个参数

    在使用 Vue 进行开发时,下拉框值变动事件 @change 是很常用的. 其传参一般分为两种方式:默认传参和自定义传参. 默认传参 @change 默认会传选中项标识的参数,在传参处不用定义,在方法 ...

  9. layui select 下拉框 级联 动态赋值 与获取选中值

    //下拉框必须在 class="layui-form" 里 不然监听事件没有作用 <div class="layui-form" > <div ...

随机推荐

  1. js-倒计时自动隐藏

    <!doctype html><html><head><meta charset="utf-8"><title>无标题文 ...

  2. javascript平时小例子⑨(小型抽奖功能)

    <!doctype html><html lang="en"> <head> <meta charset="utf-8" ...

  3. 【手把手教你Maven】构建过程

    Maven是一款进行 依赖管理.项目构建.信息管理 为一体的工具. 它不像Make具有复杂的命令.也不像Ant需要手动编写大量的重复代码就能进行项目的构建: 还能提供强大的依赖库管理,避免jar包混乱 ...

  4. java list去重

    1.不带类型写法: 1 List listWithoutDup = new ArrayList(new HashSet(listWithDup)); 2.带类型写法(以String类型为例):1)Ja ...

  5. oracle TBL$OR$IDX$PART$NUM BUG案例处理过程

    通过AWR报告发现数据库cpu告警的问题,定位产生问题的sql语句 首先查看SQL的执行计划 ) FROM cmds.psn_cntr_holder a ,cmds.pol_attrib c ,cmd ...

  6. 简单快速部署samba服务器

    samba是一种在linux环境运行的免费软件,可以为局域网内的不同计算机系统之间提供文件以及打印机等资源的共享服务. samba服务安装和配置: 1.安装gcc编译器以及samba服务和samba依 ...

  7. swift-UITableView

    import UIKit class FirstVC: UIViewController,UITableViewDelegate,UITableViewDataSource { var tableVi ...

  8. js出错总结

    1 没有</script>  src="js" "./js" "../js"2 dom对象与jquery对象(jquery对象其 ...

  9. oracle 函数调用

    --带out的函数 create or replace function fun_try(v_name varchar,v_outname out varchar)return varchar2 is ...

  10. java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12

    最近使用Android Studio开发一个新项目,刚做完几个界面,跑在android 5.0上面很正常,因为都是挺简单的布局,本以为应该不存在兼容性问题(Flag啊). 偶然用了一个4.x的实机测试 ...