<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. Coreseek 安装指南

    Coreseek 中文官网:http://www.coreseek.cn/ Sphinx0.9.9 中文手册:http://www.coreseek.cn/docs/coreseek_3.2-sphi ...

  2. [html] 有利于seo优化的div+css命名规范

    搜索引擎优化(seo)对命名规范有很多要求,下面是我收集的一些当下主流的命名(还是比较常用的): CSS样式命名 说明 网页公共命名 #wrapper 页面外围控制整体布局宽度 #container或 ...

  3. *HDU3047 并查集

    Zjnu Stadium Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Tota ...

  4. 关于ps中的锯齿

    1.1 索引透明颜色与Alpha透明通道   要说索引颜色透明,首先要讲讲什么是索引颜色,百度百科上有对索引颜色的解释,我觉得很关键的一句是“挑选一副图片中最有代表性的若干种颜色(通常不超过256种) ...

  5. 保护眼睛(ubuntu 和 chrome)

    chrome 安插件https://chrome.google.com/webstore/detail/%E4%BF%9D%E6%8A%A4%E7%9C%BC%E7%9D%9B/fgadnbmmoln ...

  6. hibernate关联关系笔记

    Hibernate关联关系笔记 单向N:1 *  有连接表:在N方使用<join>/<many-to-one>.1方无需配置与之关联的持久化类. *  没有连接表:在N方使用& ...

  7. 【iCore3双核心板】发布 iCore3 硬件手册!

    百度网盘下载: https://pan.baidu.com/s/1jHZJCbW 博客园下载: http://files.cnblogs.com/files/xiaomagee/iCore3%E7%A ...

  8. ajax请求的封装

    前端的工作,免不了要用到交互,请求后端的数据,可能大多人一直选择用jq封装好的方法直接使用,要知道封装这个事我们自己也可以的,今天给大家介绍一种封装方法,而且连跨域问题都不在话下,有了这个函数,是不是 ...

  9. nginx配置之取消index.php同时不影响js,css功能

    server { listen 8084; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; ...

  10. C++ 一次创建多级目录

    #ifdef WIN32 #include <io.h> #include <direct.h> #else #include <unistd.h> #includ ...