佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 732|回复: 5

Auto Resize可以了,可是要如何的去除activeX control的prompt??

[复制链接]
发表于 7-12-2006 01:38 PM | 显示全部楼层 |阅读模式
要如何的设定把背景图案变得auto resaize? 就是讲user的电脑是resolution 800 X 600, 1240 X 800, 更加的高时。。。我的网页依然的会变得刚刚好fit在user的 IE.




[ 本帖最后由 程家伟 于 8-12-2006 04:54 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 7-12-2006 03:39 PM | 显示全部楼层
width="100%"
回复

使用道具 举报

 楼主| 发表于 7-12-2006 04:43 PM | 显示全部楼层
原帖由 henry28112000 于 7-12-2006 03:39 PM 发表
width="100%"


<bgbackground="c:\...\bg.jpg" width="100%"> 对吗?
回复

使用道具 举报

 楼主| 发表于 8-12-2006 04:50 PM | 显示全部楼层
<html>

<head>

<title id="ridTitle">Love you Cari</title>

<style>

<!-- body  { font-family: Times New Roman; font-size: 10pt; color: #333399; margin-top: 5px; margin-left: 30px; } img { margin-top: 5px; margin-left: -30px; } -->

</style>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function Is() {
var agent = navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
this.ns = ((agent.indexOf('mozilla') != -1) &&
(agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1) && (agent.indexOf('opera') == -1) && (agent.indexOf('webtv') == -1));
this.ns2 = (this.ns && (this.major == 2));
this.ns3 = (this.ns && (this.major == 3));
this.ns4 = (this.ns && (this.major == 4));
this.ns6 = (this.ns && (this.major >= 5));
this.ie = (agent.indexOf("msie") != -1);
this.ie3 = (this.ie && (this.major < 4));
this.ie4 = (this.ie && (this.major == 4) &&
(agent.indexOf("msie 5.0")   == -1));
this.ie5 = (this.ie && (this.major == 4) &&
(agent.indexOf("msie 5.0") != -1));
this.ieX = (this.ie && !this.ie3 && !this.ie4);
}
var is = new Is();
function layerObject(id,left,top,visibility) {
if (is.ie5||is.ns6){
this.obj = document.getElementById(id).style;
this.obj.left = left;
this.obj.top = top;
this.obj.visibility = visibility;
return this.obj;
}
else if(is.ie4) {
this.obj = document.all[id].style;
this.obj.left = left;
this.obj.top = top;
this.obj.visibility = visibility;
return this.obj;
}
else if(is.ns4) {
this.obj = document.layers[id];
this.obj.left = left;
this.obj.top = top;
this.obj.visibility = visibility;
return this.obj;
   }  
}
function layerSetup() {
backgroundLyr = new layerObject('backgroundLayer', 0,0,'visible');
}
function findSize() {
if(is.ns4 ||is.ns6) {
available_width=innerWidth;
available_height=innerHeight;
layerSetup();
} else if(is.ie4 || is.ie5) {
available_width=document.body.clientWidth;
available_height=document.body.clientHeight;
layerSetup();
   }
}
function winResize() {
if(is.ns4 ||is.ns6||is.ie4||is.ie5) {
history.go(0);
   }
}
//  End -->
</script>
</head>

<body bgproperties="fixes" onLoad="findSize();" onResize="winResize()">

<p></p>

<SPAN id="_AthCaret"></SPAN>

<p></p>
<div id="backgroundLayer" style="position:absolute; width:200px; height:115px; z-index:1; left: 0px; top: 0; visibility: hidden">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if(is.ns4 || is.ns6) {
available_width = innerWidth;
available_height = innerHeight;
}
else if(is.ie4 || is.ie5) {
available_width=document.body.clientWidth;
available_height=document.body.clientHeight;
}
if(is.ie4 || is.ie5 || is.ns6 || is.ns4) {
image1_width = (available_width * 1.00);
image1_height = (available_height * 1.00);
var image1 = '<img src="Love you cari.jpg" width="' + image1_width + '" height="' + image1_height + '">';
document.write(image1);
}
//  End -->
</script>
</div>
</body>

</html>


[ 本帖最后由 程家伟 于 8-12-2006 04:52 PM 编辑 ]
回复

使用道具 举报

发表于 8-12-2006 06:37 PM | 显示全部楼层
用CSS就可以了
回复

使用道具 举报

 楼主| 发表于 9-12-2006 09:15 AM | 显示全部楼层
原帖由 红发 于 8-12-2006 06:37 PM 发表
用CSS就可以了


eh~!!红发大大。。。css没有碰过。。。。

而且还是用在outlook express 背景哦

[ 本帖最后由 程家伟 于 9-12-2006 09:17 AM 编辑 ]
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 24-8-2025 10:48 PM , Processed in 0.111830 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表