thnx for your response magicyte, i tryed your script didn't work. my javascript knowledge is below the basics =/..eh..
yeah the url I gave is broken sorry, i got a new link mms://94.75.222.9/PowerTurk,
..I try to explain it again.
this one guy wrote a script for me
radio.js
=========================
//javascript
Code:
window.onload = init();
function init () {
var x = document.getElementsByTagName ('a');
for (i = 0; i < x.length; i++) {
x[i].onclick = function () {
document.getElementById('below').innerHTML = "<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+ this.href +"' name='MediaPlayer1' width='217' height='84' controltype='1' showcontrols='1' showstatusbar='0' AutoStart='true'></embed> ";
return false;
}
}
}
index.html
==========
//embed Mediaplayer in html
Code:
<a href="mms://94.75.222.9/PowerTurk" ><div>image</div></a>
<div id="below">
<div id="mediaplayer" align="center">
<embed
type="application/x-mplayer2"
id="MediaPlayer1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
controltype="1"
showcontrols='1'
showstatusbar="0"
autostart="1"
height="84"
width="217" ></embed>
</div>
</div>
only problem is that it gets loaded or activated together with your site. now i tried to adjust it a bit so that the script gets activated when clicked on or with MouseOver.
So I deleted the first line
Code:
window.onload = init();
after that i made the following link to activate the javascript manually to by hovering over a link
Code:
<a href="mms://94.75.222.9/PowerTurk" onMouseOver="init()" ><div>image</div></a>
by fixing 1 problem I created another problem =/
the problem is that all the other links when clicked on the window gets send to the embed mediaplayer like http://www.google.nl.
I just want that when I click on http://www.google.nl I go to the google page and when I click on radio link, it gets loaded by the embed mediaplayer on my site
Bookmarks