首页 > 编程知识 正文

javascript飘窗的简单介绍

时间:2023-12-11 12:29:22 阅读:314384 作者:UGXS

本文目录一览:

我找的飘窗js代码为什么在360、火狐这些浏览器里面没有效果,ie里面确可以呢,兼容性的问题吗?

尊敬的用户,您好!很高兴为您答疑

你的代码有如下问题:

1、document.all这个属性本身是IE的特有属性,且不符合W3c标准,所以除了IE之外,chrome和firefox都不支持。 2、document.documentElement.clientWidth/document.documentElement.clientHeight/document.documentElement.scrollLeft/document.documentElement.scrollTop这几个属性在不同内核的浏览器下存在兼容问题,不推荐使用.

希望我的回答对您有所帮助,如有疑问,欢迎继续咨询我们。

"窗户"的英语怎么读?

"窗户"的英语读音:window 英 [ˈwɪndəʊ]  美 [ˈwɪndoʊ]

例句:

1.The painter has a large studio with a window facing north.

那位画家有一间窗子朝北的大画室。

来自《权威词典》

2.The ball smashed a window.

那个球把一块窗玻璃打碎了。

来自《权威词典》

3.There are no lights in the windows of the town.

镇子中人家的窗口没有一点儿灯光。

来自《权威词典》

扩展资料

短语

Rear Window 后窗 ; 后窗玻璃 ; 后挡风玻璃 ; 后车窗

bay window [建] 凸窗 ; 飘窗 ; 窗台 ; [建] 八角窗

rose window 玫瑰窗 ; [建] 圆花窗 ; 玫瑰花窗 ; 玻璃窗

Secret Window 秘窗 ; 神秘窗 ; 片

oval window [解剖] 卵圆窗 ; 卵形窗 ; 卵圆

Johari window 周哈里窗 ; 约哈瑞窗户 ; 乔哈里窗 ; 乔哈里资讯窗

Window Spy 窗体侦探 ; 窗体侦察 ; 查看窗口信息 ; 窗口查看工具

window procedure 窗口过程 ; 视窗函式 ; 窗口程序 ; 窗口过程函数

casement window [建] 竖铰链窗 ; [建] 平开窗 ; 窗扉预制件 ; 平开窗口

求个在HTML加入图片飘窗的代码

html

head

titlehtml-WEB开发/title

/head

body

div id="img" style="position:absolute;z-index=99;"

img src="" onClick="pause_resume();" border="0" alt='img' onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/

/div

SCRIPT LANGUAGE="JavaScript"

!-- Begin

var xPos = document.body.clientWidth-20;

var yPos = document.body.clientHeight/2;

var step = 1;

var delay = 5;

var height = 0;

var Hoffset = 0;

var Woffset = 0;

var yon = 0;

var xon = 0;

var pause = true;

var interval;

img.style.top = yPos;

function changePos() {

width = document.body.clientWidth;

height = document.body.clientHeight;

Hoffset = img.offsetHeight;

Woffset = img.offsetWidth;

img.style.left = xPos + document.body.scrollLeft;

img.style.top = yPos + document.body.scrollTop;

if (yon) {

yPos = yPos + step;

}else {

yPos = yPos - step;

}

if (yPos 0) {

yon = 1;

yPos = 0;

}

if (yPos = (height - Hoffset)) {

yon = 0;

yPos = (height - Hoffset);

}

if (xon) {

xPos = xPos + step;

}else {

xPos = xPos - step;

}

if (xPos 0) {

xon = 1;

xPos = 0;

}

if (xPos = (width - Woffset)) {

xon = 0;

xPos = (width - Woffset);

}

}

function start() {

img.visibility = "visible";

interval = setInterval('changePos()', delay);

}

function pause_resume() {

if(pause) {

clearInterval(interval);

pause = false;

}else {

interval = setInterval('changePos()',delay);

pause = true;

}

}

start();

// End --

/script

/body

/html

关于网页制作中悬浮窗在鼠标在上面时停止的问题

html

head

title移动文字/title

/head

body

MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 direction=up

文字从下向上移动,改成direction=left则左右向左移动 scrollamount=1 为速度,数字越大越慢

/MARQUEE

/body

/html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。