OK, dann gebe ich dir den gesammten Code mal:
zu der Buttonveränderung:
<a href="link.htm"
onmouseover="Bildwechsel(4, Highlight1)"
onmouseout="Bildwechsel(4, Normal1)"
onclick="Bildwechsel(4, Highlight50)" >
<img src="hamsterbutton1.gif" width="125" height="28" border="0" alt="Hamsterbutton"></a>
<script type="text/javascript">
Normal1 = new Image();
Normal1.src = "hamsterbutton1.gif";
Highlight1 = new Image();
Highlight1.src = "hamsterbutton2.gif";
Highlight50 = new Image();
Highlight50.src = "ladebutton.gif";
function Bildwechsel (Bildnr, Bildobjekt) {
window.document.images[Bildnr].src = Bildobjekt.src;
}
</script>
und zum buttonsound:
<script language="JavaScript">
<!--
function findeFlash (flash) {
if (document.all) {
if (document.all[flash]) {
return document.all[flash];
}
if (window.opera) {
var movie = eval(window.document + flash);
if (movie.SetVariable) {
return movie;
}
}
return;
}
if(document.layers) {
if(document.embeds) {
var movie = document.embeds[flash];
if (movie.SetVariable) {
return movie;
}
}
return;
}
if (!document.getElementById) {
return;
}
var movie = document.getElementById(flash);
if (movie.SetVariable) {
return movie;
}
var movies = movie.getElementsByTagName('embed');
if (!movies || !movies.length) {
return;
}
movie = movies[0];
if (movie.SetVariable) {
return movie;
}
return;
}
function abspielen () {
var movie = findeFlash('button3');
movie.Play();
}
//-->
</script>
<object type="application/x-shockwave-flash" id="button3" data="button3.swf" width="0" height="0">
<param name="movie" value="button3.swf">
<param name="swliveconnect" value="true">
</object>
<a href="voll.html" onmouseover="abspielen()" target="rechts">hier ein Link</a><br>
<a href="leer.html" onmouseover="abspielen()" target="rechts">und hier noch einer</a><br>
reicht dir der Code?
Wie gesagt, einzeln funktionniert es!