Amplify
27.02.2007, 22:52
задался целью: сделать так чтобы флеш не влезающий в окно по высоте - прокручивался браузерными скроллами, т.е. появлялись планки прокрутки
наваял:
в ролике
on (release) {
getURL('javascript: void changeheight()');
}
в хтмл
<script type="text/javascript">
function changeheight(){
if (document.all) { var scrol = document.all['scrol'].style } else { scrol = document.getElementById('scrol').style }
scrol.height = '2000px';
document.body.scroll = "yes";
}
</script>
<style type="text/css">
#scrol{
height: 600px;
width:100%;
}
</style>
<div id="scrol">
//content
</div>
div размер меняет на 2000пх успешно
но прокрутки нифига нет %)
есть методы? Может я где-то накосячил?
наваял:
в ролике
on (release) {
getURL('javascript: void changeheight()');
}
в хтмл
<script type="text/javascript">
function changeheight(){
if (document.all) { var scrol = document.all['scrol'].style } else { scrol = document.getElementById('scrol').style }
scrol.height = '2000px';
document.body.scroll = "yes";
}
</script>
<style type="text/css">
#scrol{
height: 600px;
width:100%;
}
</style>
<div id="scrol">
//content
</div>
div размер меняет на 2000пх успешно
но прокрутки нифига нет %)
есть методы? Может я где-то накосячил?