* set the debugwin's css for ie.

This commit is contained in:
wangchunsheng
2010-11-22 09:53:20 +00:00
parent 0ab1c544a1
commit 26bc5374fc
3 changed files with 19 additions and 4 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<div id='divider'></div>
<div class='yui-d0'>
<iframe frameborder='0' name='hiddenwin' class='<?php $config->debug ? print("debugwin") : print('hidden')?>'></iframe>
<iframe frameborder='0' name='hiddenwin' scrolling='no' class='<?php $config->debug ? print("debugwin") : print('hidden')?>'></iframe>
</div>
<div id='footer' class='yui-d0 yui-t7'>
<div class='yui-g'>
@@ -14,5 +14,6 @@
</div>
</div>
</div>
<script laguage='Javascript'>$().ready(function(){setDebugWin('white')})</script>
</body>
</html>
+1 -3
View File
@@ -65,8 +65,6 @@ $(document).ready(function(){
</div>
</form>
</div>
<div class='yui-d0'>
<iframe frameborder='0' name='hiddenwin' class='<?php $config->debug ? print("debugwin") : print('hidden')?>'></iframe>
</div>
<div class='yui-d0'><iframe frameborder='0' scrolling='no' name='hiddenwin' class='hidden'></iframe></div>
</body>
</html>
+16
View File
@@ -377,6 +377,22 @@ function setAbout()
if($('a.about').size()) $("a.about").colorbox({width:900, height:330, iframe:true, transition:'elastic', speed:500, scrolling:false});
}
/**
* Set the css of the iframe.
*
* @param string $color
* @access public
* @return void
*/
function setDebugWin(color)
{
if($.browser.msie)
{
var debugWin = $(".debugwin")[0].contentWindow.document;
$("body", debugWin).append("<style>body{background:" + color + "}</style>");
}
}
/**
* add one option of a select to another select.
*