年无分老少,事无分难易,但行之有恒,恒之,何三起,五眠 注册 | 登陆
浏览模式: 标准 | 列表分类:网页设计

关于采集回的内容图片过大,把div撑开解...

function img_auto_size(oldimg){
var newimg = new Image();
newimg.src = oldimg.src;
if (newimg.width > 0 && newimg.height > 0) {
if (newimg.width > 600){
oldimg.width = 600;
oldimg.height = (newimg.height * 600) / newimg.width;
oldimg.onmouseover = function() {
this.style.cursor= "hand";
};
oldimg.onmouseout = function() {
this.style.cursor="";
};
oldimg.onclick = function() {
window.open(this.src, '_blank');
};
} else {
oldimg.width = newimg.width;
oldimg.height = newimg.height;
}
oldimg.alt = "Click to view in original size " + newimg.width + " x " + newimg.height;
}
}

Tags: 越狱

css+div如何解决文字溢出?

FF IE MAX 下 文字益处DIV问题解决方法
overflow:hidden

Tags: css

网页刷新后随机显示不同风格!!!

rt
<link id="chun" type="text/css" rel="stylesheet" href="b_sty.css">
<script Language="JavaScript">
<!-- Begin
var Folder = "css/"; // 修改目录

var how_many_ads = 4;
var now = new Date();
var sec = now.getSeconds();
var ad = sec % how_many_ads;
var css = "";
ad +=1;[separator]

if (ad == 1) {css = "style1.css";}
if (ad == 2) {css = "style2.css";}
if (ad == 3) {css = "style3.css";}
if (ad == 4) {css = "style4.css";}

self.chun.href = Folder + css[separator]
//-->
</script>

Tags: css

Records:151234