调用265天气预报,不显示链接_ Div+Css教程-查字典教程网
调用265天气预报,不显示链接
调用265天气预报,不显示链接
发布时间:2016-12-29 来源:查字典编辑
摘要:1、首先做一个5*5的透明GIF文件,保存在“image”文件夹2、建一个“weather”HTM文件,代码如下:天气预报document....

1、首先做一个5*5的透明GIF文件,保存在“image”文件夹

2、建一个“weather”HTM文件,代码如下:

<html>

<head>

<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">

<title>天气预报</title>

<styletype="text/css">

<>

</style>

<scriptlanguage="JavaScript"type="text/JavaScript">

document.oncontextmenu=newFunction('event.returnValue=false;');

document.onselectstart=newFunction('event.returnValue=false;');

//以上是禁止鼠标右键

<>

</script>

</head>

<bodybgcolor="#FFF9EE">

<divid="Layer1"><imgsrc="image/weather.gif"alt="天气预报"width="190"height="54"></div>

<iframesrc="http://weather.265.com/weather.htm"width="190"height="54"frameborder="0"marginwidth="0"marginheight="0"scrolling="no"name="I1"></iframe>

</body>

</html>

3、调用代码:

<iframesrc="weather.htm"width="190"height="54"frameborder="0"marginwidth="0"marginheight="0"scrolling="no"></iframe>

这样就OK了。。。。

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新 Div+Css教程学习
    热门 Div+Css教程学习
    网页设计子分类