30 초 후이 스크립트를 자동 변경하려고하는데 jquery가 좋지는 않지만 시도해 봐. 이것은 .php 페이지에 있습니다. 다른 폴더에서 자바 스크립트를 가져 오는 데 사용하고 있습니다.jquery 스크립트를 만들었습니다.이 스크립트를 자동 전환하는 방법에 대한 도움이 필요합니다.
<div id="subnavi">
<div id="subnavi-user">
<div style="margin-top:7px"><b>Fact:</b> <script language="JavaScript">
var r_text = new Array();
r_text[0] = "{hotelName} was founded in 2011 by Kyle";
r_text[1] = "{hotelName} strives to remain as professional as possible.";
r_text[2] = "{hotelName} will only keep on growing if you vote daily!";
r_text[3] = "Purchasing VIP in the forums helps with the monthly server costs.";
r_text[4] = "{hotelName} Is a new and developing RP!";
window.setInterval(function(){
var i = Math.floor(4 * Math.random())
document.write(r_text[i]);
var random = r_text[1];
}, 5000);
</script>
</div>
</div>
<div id="subnavi-search">
<div id="subnavi-search-upper">
<ul id="subnavi-search-links">
<li><a href="{url}/logout" style="color:#000">Sign Out</a></li>
여기 정확히 목표는 무엇입니까? 타이머에서 전환하려고합니까? 또는 버튼을 클릭 할 때? – attila
나는 타이머에 그것을 원한다. 나의 잘못은 분명하지 않다. – Kyleeck
자바 스크립트의 setInterval을 찾고 있다고 생각합니다. – attila