The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to make a command wait?
Spectrum
post Aug 29 2016, 09:02 AM
Post #1





Group: Members
Posts: 1
Joined: 29-August 16
Member No.: 24,756



Hi so I am currently coding a website page and i want to make the page wait 10 seconds before playing a YouTube video in the background (audio). All I need help with is creating a timed command
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 29 2016, 10:03 AM
Post #2


.
********

Group: WDG Moderators
Posts: 8,276
Joined: 10-August 06
Member No.: 7



You might let javascript run a timer, and then create the HTML for video.

Or you might use a META redirect (or javascript) to replace a page in an iframe with a new page containing the video, maybe something like this (in the HEAD section of the iframe's default page):

CODE
<meta http-equiv="Refresh" content="10; URL=videopage.html">


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th January 2020 - 10:43 AM