调用265天气预报,不显示链接

2022-04-15 0 879

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了。。。。

免责声明:
1、本网站所有发布的源码、软件和资料均为收集各大资源网站整理而来;仅限用于学习和研究目的,您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。 不得使用于非法商业用途,不得违反国家法律。否则后果自负!

2、本站信息来自网络,版权争议与本站无关。一切关于该资源商业行为与www.niceym.com无关。
如果您喜欢该程序,请支持正版源码、软件,购买注册,得到更好的正版服务。
如有侵犯你版权的,请邮件与我们联系处理(邮箱:skknet@qq.com),本站将立即改正。

NICE源码网 CSS/HTML 调用265天气预报,不显示链接 https://www.niceym.com/14260.html