<div class="codetitle"> <span><a style="CURSOR: pointer" data="40044" class="copybut" id="copybut40044" onclick="doCopy('code40044')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code40044"> <br><!DOCTYPE HTML> ; <br><head> <br><meta charset="utf-8"> <br><title>js 이메일 주소 점프</title> " src="jquery.js"></script> <br><script type="text/javascript"> <br>var hash={ <br>'qq.com': 'http:/ / mail.qq.com', <br>'gmail.com': 'http://mail.google.com', <br>'sina.com': 'http://mail.sina.com.cn ' , <br>'163.com': 'http://mail.163.com', <br>'126.com': 'http://mail.126.com', <br>'네. net': 'http://www.yeah.net/', <br>'sohu.com': 'http://mail.sohu.com/', <br>'tom.com': 'http: / /mail.tom.com/', <br>'sogou.com': 'http://mail.sogou.com/', <br>'139.com': 'http://mail.10086. cn /', <br>'hotmail.com': 'http://www.hotmail.com', <br>'live.com': 'http://login.live.com/', <br> ' live.cn': 'http://login.live.cn/', <br>'live.com.cn': 'http://login.live.com.cn', <br>'189. com': 'http://webmail16.189.cn/webmail/', <br>'yahoo.com.cn': 'http://mail.cn.yahoo.com/', <br>'yahoo. cn': 'http://mail.cn.yahoo.com/', <br>'eyou.com': 'http://www.eyou.com/', <br>'21cn.com': ' http://mail.21cn.com/', <br>'188.com': 'http://www.188.com/', <br>'foxmail.coom': 'http://www. foxmail .com' <br>}; <br><br>$(function(){ <br>$(".mail").each(function() { <br>var url = $(this).text ( ).split('@')[1]; <br>for (var j in hash){ <br>$(this).attr("href", hash[url]) <br>} <br> }); <br></script> <br><br><body> " class="mail">laike@qq.com</a> <br> <br><a href="#" target="_blank" class="mail">laike@gmail.com< /a> <br><a href="#" target="_blank" class="mail">laike@sina.com</a> <br><a href = "#" target="_blank" class="mail">laike@163.com</a> <br> <br><a href="#" target="_blank" class="mail" >laike@souhu.com</a> <br> <br><a href="#" target="_blank" class="mail">laike@hotmail.com<br> < ;/body> <br></html> <br><br> </div>