Windows XP错误框拖动

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 Windows XP错误框拖动 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

Windows XP错误框拖动

HTML代码(index.html):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<title>Windows XP</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
</head>
<body>
<div id="wrapper">
	<h1>Windows XP&#38169;&#35823;&#26694;&#25302;&#21160;</h1>
	<div id="content">
		<p class="info">&#36824;&#35760;&#24471;&#8220;&#22909;&#26085;&#23376;&#8221;&#24403;&#20320;&#20173;&#22312;&#20351;&#29992;Windows XP&#65311;&#22914;&#26524;&#26159;&#30340;&#35805;&#65292;&#25105;&#25954;&#32943;&#23450;&#65292;&#20320;&#36824;&#35760;&#24471;&#30340;&#36127;&#36733;&#65292;&#20250;&#24377;&#20986;&#38169;&#35823;&#23545;&#35805;&#26694;&#65292;&#22312;&#19968;&#20010;&#23436;&#20840;&#38543;&#26426;&#30340;&#26102;&#38388;&#12290;&#34429;&#28982;&#36825;&#20123;&#23545;&#35805;&#26694;&#22987;&#32456;&#26174;&#31034;&#22312;&#19968;&#20010;&#22351;&#30340;&#26102;&#38388;&#65292;&#20320;&#21487;&#20197;&#20570;&#19968;&#20123;&#28418;&#20142;&#25972;&#27905;&#30340;&#12290;&#25302;&#21160;&#31383;&#21475;&#65292;&#23427;&#20250;&#33258;&#25105;&#22797;&#21046;&#19968;&#36941;&#21448;&#19968;&#36941;&#65281;</p>
		<p class="info">&#26412;&#39029;&#38754;&#35797;&#22270;&#36798;&#21040;&#21516;&#26679;&#30340;&#25928;&#26524;&#65292;&#20294;&#29616;&#22312;&#20351;&#29992;HTML / CSS <a href="#/" title="jQuery">jQuery</a> and <a href="#/" title="jQuery UI">jQuery UI</a>. &#36890;&#36807;&#25302;&#21160;&#19979;&#38754;&#30340;&#31383;&#21475;&#65292;&#37027;&#20123;&#22238;&#24518;&#12290;</p>
		<div id="windowsxp">
			<div id="errordialog" class="dialog">
				<h3>Windows XP&#20013;&#30340;&#8220;&#38169;&#35823;&#8221;&#23545;&#35805;&#26694;</h3>
				<img src="images/error.png" alt="Error image" />
				<p>&#21710;&#21568; - &#30475;&#36215;&#26469;&#20320;&#27491;&#22312;&#20570;&#19968;&#20123;&#38750;&#24120;&#37325;&#35201;&#30340;&#12290;&#22240;&#20026;&#25105;&#19981;&#21916;&#27426;&#29983;&#20135;&#21147;&#65292;&#25105;&#23601;&#31616;&#21333;&#22320;&#20572;&#27490;&#24037;&#20316;&#65292;&#31163;&#24320;&#20320;&#36825;&#20010;&#26080;&#29992;&#30340;&#38169;&#35823;&#28040;&#24687;&#12290;</p>
				<p>&#19981;&#36807;&#19981;&#29992;&#25285;&#24515;&#65292;&#25105;&#20250;&#31163;&#24320;&#20320;&#19968;&#20123;&#24456;&#37239;&#30340;&#19996;&#35199;&#12290;&#23558;&#25105;&#30475;&#21040;&#21457;&#29983;&#20102;&#20160;&#20040;&#65281;</p>
				<p><a href="#/" title="13141618.taobao.com" target="_blank" class="button">&#35753;&#25105;&#20986;&#21435;&#65281;</a></p>
			</div>
		</div>
	</div>
</div>
<div style="text-align:center;clear:both">
<p>&#36866;&#29992;&#27983;&#35272;&#22120;&#65306;FireFox&#12289;Chrome&#12289;Opera&#12289;&#20658;&#28216;&#12289;&#25628;&#29399;. &#19981;&#25903;&#25345;IE8&#12289;360&#12289;Safari&#12289;&#19990;&#30028;&#20043;&#31383;&#12290;</p>
<p>&#26469;&#28304;&#65306;<a href="#/" target="_blank">&#31449;&#38271;&#32032;&#26448;</a></p>
</div>
</body>
</html>

JS代码(script.js):

