由于实时表单验证,jquery 菜单悬停不起作用
好的,我之前发布了一个问题来修复我的实时验证联系表单。现在表单认证工作正常,但我的 jquery 悬停菜单效果正在运行,在其他页面上菜单可以工作,但在联系表单页面上不起作用。.
这里是在线检查它的链接 链接文本
这两个功能之间是否有任何冲突......
<script type="text/javascript">
$(function() {
// set opacity to nill on page load
$("ul#menu span").css("opacity","0");
// on mouse over
$("ul#menu span").hover(function () {
// animate opacity to full
$(this).stop().animate({
opacity: 1
}, 'slow');
},
// on mouse out
function () {
// animate opacity to nill
$(this).stop().animate({
opacity: 0
}, 'slow');
});
});
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
$(function() {
var LV_Name = new LiveValidation('name',{onlyOnSubmit: true });
LV_Name.add(Validate.Presence);
var LV_Email = new LiveValidation('email', {onlyOnSubmit: true });
LV_Email.add(Validate.Presence);
LV_Email.add(Validate.Email);
var LV_Cap = new LiveValidation('cap',{onlyOnSubmit: true });
LV_Cap.add(Validate.Presence);
LV_Cap.add( Validate.Numericality, { is: 4 } );
var LV_Message= new LiveValidation('message', {onlyOnSubmit: true });
LV_Message.add(Validate.Presence);
var service = new LiveValidation('service' , {onlyOnSubmit: true });
service.add( Validate.Exclusion, { within: [ 'None' ] } );
});
</script>
Okay, i posted a question before to fix my live validation contact form. Now the form athentication is working perfectly but my jquery hover menu effects are going, on other pages menu is working but not on the contact form page..
here is the link to check it online link text
is there any conflict between these two functions.....
<script type="text/javascript">
$(function() {
// set opacity to nill on page load
$("ul#menu span").css("opacity","0");
// on mouse over
$("ul#menu span").hover(function () {
// animate opacity to full
$(this).stop().animate({
opacity: 1
}, 'slow');
},
// on mouse out
function () {
// animate opacity to nill
$(this).stop().animate({
opacity: 0
}, 'slow');
});
});
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
$(function() {
var LV_Name = new LiveValidation('name',{onlyOnSubmit: true });
LV_Name.add(Validate.Presence);
var LV_Email = new LiveValidation('email', {onlyOnSubmit: true });
LV_Email.add(Validate.Presence);
LV_Email.add(Validate.Email);
var LV_Cap = new LiveValidation('cap',{onlyOnSubmit: true });
LV_Cap.add(Validate.Presence);
LV_Cap.add( Validate.Numericality, { is: 4 } );
var LV_Message= new LiveValidation('message', {onlyOnSubmit: true });
LV_Message.add(Validate.Presence);
var service = new LiveValidation('service' , {onlyOnSubmit: true });
service.add( Validate.Exclusion, { within: [ 'None' ] } );
});
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
联系页面上的 ul#menu 中没有任何地方有 Span,其他页面上有 Span
关于页面
联系页面
There are no span's anywhere in ul#menu on the contact page, there are span's on the other pages
About page
Contact Page