Hallo liebe Community!
Ich möchte das auf Knopfdruck auf ein MouseOver Bild ein bestimmtes Lied ertönt.
Die Mouseoverbilder und meinen Musik-Player habe ich schon, ich weiß nur nicht wie man das als Funktion verlinkt.
Mein Code sieht Momentan so aus:
Ich bedanke mich schon mal im Voraus!
Ich möchte das auf Knopfdruck auf ein MouseOver Bild ein bestimmtes Lied ertönt.
Die Mouseoverbilder und meinen Musik-Player habe ich schon, ich weiß nur nicht wie man das als Funktion verlinkt.
Mein Code sieht Momentan so aus:
Code:
<html>
<head>
<meta charset="utf8"/>
<title>Linkes Frame</title>
<link rel="stylesheet" href="main.css"/>
<style style="text/css">
body {
background-image: url("Hintergrund.jpg");
background-position: 50% 50%;
background-repeat: repeat;
}
</style>
<script>
function PegboardNerds() {
[WAS KOMMT HIER HIN?]
}
</script>
</head>
<body>
<form name="links">
</form>
<center>
<!--LINKS-->
<!--Pegboard Nerds-->
<a href="https://www.monstercat.com/artists/PegboardNerds/">
<img src="PegboardNerdsLogo.png" onClick="PegboardNerds()" alt="" heigth="200" width="200"
onMouseOver="src='PegboardNerds.png'"
onMouseOut="src='PegboardNerdsLogo.png'" /></a>
<br>
<br>
<!--Razihel-->
<a href="https://www.monstercat.com/artists/Razihel/">
<img src="RazihelLogo.png" alt="" heigth="200" width="200"
onMouseOver="src='Razihel.png'"
onMouseOut="src='RazihelLogo.png'" /></a>
<br>
<br>
<!--Tristam-->
<a href="https://www.monstercat.com/artists/Tristam/">
<img src="TristamLogo.png" alt="" heigth="200" width="200"
onMouseOver="src='Tristam.png'"
onMouseOut="src='TristamLogo.png'" /></a>
</center>
<center>
<audio preload controls>
<source src="audio.mp3"
</audio>
</body>
</html>
Ich bedanke mich schon mal im Voraus!