私はclass = valueのすべてのスパンで1秒間隔で通貨を回転させる簡単なスクリプトを探しています。jQueryで通貨を回転する
<script type="text/javascript">
$(document).ready(function() {
var str1 = "£";
var str2 = "€";
var str3 = "$";
$("span.value").text(str1); //how can I rotate between the str1, 2 and 3 with a 1 second interval?
});
</script>
HTMLは次のようになります。すべてのヘルプは高く評価され
<h2>Get <span class="value"></span> discount.</h2>
<h3>Get <span class="value"></span> extra.</h3>
などを...!
どうもありがとう、みんな! – NicoF