0

I am making a html and javascript game. I have a title picture of my company but need to display of for only a few seconds how should I do this?

0

1 Answer 1

1

Here's the FIDDLE. Try setTimeout.

setTimeout(function () {
    alert("Hello");
    //your code here...
}, 3000);
Sign up to request clarification or add additional context in comments.

2 Comments

That won't work beacuse rat will bring it back to that function every few seconds I need it to show once and stop
the code will be run only onced. what are you talking about is setInterval.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.