הבדלים בין גרסאות בדף "תבנית:באנר-ארגון-עצמי"
קפיצה לניווט
קפיצה לחיפוש
(יצירת דף עם התוכן "<div id="image-banner" {{#תנאי:{{{title|}}}|title="{{{title}}}"|}}> <html><div style="position: fixed; z-index: -99; width: 100%; height: 100%"> <iframe fram...") |
|||
(8 גרסאות ביניים של אותו משתמש אינן מוצגות) | |||
שורה 1: | שורה 1: | ||
<div id="image-banner" {{#תנאי:{{{title|}}}|title="{{{title}}}"|}}> | <div id="image-banner" {{#תנאי:{{{title|}}}|title="{{{title}}}"|}}> | ||
− | <html><div style="position: fixed | + | <html> |
− | < | + | <div style="position: fixed; width: 100%; height: 100%"> |
− | </ | + | <div id="player"></div> |
− | + | </div> | |
− | + | <script> // 2. This code loads the IFrame Player API code asynchronously. | |
− | + | var tag = document.createElement('script'); | |
− | + | tag.src = "http://www.youtube.com/player_api"; | |
− | + | var firstScriptTag = document.getElementsByTagName('script')[0]; | |
+ | firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | ||
+ | |||
+ | // 3. This function creates an <iframe> (and YouTube player) | ||
+ | // after the API code downloads. | ||
+ | var player; | ||
+ | function onYouTubePlayerAPIReady() { | ||
+ | player = new YT.Player('player', { | ||
+ | playerVars: { 'autoplay': 1, 'controls': 0,'autohide':1,'wmode':'opaque', 'vq': 'hd1080' }, | ||
+ | videoId: 'KGegmMWsgu8', | ||
+ | events: { | ||
+ | 'onReady': onPlayerReady} | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | // 4. The API will call this function when the video player is ready. | ||
+ | function onPlayerReady(event) { | ||
+ | event.target.mute(); | ||
+ | } | ||
+ | </script> | ||
+ | <div id="newHeading"></div> | ||
+ | <br /> | ||
+ | <a href="#content" id="heroButton"><i class="fa fa-chevron-circle-down"></i></a></html> | ||
+ | |||
</div> | </div> | ||
− |