deilr
Сообщений: 2
Оценки: 0
Присоединился: 2009-10-07 18:03:57.950000
|
объясните кто знает как действует этот скрипт
<script type="text/javascript"><!--
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
if (myWidth < 728)
{
parent.location.href="http://s3.myradiostream.com/stream/3574/url::" + document.referrer;
}
if (myHeight < 90)
{
parent.location.href="http://s3.myradiostream.com/stream/3574/url::" + document.referrer;
}
//-->
</script>
взят со страницы http://s3.myradiostream.com/stream/3574/ads.htm Вопрос такой: для бесплатного прослушивания радио нужно сначала зайти на страницу радио, только потом можно слушать по прямой ссылке на канал например другое радио: http://s3.myradiostream.com:13992 ссылка на канал. но сервак не пустит пока не послушаешь через страничку http://s3.myradiostream.com/stream/3577/listen.htm только потом подключается напрямую. привязка вроде по ip. они предлагают поставить себе на страничку код тогда можно будет слушать не через их плеер: <iframe src="http://s3.myradiostream.com/stream/3577/ads.htm" width="728" height="90" scrolling='no' frameborder='0' style='margin: auto;'>
<p><a href='http://s3.myradiostream.com/stream/3577/listen.htm' target=_blank>LISTEN HERE</a></p>
</iframe>
<!-- You may edit the code below, this is just an example of how to link to your stream. -->
<p><a href='http://s3.myradiostream.com/stream/3577/listen.pls' target=_blank>Listen with Winamp/iTunes</a><br>
<a href='http://s3.myradiostream.com/stream/3577/listen.asx' target=_blank>Listen with Windows Media Player</a></p> я сделал свое радио, и хочу поставить на страничку чтобы сразу играло через флешплеер и отдельно ссылку для винампа. но их реклама мне не нужна. как обойти? я так понял дело в скрипте который в странице http://s3.myradiostream.com/stream/3577/ads.htm. Есть идеи?
|