Тема: Подправте код кому не друдно (WAP/WEB мастеру/Помощь мастерам) Jonathan (31 Mar 2015 в 22:01) <? /* пробуй */ echo \'<div class=\"volkes_kontent\"><iframe scrolling=\"no\" frameborder=\"0\" src=\"http://tvforsite.ru/onlinetv.php?playerid=37662\" width=\"auto\" height=\"auto\"> Сервис не поддерживается данным браузером</iframe></div>\'; ?> promonj (31 Mar 2015 в 22:02) <? echo \'<div class=\"volkes_kontent\"><iframe height=\"600\" iframe=\"\" src=\"http://c.icq.com/webicq/banias/gb/icq/410/WidgetMain.html?locale=ru-ru\" width=\"auto\" align=\"absmiddle\" frameborder=\"0\" scrolling=\"no\"></iframe></div>\'; ?> Prizrak (31 Mar 2015 в 22:06) --Цитата-- Jonathan (31 Mar 2015 в 22:01): <? /* пробуй */ echo \'<div class=\"volkes_kontent\"><iframe scrolling=\"no\" frameborder=\"0\" src=\"http://tvforsite.ru/onlinetv.php?playerid=37662\" width=\"auto\" height=\"auto\"> Сервис не поддерживается данным браузером</iframe></div>\'; ?> ---------- Jonathan, Этот не пашет. promonj (31 Mar 2015 в 22:12) Prizrak, <? /* пробуй */ echo \'<div class=\"volkes_kontent\"><iframe scrolling=\"no\" frameborder=\"0\" src=\"http://tvforsite.ru/onlinetv.php?playerid=37662\" width=\"640\" height=\"395\"> Сервис не поддерживается данным браузером</iframe></div>\'; ?> Prizrak (31 Mar 2015 в 22:15) Не хотят подстрайвать под экран. promonj (31 Mar 2015 в 22:25) Prizrak, это флэш проги во фрейме, были бы страницы легко, в данном коде указывается ширина и высота фрейма где все расположено, если тебе надо под экран необходимо указывать код флеш и их ширину и высоту вытягивать под экран Jonathan (31 Mar 2015 в 22:28) Prizrak, Так попробуй. Если не получиться, тогда в диве размер регулируй <? echo \'<div class=\"volkes_kontent\"><iframe scrolling=\"no\" frameborder=\"0\" src=\"http://tvforsite.ru/onlinetv.php?playerid=37662\" style=\"max-width: 100%; height: auto;> Сервис не поддерживается данным браузером</iframe></div>\'; ?> promonj (31 Mar 2015 в 22:34) <? /* пробуй */ echo \'<div class=\"volkes_kontent\">\'; ?> <sсript language=\"JavaScript\"> var useDonate = false; var myHeight; var myWidth; var myPrevHeight = 0; var myPrevWidth = 0; function getFrameSize () { myHeight = 0; if( typeof( window.innerWidth ) == \"number\" ) { myHeight = window.innerHeight; } else if( document.documentElement && document.documentElement.clientHeight ) { myHeight = document.documentElement.clientHeight; } else if( document.body && document.body.clientHeight ) { myHeight = document.body.clientHeight; } myWidth = 0; if( typeof( window.innerWidth ) == \"number\" ) { myWidth = window.innerWidth; } else if( document.documentElement && document.documentElement.clientWidth ) { myWidth = document.documentElement.clientWidth; } else if( document.body && document.body.clientWidth ) { myWidth = document.body.clientWidth; } var flashObj = document.getElementById(\"flashObject\"); var embedObj = document.getElementById(\"embedObject\"); if (myPrevWidth != myWidth || myPrevHeight != myHeight){ var set_width = myWidth; var set_height = myHeight; flashObj.width = set_width; flashObj.height = set_height; embedObj.width = set_width; embedObj.height = set_height; myPrevWidth = myWidth; myPrevHeight = myHeight; } } getFrameSize(); var r_int = setInterval(getFrameSize, 100); </sсript> <object style=\"position: absolute; left: 0px; top: 0px;\" id=\"flashObject\" classid=\"clsid:d27cdb6e-ae6d-11cf- promonj (31 Mar 2015 в 22:36) Prizrak, http://test.myfrend.ru/index.zip вот код на телевизор под экран Prizrak (31 Mar 2015 в 23:07) --Цитата-- promonj (31 Mar 2015 в 22:34): <? /* пробуй */ echo \'<div class=\"volkes_kontent\">\'; ?> <sсript language=\"JavaScript\"> var useDonate = false; var myHeight; var myWidth; var myPrevHeight = 0; var myPrevWidth = 0; function getFrameSize () { myHeight = 0; if( typeof( window.innerWidth ) == \"number\" ) { myHeight = window.innerHeight; } else if( document.documentElement && document.documentElement.clientHeight ) { myHeight = document.documentElement.clientHeight; } else if( document.body && document.body.clientHeight ) { myHeight = document.body.clientHeight; } myWidth = 0; if( typeof( window.innerWidth ) == \"number\" ) { myWidth = window.innerWidth; } else if( document.documentElement && document.documentElement.clientWidth ) { myWidth = document.documentElement.clientWidth; } else if( document.body && document.body.clientWidth ) { myWidth = document.body.clientWidth; } var flashObj = document.getElementById(\"flashObject\"); var embedObj = document.getElementById(\"embedObject\"); if (myPrevWidth != myWidth || myPrevHeight != myHeight){ var set_width = myWidth; var set_height = myHeight; flashObj.width = set_width; flashObj.height = set_height; embedObj.width = set_width; embedObj.height = set_height; myPrevWidth = myWidth; myPrevHeight = myHeight; } } getFrameSize(); var r_int = setInterval(getFrameSize, 100); </sсript> <object style=\"position: absolute; left: 0px; top: 0px;\" id=\"flashObject\" classid=\"clsid:d27cdb6e-ae6d-11cf- ---------- promonj, Без js надо. socio (31 Mar 2015 в 23:18) А обработай это, кто его знает: <iframe width=\"....\" height=\"....\" type=\"application/x-shockwave-flash\" src=\".......\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"window\" loop=\"true\" autoplay=\"true\" quality=\"high\"> </iframe> интересно шо будет. )) Prizrak (31 Mar 2015 в 23:54) --Цитата-- socio (31 Mar 2015 в 23:18): А обработай это, кто его знает: <iframe width=\"....\" height=\"....\" type=\"application/x-shockwave-flash\" src=\".......\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"window\" loop=\"true\" autoplay=\"true\" quality=\"high\"> </iframe> интересно шо будет. )) ---------- socio, Времени нет марочится. Prizrak (31 Mar 2015 в 23:57) Хм... socio (1 Apr 2015 в 00:25) --Цитата-- Prizrak (31 Mar 2015 в 23:54): socio, Времени нет марочится. ---------- Prizrak, Спать пора, я не знаю что айфрамится, но у меня работает под свф и просто адрес с правкой, а как будет твоё нечто-не знаю. )) Prizrak (2 Apr 2015 в 04:57) socio, Хм AntonIM62 (2 Apr 2015 в 08:29) Prizrak, предупреждение за оффтоп. Источник: http://www.dcms-social.ru/forum/20/44/58424/