select跳转的三种方式
来源:互联网 发布:怎么提高淘宝信誉评级 编辑:程序博客网 时间:2024/06/06 07:03
以下是select跳转的三种方式 ,希望对你们有帮助
第一种:
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>select加链接</title></head><body><SCRIPT language=javascript><!--// open the related site windowsfunction mbar(sobj) {var docurl =sobj.options[sobj.selectedIndex].value;if (docurl != "") { open(docurl,'_blank'); sobj.selectedIndex=0; sobj.blur();}}//--></SCRIPT><Select onchange=mbar(this) name="select"><OPTION selected>=== 合作伙伴 ===</OPTION><OPTION value="http://www.choksun.com">创盛科技</OPTION><OPTION value="http://www.jinduo.com">金舵</OPTION><OPTION value="http://www.flash8.net/">闪吧</OPTION></Select></body></html>
第二种:
<select name="pageselect" onchange="self.location.href=options[selectedIndex].value" ><pre name="code" class="html"><OPTION value="http://www.choksun.com">创盛科技</OPTION><OPTION value="http://www.jinduo.com">金舵</OPTION></select>
第三种:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>select按钮跳转</title><script type="text/javascript">function setsubmit(){if(mylink.value == 0)window.location='http://www.choksun.com';if(mylink.value == 1)window.location='http://www.163.com';if(mylink.value == 2)window.location='http://www.sina.com';}</script></head><body><select name="mylink" id="mylink"><OPTION value="0">创盛</OPTION><OPTION value="1">网易</OPTION><OPTION value="2">新浪</OPTION></select><input type="button" id="btn" value="提交" onclick="setsubmit(this)" /></body></html>
0 0
- select跳转的三种方式
- select 内实现直接跳转的三种方式
- 三种跳转方式
- JSP三种跳转方式的比较
- PHP跳转页面的三种方式
- PHP跳转页面的三种方式
- PHP跳转页面的三种方式
- JSP的三种跳转方式
- 页面跳转的三种方式
- servlet的三种跳转方式
- IOS页面跳转的三种方式
- 页面跳转的三种js方式
- Servlet跳转的三种方式
- jsp三种跳转方式
- jsp三种跳转方式
- 页面跳转三种方式
- ViewController跳转的三种方式的混合使用
- JSP三种页面跳转方式的比较
- Instrumentation.ActivityMonitor及例子
- QGroupBox应用,extension widget create!
- Android_图片处理_高效Bitmap
- 特别困的学生(Extraordinarily Tired Students)
- 用Meta标签代码让360双核浏览器默认极速模式打开网站不是兼容模式(顺带解决很多兼容性问题)
- select跳转的三种方式
- (笔记)委托的几种用法
- DisplayImageOptions对象的使用和".9"图片的冲突问题
- gcc -D选项的作用
- ios KVO键值观察者详解
- UVa 12563 Jin Ge Jin Qu hao(01背包)
- mac的launchpad里无效的应用程序图标
- (二十三)通知机制及其应用
- Windows Phone 8.1触控输入-----手势及指针