הבנתי איך לעשות את זה, הנה הסקריפט לכל אלה שתקועים או יתקעו בבעיה זאת בעתיד.. תודה
קוד:
<div id="first">
<img src="images/first.jpg"><br>
<a href="#" onclick="displayf(); return false;">דלג</a>
</div>
<div id="second" style="display:none;">
<img src="images/second.jpg"><br>
</div>
הקוד של ג'אווה, למקרה ולחצו על "דלג" אז המחשב יריץ את הפונקציה DISPLAYF וה-DIV FIRST יעלם ובמקומו יופי DIV SECOND, ובמקרה ולא לחצו כשהזמן יגמר, כלומר יעברו 10 שניות המחשב יריץ את הפונקציה DISPLAYF כאילו ולחצנו על "דלג".
קוד:
<script type="text/javascript">
function displayf()
{
document.getElementById("first").style.display = "none";
document.getElementById("second").style.display = "block";
}
setTimeout("displayGame()",10000);
</script>
תודה, אפשר לנעול
