⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 biimagepreloader.html

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><!--Generated using api.website.xsl version 2003-07-17--><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>BiImagePreloader</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type="text/css" rel="stylesheet" href="api.css"><script type="text/javascript">				function showDerivedClasses() {					var ul = document.getElementById("api-derived-classes");					var lis = ul.childNodes;					var l = lis.length;					for (var i = 1; i < l; i++)						lis[i].style.display = "";					lis[0].style.display = "none";				}			</script></head><body><h1 id="BiImagePreloader">BiImagePreloader</h1><p>		This class handles preloading of an image. There will never be more than		one instance of this class per image URI. So if there already exists a		preloader for the given URI that will be returned.<br>		<br>		Since there might be other objects dependent on the current instance it		is not a good idea to call dispose on the instance object. Disposal is		handled by the system.	</p><p>This class extends		<code><a href="BiEventTarget.html">BiEventTarget</a></code>		and therefore all methods and fields available for		<code><a href="BiEventTarget.html">BiEventTarget</a></code>		are also available for <code>BiImagePreloader</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code><a href="BiEventTarget.html">BiEventTarget</a></code><ul><li><code>BiImagePreloader</code><ul id="api-derived-classes"></ul></li></ul></li></ul></li></ul><h2>Constructor</h2><p><code>	new BiImagePreloader(<span class="methodArgument">sUri</span>)</code></p><h3>Parameters</h3><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>sUri</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The location of the image file to preload</td></tr></tbody></table><h2>Properties</h2><table><thead><tr><td>Name</td><td>Type</td><td class="get-header">get</td><td class="set-header">set</td><td>Descripton</td></tr></thead><tbody><tr><td><a name="height"></a><code>height</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>The natural height of the image.			This might be undefined before the image has loaded</td></tr><tr><td><a name="loaded"></a><code>loaded</code></td><td><code class="type">Boolean</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>				This becomes <code>true</code> once the image is loaded			</td></tr><tr><td><a name="width"></a><code>width</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>The natural width of the image.			This might be undefined before the image has loaded</td></tr></tbody></table><h2>Methods</h2><p>None.</p><h2>Events</h2><table><thead><tr><td>Name</td><td>Type</td><td class="bubbles-header">Bubbles</td><td>Descripton</td></tr></thead><tbody><tr><td><a name="error"></a><code>error</code></td><td><code class="type"><code><a href="BiEvent.html">BiEvent</a></code></code></td><td class="bubbles-column"></td><td>Fires if the image file fails to load</td></tr><tr><td><a name="load"></a><code>load</code></td><td><code class="type"><code><a href="BiEvent.html">BiEvent</a></code></code></td><td class="bubbles-column"></td><td>Fires when the image file loads</td></tr></tbody></table><h2>Static Methods</h2><p>None.</p><h2>Static Fields</h2><p>None.</p><h2>Remarks</h2><p>		The image file might already be loaded when the constructor returns and		therefore it is not sufficient to depend on the <code><a href="#load">load</a></code> event.		Therefore it is a good idea to check <code><a href="#loaded">loaded</a></code> as well.	</p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -