js和pixcel energy可以串在一起吗

如果有一定的JavaScript基础,制作浮动广告还是比较容易的。直接上代码了:
&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""&&html xmlns=""&&head&&meta http-equiv="Content-Type" content="text/ charset=utf-8" /&&title&无标题文档&/title&&style type="text/css"&*{&margin:0;&padding:0;}
#csdn{&width:800&margin:0}#ad{&position:&right:0&top:30&z-index:1;}#cl{&position:&right:0&top:30&z-index:2;}&/style&&script type="text/javascript"&var advInitTop=30;var closeInitTop=30;function inix(){&& advInitTop=document.getElementById("ad").style.pixelT&& closeInitTop=document.getElementById("cl").style.pixelT}function closeAd(){&document.getElementById("ad").style.display="none";&document.getElementById("cl").style.display="none";
}function move(){&//document.getElementById("ad").style.pixelTop=document.body.scrollTop+advInitT&//document.getElementById("cl").style.pixelTop=document.body.scrollTop+closeInitT&document.getElementById("ad").style.pixelTop=document.documentElement.scrollTop+advInitT&document.getElementById("cl").style.pixelTop=document.documentElement.scrollTop+closeInitT&//alert(document.getElementById("ad").style.pixelTop);&&& window.status=document.documentElement.scrollTop+"/"+document.getElementById("ad").style.pixelT}window.onscroll=&/script&&/head&
&body&& &div id="cl" onclick="closeAd()"&&&&&img src="images/close.jpg" /&& &/div&& &div id="csdn"&& &&a href=" src="images/xiaojie1.jpg" border="0" /&&/a&& &/div&& &div id="ad"&& &&a href=" src="images/advpic.gif" /&&/a&& &/div&&/body&&/html&
上述代码中要用document.documentElement ,不要用老的document.body,否则,不符合w3c标准,看不到浮动效果!
阅读(...) 评论()SetPixel function
The SetPixel function sets the pixel at the specified coordinates to the specified color.
COLORREF SetPixel(
_In_ COLORREF crColor
Parameters
A handle to the device context.
The x-coordinate, in logical units, of the point to be set.
The y-coordinate, in logical units, of the point to be set.
crColor [in]
The color to be used to paint the point. To create a
color value, use the
Return value
If the function succeeds, the return value is the RGB value that the function sets the pixel to. This value may differ from the color specified by crColor; that occurs when an exact match for the specified color cannot be found.
If the function fails, the return value is -1.
This can be the following value.
Return codeDescription
ERROR_INVALID_PARAMETER
One or more of the input parameters is invalid.
The function fails if the pixel coordinates lie outside of the current clipping region.
Not all devices support the SetPixel function. For more information, see .
Requirements
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Wingdi.h (include Windows.h)
IN THIS ARTICLE
Is this page helpful?
Additional feedback?
1500 characters remaining
Thank you!
We appreciate your feedback.
© Microsoft 2017What is resolution? - Definition
resolution
Share this item with your network:
The Fair Credit Reporting Act (FCRA) is United States federal legislation that promotes accuracy, fairness and privacy for data used by consumer reporting agencies.
In computers, resolution is the number of s (individual points of color) contained on a display monitor, expressed in terms of the number of pixels on the horizontal axis and the number on the vertical axis. The sharpness of the image on a display depends on the resolution and the size of the monitor. The same pixel resolution will be sharper on a smaller monitor and gradually lose sharpness on larger monitors because the same number of pixels are being spread out over a larger number of inches.
A given computer display system will have a maximum resolution that depends on its physical ability to focus light (in which case the physical dot size - the
- matches the pixel size) and usually several lesser resolutions. For example, a display system that supports a maximum resolution of 1280 by 1023 pixels may also support 1024 by 768, 800 by 600, and 640 by 480 resolutions. Note that on a given size monitor, the maximum resolution may offer a sharper image but be spread across a space too small to read well.
Display resolution is not measured in dots per inch as it usually is with printers. However, the resolution and the physical monitor size together do let you determine the pixels per inch. Typically, PC monitors have somewhere between 50 and 100 pixels per inch. For example, a 15-inch VGA (see ) monitor has a resolution of 640 pixels along a 12-inch horizontal line or about 53 pixels per inch. A smaller VGA display would have more pixels per inch.
Related Terms
Nearline storage is the on-site storage of data on removable media.
On-demand (OD) computing is an increasingly popular enterprise model in which computing resources are made available to the user ...
Superposition is the ability of a quantum system to be in multiple states at the same time until it is measured.
File Extensions and File Formats
Powered by:
Pure risk, also called absolute risk, is a category of threat that is beyond human control and has only one possible outcome if ...
Risk assessment is the identification of hazards that could negatively impact an organization's ability to conduct business.
An audit program, also called an audit plan, is an action plan that documents what procedures an auditor will follow to validate ...
Insider threat is a generic term for a threat to an organization's security or data that comes from within.
Ransomware is a subset of malware in which the data on a victim's computer is locked, typically by encryption, and payment is ...
A hacker is an individual who uses computer, networking or other skills to overcome a technical problem.
PACS, or picture archiving and communication system, is a medical imaging technology used for storing, retrieving, presenting and...
MACRA (Medicare Access and CHIP Reauthorization Act of 2015) is U.S. healthcare legislation that provides a new framework for ...
Allscripts is a vendor of electronic health record systems for physician practices, hospitals and healthcare systems.
Business continuity and disaster recovery (BCDR) are closely related practices that describe an organization's preparation for ...
A business continuity plan (BCP) is a document that consists of the critical information an organization needs to continue ...
A call tree -- sometimes referred to as a phone tree -- is a telecommunications chain for notifying specific individuals of an ...
A DIMM (dual in-line memory module) is the standard memory card used in servers and PCs.
Nearline storage is the on-site storage of data on removable media.
Application-aware storage is a storage system with built-in intelligence about relevant applications and their utilization ...
3D XPoint is memory storage technology jointly developed by Intel and Micron Technology Inc.
RRAM or ReRAM (resistive random access memory) is a form of nonvolatile storage that operates by changing the resistance of a ...
JEDEC is a global industry group that develops open standards for microelectronics.
Google Cloud Storage is an enterprise public cloud storage platform that can house large unstructured data sets.
A RESTful application program interface breaks down a transaction to create a series of small modules, each of which addresses an...
Cloud storage infrastructure is the hardware and software framework that supports the computing requirements of a private or ...}

我要回帖

更多关于 js pi 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信