2013-03-06 72 views
0

我的Drupal网站有问题。 我正在使用Colorbox加载订阅表单,但表单焦点丢失。例如可在http://luchshieceni.ru/Formbox焦点丢失在颜色盒

window.jQuery(document).ready(function($) { 
$('.colorbox5').colorbox({open:true, inline:true, href:'div#content5'}); 
}); 

这里是形式

<form class="sr-box" method="post" action="https://smartresponder.ru/subscribe.html" target="_blank" name="SR_form_63724_75">  
<input type="text" name="field_name_first" class="form-txt" value="Ваше имя" onfocus="value='';"> 
<input type="text" name="field_email" class="form-txt" value="Ваша электронная почта" onfocus="value='';"> 
<input type="submit" value="Подписаться" name="subscribe" id="" class="sub-btn">      
     </form> 

能不能请你帮我? 在此先感谢!

回答

2

我有同样的问题。我遵循Drupal论坛上的建议(同一问题的双后),是的,它也解决了我的问题。我:

$.colorbox({rel:'nofollow', preloading:false, open:true, inline:true, href:popup, scalePhotos:false, iframe:true, arrowKey:false, transition:"none", slideshow:false }); 

jQuery选择不能同A HREF:

$(popup).colorbox({rel:'nofollow', preloading:false, open:true, inline:true, href:popup, scalePhotos:false, iframe:true, arrowKey:false, transition:"none", slideshow:false }); 

与固定它。

这是非常模糊的,并没有记录在任何地方。并导致重大问题。所以我希望它能帮助别人。