Je joue un son en cliquant sur un lien, je sais pas beau mais ça marche.Lien hypertexte de travail lors de la redirection de page retour à la page d'origine
Eh bien couru dans un nouveau problème aujourd'hui, le son n'a pas joué la première fois que j'ai cliqué sur le lien ... Mais revenons à la question à portée de main.
La page HTML jouant le son redirige le navigateur vers la page à laquelle je l'ai destiné après avoir joué le son, mais ensuite le plaisir commence.
Quelque chose va à l'encontre des liens dans le code HTML de la page d'origine, le navigateur pour une raison quelconque "superpose" des informations supplémentaires.
Lorsque le HTML d'origine fait référence à
/webapp/play_a_sound.html
La page une fois qu'il est rechargé par la redirection dans la page HTML 2 se réfère tout à coup
// webapp/webapp/Avez-vous remarqué le/webapp/webapp/différence?
J'ai essayé d'utiliser en vain, tout prend sur la façon d'éviter la dégradation de la liaison?
andytest1.html
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>andytest1.html</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head><body>
<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top;">TOPMENU<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">
<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>ÅÅÅÅÅÅ
</a><td style="vertical-align: top;"> <a href="../webapp/play_a_sound.html"> Play Sound</a><br>
</a>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="vertical-align: top;">BOTTOMMENU<br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
</body>
</html>
PLAY_A_SOUND.HTML
<!DOCTYPE HTML>
<html>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>play_a_sound.html</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="refresh" CONTENT="3;URL=..//webapp/andytest1.html/">
<body>
<EMBED src="..//webapp/sound/anysound.wav"" autostart=true loop=false volume=100 hidden=true>
</body>
</html>
Ce problème particulier a été noté à l'aide Ubu ntu 10.04 LTS et Firefox 3.6.11
Et nous avons un gagnant !!! Vous avez absolument raison! Travaillé comme un charme –