调用265天气预报,不显示链接
2006-12-16 00:00
369 查看
1、首先做一个5*5的透明GIF文件,保存在“image”文件夹
2、建一个“weather”HTM文件,代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>天气预报</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;');
//以上是禁止鼠标右键
<!--
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="天气预报" 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、调用代码:
<iframe src="weather.htm" width="190" height="54" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
这样就OK了。。。。
2、建一个“weather”HTM文件,代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>天气预报</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;');
//以上是禁止鼠标右键
<!--
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="天气预报" 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、调用代码:
<iframe src="weather.htm" width="190" height="54" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
这样就OK了。。。。
相关文章推荐
- 调用265天气预报,不显示链接
- 根据IP显示天气预报代码:只显示成一行,可在页面调用JS即可
- 调用“中国天气网”官网数据接口显示天气预报
- axis WebServices 完美调用天气预报,查询、显示 代码!
- axis WebServices 完美调用天气预报,查询、显示 代码!
- WebService 之调用天气预报
- dedecms调用雅虎中国的天气预报代码
- 用WebService实现调用新浪的天气预报功能
- 天气预报代码调用大全
- 在blog中显示天气预报、日历、时钟、MSN、QQ在线状态
- J2ME显示google天气预报
- 用C#写的winform调用webservice天气预报小软件教程
- javascript原生移动云编程7 - 如何调用云数据服务显示实时天气
- C#调用WebService天气服务,实现天气预报
- 用Java实现全国天气预报的api接口调用示例
- LabVIEW调用WebService实现天气预报
- 个人编写的Webserivce调用天气预报 (及接口比较)
- 编写的Webserivce调用天气预报 (及接口比较)
- 全国天气预报数据接口调用PHP示例
- js天气预报,显示最近三天