ich habe im Head des Templates folgenden Javascipt-Code:
Code: Select all
<__script__ language="javascript" type="text/javascript" src="scripts/mootools-1.2.3-core-yc.js"></__script>
<__script__ language="javascript" type="text/javascript">
/* <![CDATA[ */
window.addEvent("domready",function() {
var lastEl;
function stopMP3()
{
var z=$('mp3PlayerContainer');
z.src="blank.html";
}
function streamMP3(f,el)
{
var z=$('mp3PlayerContainer');
z.src="player.php?datei="+f;
lastEl=el;
}
$$('.btnAudio').each(function(el)
{
el.addEvent("mouseover",function(e) { e.stop(); zeigedentool(el.rel); });
el.addEvent("mouseout",function(e) { e.stop(); versteckdentipp(el.rel); });
el.addEvent('click', function(e) {
e.stop();
if (el.className!="btnAudioStop")
{
$$('.btnAudioStop').each(function(el) { el.className="btnAudio"; });
el.className="btnAudioStop";
streamMP3(el.href,el);
} else {
el.className="btnAudio";
stopMP3(); }
});
});
var zeigedentool=function(id)
{
$('tooltipp'+id).setStyle("display","block");
}
var versteckdentipp=function(id)
{
$('tooltipp'+id).setStyle("display","none");
}
});
/* ]]> */
</__script>
Code: Select all
<__script__ language="javascript" type="text/javascript" src="scripts/mootools-1.2.3-core-yc.js"></__script>
<__script__ language="javascript" type="text/javascript">
/* <![CDATA[ */
window.addEvent("domready",function()
function streamMP3(f,el)
$$('.btnAudio').each(function(el)
);
el.addEvent("mouseout",function(e) );
el.addEvent('click', function(e) );
el.className="btnAudioStop";
streamMP3(el.href,el);
} else });
});
var zeigedentool=function(id)
var versteckdentipp=function(id)
});
/* ]]> */
</__script>
Vielen Dank und liebe Grüße.