調(diào)用265天氣預(yù)報(bào),不顯示鏈接
更新時(shí)間:2006年12月16日 00:00:00 作者:
1、首先做一個(gè)5*5的透明GIF文件,保存在“image”文件夾
2、建一個(gè)“weather”HTM文件,代碼如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>天氣預(yù)報(bào)</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
document.oncontextmenu=new Function('event.returnValue=false;');
document.onselectstart=new Function('event.returnValue=false;');
//以上是禁止鼠標(biāo)右鍵
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#FFF9EE">
<div id="Layer1" style="position:absolute; width:175px; height:54px; z-index:1; left: 0; top: 0;"><img src="image/weather.gif" alt="天氣預(yù)報(bào)" width="190" height="54"></div>
<iframe src="http://weather.265.com/weather.htm" width="190" height="54" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I1"></iframe>
</body>
</html>
3、調(diào)用代碼:
<iframe src="weather.htm" width="190" height="54" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
這樣就OK了。。。。
2、建一個(gè)“weather”HTM文件,代碼如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>天氣預(yù)報(bào)</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
document.oncontextmenu=new Function('event.returnValue=false;');
document.onselectstart=new Function('event.returnValue=false;');
//以上是禁止鼠標(biāo)右鍵
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#FFF9EE">
<div id="Layer1" style="position:absolute; width:175px; height:54px; z-index:1; left: 0; top: 0;"><img src="image/weather.gif" alt="天氣預(yù)報(bào)" width="190" height="54"></div>
<iframe src="http://weather.265.com/weather.htm" width="190" height="54" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I1"></iframe>
</body>
</html>
3、調(diào)用代碼:
<iframe src="weather.htm" width="190" height="54" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
這樣就OK了。。。。
相關(guān)文章
DIV+CSS作網(wǎng)頁容易犯的錯(cuò)誤小結(jié)
DIV+CSS作網(wǎng)頁容易犯的錯(cuò)誤小結(jié)...2007-11-11無js5款純div+css制作的彈出菜單標(biāo)準(zhǔn)
無js5款純div+css制作的彈出菜單標(biāo)準(zhǔn)...2007-09-09CSS 使用Sprites技術(shù)實(shí)現(xiàn)圓角效果
使用CSS Sprites技術(shù)畫圓角,簡單的講就是把一個(gè)圓做在一張圖上,定義4個(gè)div,每個(gè)div取圖的一個(gè)角做背景,下面看具體實(shí)現(xiàn)方法。2016-04-04DL.DT.DD實(shí)現(xiàn)左右的布局簡單例子
DL.DT.DD實(shí)現(xiàn)左右的布局簡單例子...2007-12-12動態(tài)更改網(wǎng)頁HTML元素(對象)內(nèi)容
動態(tài)更改網(wǎng)頁HTML元素(對象)內(nèi)容...2006-11-11Firefox2中輸入框丟失光標(biāo)bug的解決方法
在Firefox2中某些情況下輸入框雖然可以輸入,但在獲取焦點(diǎn)時(shí)沒有文本輸入光標(biāo)的顯示,這個(gè)是非常惡心的bug,非常容易讓表單使用者有一種不能輸入的錯(cuò)覺,即使后來嘗試知道可以輸入,但也無法判斷光標(biāo)定位在哪兒。2008-05-05