Before we introduced the Windows desktop effect based on jquery tool, today we bring you a easyui-based implementation of Windows desktop. This desktop browser: 360, FireFox, Chrome, Safari, Opera, Proud tour, Sogou, the window of the world. IE8 and the following browsers are not supported. As follows:
Online preview Source Download
The implemented code.
JS Code:
$(function() {$.messager.alert ("Webmaster material", "Welcome to webmaster material, you can now experience the application, more JS code please continue to focus on <a style= ' color:green ' target= ' _blank ' href= ' http://www.w2bc.com ' > Webmaster Material Web Effects </a> "); if($.browser.msie && parseint ($.browser.version) < 8) {$.messager.alert ("Warm Tip", "You are currently using IE" + $.browser.version + ". The program supports <a style= ' color:green ' target= ' _blank ' href= ' http://windows.microsoft.com/zh-CN/internet-explorer/ Products/ie/home ' >IE8.0</a> above version and Google, Firefox.); } Try{top.location.hostname; if(Top.location.hostname! =window.location.hostname) {top.location.href=window.location.href; } } Catch(e) {top.location.href=window.location.href; } });
vis:http://www.w2bc.com/article/18340
Implementing Windows desktops based on Easyui