/** Author:Marco Kuiper (http://www.marcofolio.net/)*/
/*** Global variables*/
// Time for the interval to duplicate the dialogvar DUPLICATIONTIME = 100;
	// Maxium count of windows before BSODvar MAXWINDOWCOUNT = 100;
	$(document).ready(function(){
	// Place the error dialog in the center of the screenvar offset = $("#errordialog").offset();
	var xPos = offset.left;
	var yPos = offset.top;
	$("#errordialog").css({
	'top':yPos + 200 + 'px','left':xPos + 200 + 'px'}
);
	// Handle for the intervalIDvar intervalId;
	// Make the dialog draggable$("#errordialog").draggable({
	handle:'h3',// Only the heading is draggablecontainment:'parent',// Prevent the window getting dragged out the parentstart:function(event,ui){
	// Create an interval when the user starts dragging the windowintervalId = setInterval("duplicateWindow()",DUPLICATIONTIME);
}
,stop:function(event,ui){
	// Clear the interval when the user stopped draggingclearInterval(intervalId)}
}
);
}
);
	/*** Function to duplicate the error dialog*/
var windowCount = 0;
	var errorDialogZIndex = 1;
	function duplicateWindow(){
	// Clone the error dialog and append it to the Windows XP screenvar clone = $("#errordialog").clone().appendTo('#windowsxp');
	// Bring the dragging error dialog up front by changing the Z-indexerrorDialogZIndex++;
	$("#errordialog").css('z-index',errorDialogZIndex);
	// Check if the maximum window count has been reachedwindowCount++;
	if(windowCount == MAXWINDOWCOUNT){
	$("#windowsxp").empty().css('background-image','url(images/bsod.jpg)');
}
}

CSS代码(style.css):

/* __ _ _ _ / _| | (_) | | _ __ ___ __ _ _ __ ___ ___ | |_ ___ | |_ ___ _ __ ___| |_| '_ ` _ \ / _` | '__/ __/ _ \| _/ _ \| | |/ _ \ | '_ \ / _ \ __|| | | | | | (_| | | | (_| (_) | || (_) | | | (_) || | | | __/ |_|_| |_| |_|\__,_|_| \___\___/|_| \___/|_|_|\___(_)_| |_|\___|\__|*/
/* BASIC RESET */
ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input{margin:0;padding:0;}
/* HTML ELEMENTS */
body{font:14px Georgia,serif;background-image:url("../images/bg.jpg");}
h1{font:bold 65px/60px Helvetica,Arial,Sans-serif;text-align:center;color:#eee;text-shadow:0px 2px 6px #333;}
h1 small{font-size:20px;text-transform:uppercase;letter-spacing:14px;display:block;color:#ccc;}
h2 a{display:block;text-decoration:none;margin:0 0 30px 0;font:italic 45px Georgia,Times,Serif;text-align:center;color:#bfe1f1;text-shadow:0px 2px 6px #333;}
h2 a:hover{color:#90bcd0;}
/* COMMON CLASSES */
.break{clear:both;}
/* WRAPPER */
#wrapper{width:800px;margin:40px auto;}
/* CONTENT */
#content{}
#content p.info{margin:20px;color:#eee;}
#content p.info a{color:#eee;}
/* WINDOWS XP */
#windowsxp{width:800px;height:640px;background-image:url("../images/background.jpg");-moz-box-shadow:0px 0px 5px #888;-webkit-box-shadow:0px 0px 5px #888;}
.dialog{width:400px;background-color:#f0ede0;position:absolute;background-image:url("../images/dialogheader.jpg");background-repeat:repeat-x;border-bottom:3px ridge #0034b0;border-left:2px solid #1783f2;border-right:2px solid #1783f2;-moz-border-radius-topright:10px;-moz-border-radius-topleft:10px;-webkit-border-top-right-radius:10px;-webkit-border-top-left-radius:10px;}
.dialog h3{height:29px;font-size:16px;color:#eee;text-shadow:1px 0px 1px #0a2b96;padding:5px 0 0 10px;-moz-border-radius-topright:10px;-moz-border-radius-topleft:10px;-webkit-border-top-right-radius:10px;-webkit-border-top-left-radius:10px;}
.dialog img{float:left;padding:20px;}
.dialog p{padding:10px;font-size:12px;color:#000 !important;}
.button{text-decoration:none;color:#000;display:block;margin:0 auto;width:75px;height:20px;border:1px solid black;text-align:center;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
728.05 KB
Html CSS3特效
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章