Advertisement
2002ASP Custom Controls/ Forms/ Menus #1874

Cheap Cool Button

Simulates a cool/flat button. Easy and simple. No API's or advanced codes. Could be used but coding is really newby-ish.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
Upload
<BODY onLoad="cacheOff()">
<!-- BEGINNING OF THE SCRIPT -->
<STYLE TYPE="text/css">
<!-- 
#cache {
 position:absolute; left=10; top:10px; z-index:10; visibility:hidden;
}
-->
</STYLE>
<!--
Lines above are creating a layer which show a message
displaying the 'PLEASE WAIT ... ' message
-->
<SCRIPT LANGUAGE="JavaScript">
ver = navigator.appVersion.substring(0,1)
if (ver >= 4)
	{
	document.write('<DIV ID="cache"><TABLE WIDTH=400 BGCOLOR=#000000 BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="Arial, Verdana" SIZE=4><B><BR>PLEASE WAIT ... <BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');
	var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
	var HIDDEN = (navi) ? 'hide' : 'hidden';
	var VISIBLE = (navi) ? 'show' : 'visible';
	var cache = (navi) ? document.cache : document.all.cache.style;
	largeur = screen.width;
	cache.left = Math.round(100);
	cache.visibility = VISIBLE;
	}
function cacheOff()
	{
	if (ver >= 4)
		{
		cache.visibility = HIDDEN;
		}
	}
</SCRIPT>
<!--
When the page will be fully loaded, the message will be hidden
-->
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine