zoukankan      html  css  js  c++  java
  • select iframe 基础 用法

    <script type="text/javascript"> 
    function setsubmit() 
    { 
    if(mylink.value == 0) 
    window.location='http://www.baidu.com'; 
    if(mylink.value == 1) 
    window.location='http://www.w3cschool.cn'; 
    if(mylink.value == 2) 
    window.location='http://www.youj.com'; 
    } 
    </script> 
    </head> 
    <body> 
    <select name="mylink" id="mylink">
    <OPTION value="0">百度</OPTION>
    <OPTION value="1">w3cschool在线教程</OPTION>
    <OPTION value="2">优聚</OPTION>
    </select>
    <input type="button" id="btn" value="提交" onclick="setsubmit(this)" /> </body> </html>

    post['mylink']  == 选中的 option 的 val;
    <div class="sideNav">
    				<ul>
    					<li><a href="https://www.baidu.com/index.php?tn=90300864_hao_pg" target="mainContent" class="left_menu on"><span>></span>百度</a></li>
    					<li><a href="http://www.people.com.cn/" target="mainContent" class="left_menu"><span>></span>人民网</a></li>
    					<li><a href="/do.plan_little.html" target="mainContent" class="left_menu"><span>></span>按日操盘</a></li>
    					<li><a href="/do.plan.html" target="mainContent" class="left_menu"><span>></span>按月操盘</a></li>
    					<li><a href="/do.pay.html" target="mainContent" class="left_menu"><span>></span>充值转入</a></li>
    					<li><a href="/do.atm.html" target="mainContent" class="left_menu"><span>></span>盈利转出</a></li>
    					<li><a href="/do.money.html" target="mainContent" class="left_menu"><span>></span>资金明细</a></li>
    					<li><a href="http://www.qcj18.com/gonggao"  target="_blank" target="mainContent" class="left_menu"><span>></span>网站公告</a></li>
    					<li><a href="/logout.php" target="_parent" class="left_menu"><span>></span>退出登录</a></li>
    				</ul>
    			</div>
    		</div>
    		<div class="right" style=" 880px;">
    			<iframe id="mainContent"  name="mainContent" src="https://www.baidu.com/index.php?tn=90300864_hao_pg" width="100%" height="870" scrolling="no" frameborder="0"></iframe>
    

      

  • 相关阅读:
    python GUI
    Python 博客网站资源
    Python 100 天学习计划
    pycharm基本设置
    MySQL 57安装部署(Zip版)(Windows版)
    nginx在centos下的安装
    仓位计算
    python笔记
    vue(一)--监听事件
    Hibernate(五)--级联
  • 原文地址:https://www.cnblogs.com/benpaodegegen/p/7126832.html
Copyright © 2011-2022 走看看