몇 주 후에 다시 방문하겠습니다. 이전에는 작동하지 않았으므로 지금은 기대하고 있습니다.focus-jquery를 사용하여 div를 확장하십시오.
이 웹 사이트를 보시려면 오른쪽 상단의 뉴스 레터 등록 양식을 확인하십시오.
내가 지금은 정확히 이런 식으로보고를 걸려 있지만, 상자에 사용자가 클릭 이메일 주소를 입력 할 때, 컨테이너 div가에 이메일 필드 위에 확장 (또는 간단히 표시됩니다) 또한 "이름"과 "도시"필드를 포함합니다.
jquery를 자유롭게 사용하고 있으므로 처분 할 수 있습니다. 이 양식은 등 몸 태그를 withing에 할 수없는 헤더 때문에 어떤 ID 정보에 ...
이
내가 지금까지 무엇을 가지고 :<div class="outeremailcontainer">
<div id="emailcontainer">
<?php include('verify.php'); ?>
<form action="index_success.php" method="post" id="sendEmail" class="email">
<h3 class="register2">Newsletter Signup:</h3>
<ul class="forms email">
<li class="email"><label for="emailFrom">Email: </label>
<input type="text" name="emailFrom" class="info" id="emailFrom" value="<?= $_POST['emailFrom']; ?>" />
<?php if(isset($emailFromError)) echo '<span class="error">'.$emailFromError.'</span>';
?>
</li>
<li class="buttons email">
<button type="submit" id="submit">Send</button>
<input type="hidden" name="submitted" id="submitted" value="true" />
</li>
</ul>
</form>
<div class="clearing">
</div>
</div>
CSS :
p.emailbox{
text-align:center;
margin:0;
}
p.emailbox:first-letter {
font-size: 120%;
font-weight: bold;
}
.outeremailcontainer {
height:60px;
width: 275px;
background-image:url(/images/feather_email2.jpg);
/*background-color:#fff;*/
text-align:center;
/* margin:-50px 281px 0 auto ; */
float:right;
position:relative;
z-index:1;
}
form.email{
position:relative;
}
#emailcontainer {
margin:0;
padding: 0 auto;
z-index:1000;
display:block;
position:relative;
}
도움 주셔서 감사합니다!
조엘
아주 멋진 (I 데모의 PHP를 제거)! 이제 도망쳐 야하지만 오늘 저녁에이 일을 할 것입니다. 덕분에, 데모를 함께 넣어 주셔서 감사합니다! – Joel
oops-this는 IE에서 작동하지 않습니다. – Joel
죄송합니다. 죄송합니다. IE에서 .slideDown()이 제대로 작동하지 않는다는 것을 알지 못했습니다. 나는이 기사 (http://www.beyondcoding.com/2009/02/26/jquery-slidedown-issues-in-ie-quick-fixes/)에 수정이 있었지만 약간 수정했다. .slideDown (300, function() {$ (this) .show();});') .slideDown (300)'을 사용하면됩니다. :) – Mottie