- 1、我找的飄窗js代碼為什麼在360、火狐這些瀏覽器裡面沒有效果,ie裡面確可以呢,兼容性的問題嗎?
- 2、”窗戶”的英語怎麼讀?
- 3、求個在HTML加入圖片飄窗的代碼
- 4、關於網頁製作中懸浮窗在鼠標在上面時停止的問題
尊敬的用戶,您好!很高興為您答疑
你的代碼有如下問題:
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
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
原創文章,作者:簡單一點,如若轉載,請註明出處:https://www.506064.com/zh-hant/n/126395.html