2017-04-22 4 views
0

こんにちは私のウェブサイトのホームページを運営する次のコードがありますが、サイトを開始するたびに埋め込み部からの音声が再生され、ウェブサイトでは、最初にオーディオを再生しないようにするエンベッドタグに入れることができる属性があるのか​​、それともあなたが知っているこの問題を修正する他の方法があるのか​​疑問に思っていましたか?埋め込み部が開始時に音声を再生しないようにする方法

<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <link rel="icon" href="Images/favicon-16x16.png" type="image/png"> 
    <title>Web Portfolio: Patrick White's Index Page</title> 
    <style> 
    body { 
    font-size: 1.1em; 
    font-weight: bold; 
    font-family: Century Gothic, Sans-serif; 
    color: #02849D; /*dark navy blue*/ 
    text-align: left; 
    /*Personal Addition*/ 
    background-image: url("Images/Black_Rainbow.jpg"); 
    background-size: 1900px 1400px; 
    background-repeat: no-repeat; 
    } 
    h1 { 
    font-size: 1.8em; 
    font-weight: bold; 
    color: #02849D; 
    text-align: center; 
    } 
    a:link { 
    color: #31AEC5; 
    } 
    a:visited { 
    color: #015261; 
    } 
    a:hover { 
    color: #505050; 
    } 
    #divembed { 
    float: right 
    } 
    .button { 
    background-color: #707070; /*grey*/ 
    border: none; 
    color: #02849D; /*bright blue*/ 
    width: 450px; 
    height: 75px; 
    text-align: center; 
    line-height: 75px; /*centers the text vertically*/ 
    text-decoration: none; 
    display: inline-block; 
    font-size: 1.1em; 
    font-family: Century Gothic; 
    font-weight: bold; 
    } 
    </style> 
</head> 
<body> 
<div> 
    <a href="#main">Skip to main content</a> 
    </div> 
    <h1>Patrick White Web Portfolio</h1> 
    <div id="divembed"> 
    <a href="http://www.gamesembedcode.com/2011/07/tennis-flash-game.html"></a> 
    <embed src="http://www.freegaming.de/components/flash/7196382252.swf?affiliate_id=941efa0f97e566c4" quality="high" bgcolor="#e8ffff" width="480" height="480" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> 
    </div> 
    <div> 
    <ul> 
     <li>Patrick White</li> 
     <li><a href="mailto:[email protected]">[email protected]</a></li> 
     <li>843-653-3474</li> 
     <li>link to one of my favourite <a href="http://eelslap.com/" target="_blank">websites</a></li> 
     <li>If you like goats, download my presentation! In either: <a href="Images/GOATS.pdf" download>PDF</a>, <a href="Images/GOATS_VIDEO.wmv" download>Video</a>, <a href="Images/GOATS.odp">Open Office</a> or <a href="Images/GOATS.ppt">Microsoft Powerpoint</a></li> 
    </ul> 
    </div> 
    <div> 
    <ul> 
     <li>I.T. 9 (1-2)</li> 
     <li>Mr. Gabriel Jones</li> 
     <li>Web Design</li> 
     <li><a href ="http://go.vsb.bc.ca/schools/pointgrey/Pages/Default.aspx" target="_blank">Point Grey Secondary</a>, 2016-2017</li> 
    </ul> 
    </div> 
    <nav> 
    <ul> 
     <li><a href="index.html">Home</a></li> 
     <li><a href="Accesibility.html">Accessibility</a></li> 
     <li><a href="Usability.html">Usability</a></li> 
     <li><a href="Graphics.html">Graphics</a></li> 
     <li><a href="JavaScript.html">JavaScript</a></li> 
     <li><a href="Tools.html">Tools</a></li> 
     <li><a href="Video.html">Video</a></li> 
    </ul> 
    </nav> 
    <main id="main"> 
    <p>This web portfolio includes examples of my works in Mr. Jones' Web Design class. It also includes my reflections (below) in what I learned with each unit of the course.</p> 
    <h2>Unit 2</h2> 
    <p>In this section, I learned the basics of a fundamental scripting language for website design; <i>HTML5</i>. I learned about some of the many tags that are useful in the design of websites that will assist me in my prospective career in web design. In this unit I was presented with many resources to ensure that my HTML code was formatted correctly and was error-free, in the form of online generators. We also learned a great deal about how to incorporate links and images into our file, of which I found particularly interesting. In this section we learned a lot about how to input the actual content of our websites, and I am very excited for the future units in which we get to further design this content to seem visually appealing.</p> 
    <h2>Unit 3</h2> 
    <p>This section will be completed soon</p> 
    <h2>Unit 4</h2> 
    <p>This section will be completed soon</p> 
    <h2>Unit 5</h2> 
    <p>This section will be completed soon</p> 
    <h2>Unit 6</h2> 
    <p>This section will be completed soon</p> 
    <h2>Unit 7</h2> 
    <p>This section will be completed soon</p> 
    </main> 
    <a href="http://www.coolmath-games.com/0-me-and-the-key" target="blank" class="button">Click to Play One of My Favourite Games!</a> 
</body> 
</html> 

答えて

0

あなたが、少なくとも日干しに壊れたリンクと、この古い答えによると、SWFのソースへのアクセス権を持っていない限り、これは可能であるように見えるしていません:Disabling sound of embedded flash object with htmlを。それがあなたのゲームの場合は、ページではなく調整することを強くお勧めします。ソースを変更する(または開発者に依頼する)のが最も推奨されるソリューションです。

大部分は、ブラウザ拡張機能のユーザーがページからの音声をミュートするための推奨事項です。ソースを持たずにゲームを組み込むことをお勧めします。この記事では、Chrome、Firefox、Operaについて説明します。http://www.makeuseof.com/tag/mute-sound-webpages-embedded-audio-flash/

これはおそらく、主題で見つけた最も深い交換でした:https://www.experts-exchange.com/questions/26480933/Ho-to-disable-audio-of-the-SWF-file-in-Java-Script-HTML.html別のプレイヤーを指定すると、「音量」パラメーターを「0」または「ミュート」パラメーターを「true」に変更することができます。私はあなたの目的のために彼らが推薦した選手の有効性について話すことはできませんが、最後のリンクに含まれています。

最後の男には、彼の例で「偽」に設定された「自動再生」パラメータも含まれています。私はおそらくそれが含まれていると同様のトラブルを抱えていたので、あなたの問題を解決することはありませんが、それを傷つけることはないと思う。

+0

ご回答ありがとうございます。この結果、効果的にHTML文書からすべてのオーディオを削除する方法があるかどうかを知りますか?私は実際には文書上に音声を全く望んでいないので、 – Spatrico

+0

この特定のケースでは方法がある場合、私はそれを見つけることができません。私はこの物には比較的新しいので、どうしても見ています。 – Raj

+0

htmlがある限り、異なるブラウザでは、いくつかの異なるオーディオ形式(https://www.w3schools.com/tags/tag_audio.asp)でさまざまなことを行うことができます。許容範囲内でフォーマットされたオーディオ(またはビデオ)コンテンツは、これらのツールを簡単に利用できますが、フラッシュは異なります。 Afumaは、フラッシュゲームの動作を変更する(起動時に音を消す、ミュートボタンや音量スライダを追加するなど)、ソースファイルを直接変更したり、ゲームの開発者にそれをさせる必要があります。それが助けが得られれば、ユーザーはしばしばブラウザのフラッシュを制限することがありますが、回避しようとしていることを避けるためにしばしばです。 – Raj

関連する問題