PoshCode Archive  Artifact Content

Artifact a9abf770017dc44d6910de54fb32f23abd560aa9a3480f9f02002c8835452057:

  • File style-acording-video-res.ps1 — part of check-in [e96e7a3b6b] at 2018-06-10 13:10:30 on branch trunk — 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 (user: youikar size: 1074)

# 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
--------------------------------------------------