//Min: sizeLayout('771')
//middle: sizeLayout('994')
//Max : sizeLayout('100%')
<script language="JavaScript">
<!--
function setSkinCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
document.getElementById('bbh_table1').width = value;
}
//Min: sizeLayout('771')
//middle: sizeLayout('994')
//Max : sizeLayout('100%')
function sizeLayout(size)
{
setSkinCookie("meinkekswert",size, new Date("December 31, 2010 23:59:59"),"/");
//location.reload();
}
function readCookie(name) {
var cookieValue = "";
var search = name + "=";
if(document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if(offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if(end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))
}
}
if(!(cookieValue==''))
{
//alert(cookieValue);
document.getElementById('bbh_table1').width = cookieValue;
}
//return cookieValue;
}
readCookie('meinkekswert')
</script>
说明: 用表做布局 bbh_table1 用 //Min: sizeLayout('771')
//middle: sizeLayout('994')
//Max : sizeLayout('100%') 控制
<script language="Javascript">
function setSkinCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
function sizeLayout(size)
{
setSkinCookie("DotNetNuke_Skin_Layout_Size",size, new Date("December 31, 2010 23:59:59"),"/");
location.reload();
}
</script>
说明: 用sizeLayout(size) 控制字体的打小 分别为sizeLayout(0),sizeLayout(1),sizeLayout(2).