admin管理员组文章数量:1663657
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>js邮箱地址跳转</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
var hash={
'qq': 'http://mail.qq',
'gmail': 'http://mail.google',
'sina': 'http://mail.sina',
'163': 'http://mail.163',
'126': 'http://mail.126',
'yeah': 'http://www.yeah/',
'sohu': 'http://mail.sohu/',
'tom': 'http://mail.tom/',
'sogou': 'http://mail.sogou/',
'139': 'http://mail.10086/',
'hotmail': 'http://www.hotmail',
'live': 'http://login.live/',
'live': 'http://login.live/',
'live': 'http://login.live',
'189': 'http://webmail16.189/webmail/',
'yahoo': 'http://mail.yahoo/',
'yahoo': 'http://mail.yahoo/',
'eyou': 'http://www.eyou/',
'21cn': 'http://mail.21cn/',
'188': 'http://www.188/',
'foxmail.coom': 'http://www.foxmail'
};
$(function(){
$(".mail").each(function() {
var url = $(this).text().split('@')[1];
for (var j in hash){
$(this).attr("href", hash[url]);
}
});
})
</script>
</head>
<body>
<a href="#" target="_blank" class="mail">laike@qq</a> <br>
<a href="#" target="_blank" class="mail">laike@gmail</a> <br>
<a href="#" target="_blank" class="mail">laike@sina</a> <br>
<a href="#" target="_blank" class="mail">laike@163</a> <br>
<a href="#" target="_blank" class="mail">laike@souhu</a> <br>
<a href="#" target="_blank" class="mail">laike@hotmail</a>
</body>
</html>
版权声明:本文标题:根据邮箱的域名跳转到相应的登录页面的代码 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1730001355a1218831.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论