手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >调用265天气预报,不显示链接
调用265天气预报,不显示链接
摘要: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"style="position:absolute;width:175px;height:54px;z-index:1;left:0;top:0;"><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了。。。。

【调用265天气预报,不显示链接】相关文章:

重温两道页面重构面试题

CSS控制DIV绝对定位、相对定位的技巧

CSS div居中的三种方法

CSS让ul所有的li居中显示的方法

用CSS+JS实现Li背景颜色交替

如何用CSS将图片显示成圆角

ul里面如何让li居中不用FLAOT改为display:inline可实现

CSS3制作ajax loader icon实现思路及代码

CSS让网页更容易设计与维护

CSS的“顶级”技巧

精品推荐
分类导航