Hallo,
ich habe eine Frage:
Kann ich mit css hover effect einen Ton erzeugen oder abrufen?
zum mal schauen was ich meine:
Ich habe ein Klavier mit css zusammengebastelt und möchte nun das auch der dazugehörige Klavierton ausgegeben wird.
CSS-Script:
#btn_galerie_0 { width:90px;
height:379px;
left:600px;
top:400px;
position:absolute;
display:block;
background-image:url(galerie.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_galerie_0:hover { width:90px;
height:379px;
display:block;
background-image:url(galerie_gd.png);
}
#btn_taste_schwarz_0 { width:50px;
height:190px;
left:658px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_0:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_mi_0 { width:90px;
height:379px;
left:680px;
top:400px;
position:absolute;
display:block;
background-image:url(mi_os.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_mi_0:hover { width:90px;
height:379px;
display:block;
background-image:url(mi_os_gd.png);
}
#btn_taste_schwarz_1 { width:50px;
height:190px;
left:755px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_1:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_ueber_0 { width:90px;
height:379px;
left:759px;
top:400px;
position:absolute;
display:block;
background-image:url(ueber.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_ueber_0:hover { width:90px;
height:379px;
display:block;
background-image:url(ueber_gd.png);
}
#btn_li_os_0 { width:90px;
height:379px;
left:838px;
top:400px;
position:absolute;
display:block;
background-image:url(li_os.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_li_os_0:hover { width:90px;
height:379px;
display:block;
background-image:url(li_os_gd.png);
}
#btn_taste_schwarz_2 { width:50px;
height:190px;
left:894px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_2:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_feste_1 { width:90px;
height:379px;
left:917px;
top:400px;
position:absolute;
display:block;
background-image:url(gaeste.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_feste_1:hover { width:90px;
height:379px;
display:block;
background-image:url(gaeste_gd.png);
}
#btn_taste_schwarz_3 { width:50px;
height:190px;
left:984px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_3:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_mi_2 { width:90px;
height:379px;
left:997px;
top:400px;
position:absolute;
display:block;
background-image:url(mi_os.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_mi_2:hover { width:90px;
height:379px;
display:block;
background-image:url(mi_os_gd.png);
}
#btn_taste_schwarz_4 { width:50px;
height:190px;
left:1071px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_4:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_kontakt { width:90px;
height:379px;
left:1076px;
top:400px;
position:absolute;
display:block;
background-image:url(kontakt.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_kontakt:hover { width:90px;
height:379px;
display:block;
background-image:url(kontakt_gd.png);
}
Wäre cool wenn jemand von euch ne Idee oder einen Denkanstoß für mich hat.
ich habe eine Frage:
Kann ich mit css hover effect einen Ton erzeugen oder abrufen?
zum mal schauen was ich meine:
Ich habe ein Klavier mit css zusammengebastelt und möchte nun das auch der dazugehörige Klavierton ausgegeben wird.
CSS-Script:
#btn_galerie_0 { width:90px;
height:379px;
left:600px;
top:400px;
position:absolute;
display:block;
background-image:url(galerie.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_galerie_0:hover { width:90px;
height:379px;
display:block;
background-image:url(galerie_gd.png);
}
#btn_taste_schwarz_0 { width:50px;
height:190px;
left:658px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_0:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_mi_0 { width:90px;
height:379px;
left:680px;
top:400px;
position:absolute;
display:block;
background-image:url(mi_os.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_mi_0:hover { width:90px;
height:379px;
display:block;
background-image:url(mi_os_gd.png);
}
#btn_taste_schwarz_1 { width:50px;
height:190px;
left:755px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_1:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_ueber_0 { width:90px;
height:379px;
left:759px;
top:400px;
position:absolute;
display:block;
background-image:url(ueber.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_ueber_0:hover { width:90px;
height:379px;
display:block;
background-image:url(ueber_gd.png);
}
#btn_li_os_0 { width:90px;
height:379px;
left:838px;
top:400px;
position:absolute;
display:block;
background-image:url(li_os.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_li_os_0:hover { width:90px;
height:379px;
display:block;
background-image:url(li_os_gd.png);
}
#btn_taste_schwarz_2 { width:50px;
height:190px;
left:894px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_2:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_feste_1 { width:90px;
height:379px;
left:917px;
top:400px;
position:absolute;
display:block;
background-image:url(gaeste.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_feste_1:hover { width:90px;
height:379px;
display:block;
background-image:url(gaeste_gd.png);
}
#btn_taste_schwarz_3 { width:50px;
height:190px;
left:984px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_3:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_mi_2 { width:90px;
height:379px;
left:997px;
top:400px;
position:absolute;
display:block;
background-image:url(mi_os.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_mi_2:hover { width:90px;
height:379px;
display:block;
background-image:url(mi_os_gd.png);
}
#btn_taste_schwarz_4 { width:50px;
height:190px;
left:1071px;
top:390px;
position:absolute;
display:block;
background-image:url(taste_schwarz.png);
background-repeat:no-repeat;
z-index:5;
}
#btn_taste_schwarz_4:hover { width:50px;
height:379px;
display:block;
background-image:url(taste_schwarz_gd.png);
}
#btn_taste_kontakt { width:90px;
height:379px;
left:1076px;
top:400px;
position:absolute;
display:block;
background-image:url(kontakt.png);
background-repeat:no-repeat;
z-index:4;
}
#btn_taste_kontakt:hover { width:90px;
height:379px;
display:block;
background-image:url(kontakt_gd.png);
}
Wäre cool wenn jemand von euch ne Idee oder einen Denkanstoß für mich hat.