如何在点击锚标签和背景时显示一个小的登录框应该不被禁用 [英] how to show a small login box on click of anchor tag and background should be not disable
本文介绍了如何在点击锚标签和背景时显示一个小的登录框应该不被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个锚标记
i have an anchor tag
<a href="#"> Sign in</a>
这是标题,我希望当我点击这个登录链接打开一个框,用户可以从这里登录而不进入另一个页面,并在打开框背面显示不应该是diable或darl ????
我该怎么做????
this is in header and i want that when i click on this sign in link a box open and user can login from here without going on a another page and during the opening of box back display should not be diable or darl????
how can i do this????
推荐答案
几个月前,我复制了代码项目登录框,它在Mouse Hover上打开。 br $>
演示 - 代码项目登录框 [ ^ ]
您可以点击Anchor尝试这样的事情。逻辑如下所示......
- 将登录框保留在 Div 并使其
显示无
(隐藏它)。- 在 Anchor 上单击,调用
javaScript
function。- 在该函数中,将<$> code>显示属性更改为阻止 登录Div (显示)。
Some months ago, I replicated the Code Project Sign In Box, which opens on Mouse Hover.
Demo - Code Project Sign In Box[^]
You can try something like this on click of Anchor. Logic will be like below...
- Keep the Login Box inside a Div and make it
display none
(hide it).- On Anchor click, call a
javaScript
function.- In that function, change the
display property to Block
for the Sign In Div (Show it).
这篇关于如何在点击锚标签和背景时显示一个小的登录框应该不被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文