私は3つの異なるページを持っています。player_lo.html、player_hi.htmlおよびplayer_med.html。
これらの3つのページは、異なる品質のフロープレーヤーストリームページです。iframeJavaScriptを使用してのソースを変更したい。
私はこのスクリプトを持っていますが、機能しません:
<a href="/player/player_lo.html" class="button grey" onclick="$('#player').attr('src', 'player_lo.html'); $(this).parent().find('a').removeClass('red'); $(this).parent().find('a').addClass('grey'); $(this).addClass('red').removeClass('grey'); return false;">Low Quality</a>
<a href="/player/player_med.html" class="button red" onclick="$('#player').attr('src', 'player_med.html'); $(this).parent().find('a').removeClass('red'); $(this).parent().find('a').addClass('grey'); $(this).addClass('red').removeClass('grey'); return false;">medium quality</a>
<a href="/player/player_hi.html" class="button grey" onclick="$('#player').attr('src', 'player_hi.html'); $(this).parent().find('a').removeClass('red'); $(this).parent().find('a').addClass('grey'); $(this).addClass('red').removeClass('grey'); return false;">high quality/a>
私がやろうとしていることの例については、これを見てください:http 
 : 
//slon.ru/tvrain/Низкоекачествоをクリックすると、それは別のフレームです。