我如何隐藏像这个网站这样的电话号码 [英] how can i hide phone number like this website
本文介绍了我如何隐藏像这个网站这样的电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想以此网站的身份将我的电话号码隐藏在我的目录中
http://uk.nomao.com/9486768.html [解决方案
这不是一个很大的谜.他们只是有一个JavaScript事件来处理文本的click事件,并将其替换为电话号码. .
页面加载时显示链接,单击链接时使用jquery隐藏链接并显示电话号码...
http://api.jquery.com/hide/ [ http://api.jquery.com/show/ [http://uk.nomao.com/9486768.html[^]
so please can you help me how to do thing like that and how this website hide this number ????解决方案Its not a great mystery. They simply have a a JavaScript event to handles the click event for the text and replaces it with the phone number.
have a phone store in a label and add a link next to it.
on page load show the link and on click of the link use jquery to hide the link and show the phone number...
http://api.jquery.com/hide/[^]
http://api.jquery.com/show/[^]
这篇关于我如何隐藏像这个网站这样的电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文