Цитата:
Сообщение от
slivka_83
создайте html страничку
X++:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> IFRAME</title>
<style type="text/css" media="screen">
body
{
margin: 0;
padding: 0;
height: 100%; /* this is the key! */
width: 100%;
}
</style>
</head>
<body>
<script>
document.writeln('<iframe src="ссылка_на_рбк" width="100%" height="' + (parent.document.body.clientHeight - 110) + '" align="left" ></iframe>')
</script>
</body>
</html>
и поместите ее в папке ISV, сайта CRM. на а в SiteMap'е делаете ссылку на нее
П.С. замените "ссылка_на_рбк" нормальной ссылкой

Хорошая идея, но как это будет работать при ресайзинге родительского окна - именно height, ведь он задан жёстко при онлоаде?
PHP код:
<html>
<head>
<title>Новости РБК</title>
</head>
<body onload="OnResizeComplete();" onresize="OnResizeComplete();">
<iframe id="RBK" src="http://rbc.ru/" frameborder="0" />
<script type="text/javascript">
function OnResizeComplete()
{
var fr = window.document.getElementById('RBK');
if (fr != null)
{
var wwidth=(window.innerWidth)?window.innerWidth:
((document.all)?document.body.offsetWidth:null);
fr.style.width = wwidth + 'px';
var wheight=get_wh();
fr.style.height = wheight;
}
}
function get_wh()
{
var frameHeight = window.screen.height;
if (self.innerHeight)
frameHeight = self.innerHeight;
else if (document.documentElement && document.documentElement.clientHeight)
frameHeight = document.documentElement.clientHeight;
else if (document.body)
frameHeight = document.body.clientHeight;
return frameHeight - 30;
}
</script>
</body>
</html>
Использовал у себя этот трюк в
этом решении - скрипт хорошо себя зарекомендовал.