我要说的是,我花了新鲜的时间来打ery和 st倒,因此,我试图说出具体的话,但请与我一道。 我试图用模块化,通过清单和重复制作一个案文,其中含有从头脑中的相关链接。
这里的法典Im涉及:
ul#text { position: relative; margin-bottom: 40px; height: 40px; }
ul#text li { position: absolute; display: none; }
.active { font-weight: bold; }
<ul id="text">
<li id="textBody">Suffering is not a result of physical pain alone. It can be compounded by changes in one s life, and changes in the self. <em>We understand, and we can help.</em></li>
<li id="textFamily">Aggressive assessment of physical symptoms & pain in the body are key to support <em>the best possible quality of life</em>.</li>
<li id="textFunction">Chronic pain & illness may affect your role in your family. We work with you and your family as you confront those changes.</li>
<li id="textPsyche">Chronic pain and illness make even everyday activities challenging. We will help you maintain independence and physical function.</li>
<li id="textSuffering">Changes in the physical body mean changes in the self. We will provide support as you navigate those changes in the psyche.</li>
</ul>
<ul id="vivid_buttons">
<li><a href="#" id="buttonBody">BODY</a></li>
<li><a href="#" id="buttonFamily" class="active">FAMILY</a></li>
<li><a href="#" id="buttonFunction">FUNCTION</a></li>
<li><a href="#" id="buttonPsyche">PSYCHE</a></li>
<li><a href="#" id="buttonSuffering">SUFFERING</a></li>
</ul>
$(document).ready(function () {
function fadeAndMove() {
var nextLi = $("#text > li:nth-child(" + i % 5 + ")");
var nextA = $("#vivid_buttons > li:nth-child(" + i % 5 + ") > a");
nextLi.fadeIn(1000, function () {
$("#vivid_buttons > li > a").removeClass("active");
nextA.addClass("active");
setTimeout(function () {
nextLi.fadeOut(1000);
}, 4000);
});
}
for (i = 1; i < 7; i++) {
fadeAndMove($("#text"));
}
});
简言之,我想从第一个名单上删除一句,并强调下个名单上的相应联系。 然后,我想谈谈下一个项目。
我认为,我可以使用组合((%),并 lo,通过和创造无限的住所,但当我这样认为,它一劳永逸地执行所有事情时,就不通过(穿透和排出)每个项目。
我知道这一点令人困惑,但我不胜感激我能得到的任何帮助。