iframe标签使用

<select name="notice_type" id="notice_type" onchange="getSelect();" style="width: 150px">
                        <option value="">请选择</option>
                        <option value="1">活动</option>
                        <option value="2">资讯</option>
                    </select>
<div id="div1" class="hidden">
        <iframe width="100%" height="500px" id="iframeList" frameborder="no" border="0" scrolling="no" src=""></iframe>
    </div>
function getSelect() {
        if(notice_type == 1){
            $("#iframeList").attr("src","<%=path %>/notice/activityList.do");
        }else if (notice_type == 2) {
            $("#iframeList").attr("src","<%=path %>/notice/infoList.do");
        }
        $("#div1").removeClass('hidden').addClass('display');
    }


你可能感兴趣的:(iframe标签使用)