# encoding: ascii
# api: powershell
# title: style acording video res
# description: This code is a script that sets the width of a div according to client’s monitor resolution. Very useful when we have a varied audience
# version: 0.1
# type: script
# author: youikar
# license: CC0
# x-poshcode-id: 2451
# x-archived: 2011-01-10T08:57:40
#
#
---------------------------------------------------------------------------------------------------------------------------
this code is copied from http://www.ti4fun.com/myouikar/JavaScript/rotina.aspx?r=JJiKNeLQlIA[[ti&l=STN[ti]5tehuTA[[ti
---------------------------------------------------------------------------------------------------------------------------
<script>
document.write('<div id="div_panel" style="width:100%; height:'+ (screen.height > 768 ? '380px' : (screen.height > 600 ? '280px' : '275px')) +'; overflow:auto;">');
</script>
--------------------------------------------------
See more codes in http://www.ti4fun.com/myouikar
--------------------------------------------------