ITeye博客

Web UI Design

fastwind · 共 132 篇文章

JS实现浏览器菜单命令

每当我们看到别人网页上的打开、打印、前进、另存为、后退、关闭本窗口、禁用右键等实现浏览器命令的链接,而自己苦于不能实现时,是不是感到很遗憾?是不是也想实现?如果能在网页上能实现浏览器的命令,将是多么有意思的事啊!下面我们就来看看如何用Javascript代码实现浏览器菜单命令(以下代码在Windows XP下的浏览器中调试通过)。 一、【文件(F)】菜单中的命令的实现 1、〖打开〗命令的实现 [格式]:document.execCommand("open") [说明]这跟VB等编程设计中的webbrowser控件中的命令有些相似,大家也可依此琢磨琢磨。 [举例]在<body></body>之…

2008-04-23 13:56 · JavaScript · 评论(0)

self.location.href的具体用法

self指代当前窗口对象,属于window最上层的对象; location.href 指的是某window对象的URL地址. self.location.href指当前窗口的URL地址,去掉self默认为当前窗口的URL地址. 一般用于防止外部引用,如果你的网页地址是: http://www.a.com 别人的是 http://www.b.com , 他在他的页面用iframe等框架引用你的 http://www.a.com ,那么你可以用: if(top.location.href!=self.location.href){ location.href=" http://www.a.com…

2008-04-23 13:08 · Web标准 · 评论(0)

Silverlight Tutorial Part 8

Silverlight Tutorial Part 8: Creating a Digg Desktop Application using WPF This is part eight of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help explain some of the c…

2008-04-18 14:20 · SilverLight · 评论(0)

Silverlight Tutorial Part 7

Silverlight Tutorial Part 7: Using Control Templates to Customize a Control's Look and Feel This is part seven of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help expl…

2008-04-18 14:18 · SilverLight · 评论(0)

Silverlight Tutorial Part 6

Silverlight Tutorial Part 6: Using User Controls to Implement Master/Detail Scenarios This is part six of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help explain some…

2008-04-18 14:17 · SilverLight · 评论(0)

Silverlight Tutorial Part 5

Silverlight Tutorial Part 5: Using the ListBox and DataBinding to Display List Data This is part five of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help explain some …

2008-04-18 14:16 · SilverLight · 评论(0)

Silverlight Tutorial Part 4

Silverlight Tutorial Part 4: Using Style Elements to Better Encapsulate Look and Feel This is part four of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help explain som…

2008-04-18 14:15 · SilverLight · 评论(0)

Silverlight Tutorial Part 3

Silverlight Tutorial Part 3: Using Networking to Retrieve Data and Populate a DataGrid This is part three of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help explain s…

2008-04-18 14:14 · SilverLight · 评论(0)

Silverlight Tutorial Part 2

Silverlight Tutorial Part 2: Using Layout Management This is part two of eight tutorials that walk through how to build a simple Digg client application using the Beta1 release of Silverlight 2. These tutorials are intended to be read in-order, and help explain some of the core programming concepts…

2008-04-18 14:12 · SilverLight · 评论(0)

Silverlight Tutorial Part 1

Creating a New Silverlight Application using VS 2008 We'll start our Digg application by selecting the File->New Project menu item within Visual Studio 2008 and use the New Project dialog to create a "Silverlight Application" (note: you will need to download and install the Silverlight Tools for VS…

2008-04-18 14:10 · SilverLight · 评论(0)

关于Silverlight的版本问题

虽然微软的Silverlight技术的宣传和版本进度的推进,可能现在开始关注Silverlight的人越来越多了。由于Silverlight还并不是一个已经成熟的东西,所以在Alpha或者beta版的时候会出现很多的版本问题,很可能也不能互相兼容,这和.net framekwork1.1 和2.0比较像。 我在学习Silverlight的时候也走过很多的弯路,在这里总结一下,以帮助那些正要开始学习Silverlight的同行们。 首先Silverlight其实是一种跨平台(Mac & Windows),跨浏览器(Firefox, Safari & IE) 的微软用于基于.net来构建RIA的…

2008-04-18 13:40 · SilverLight · 评论(0)

初学SilverLight---XAML简介

初来咋到的学习SilverLight,由于最近有个培训,也就只有认真的研究下这个东西了。看了下示例的效果,确实很不错,感觉自己已经很落伍了啊,呵呵。 转载一个译文,给像我一样的初学silverLight的朋友。 什么是XAML? XAML是一种陈述性语言。你可以使用XAML标记创建可视化的UI原件。 之后,你可以在一个单独的文件中使用JavasScript来操作你在XAML所声明的对象、响应一些事件。作为一种以XML为基础的陈述性语言,它创建界面时,从原型到产品的过程非常直观,尤其是对于有网页设计背景知识和技术的人。XAML文件通常是以.xaml为后缀的XML文件。下面是一个典型的Silve…

2008-04-18 10:10 · SilverLight · 评论(0)

开发简单的Silverlight 2应用程序

启动VS2008,“新建项目”,可以看到“项目类型”下面有“Silverlight”,选择“Silverlight”,在右边的模板里面可以看到“已安装的模板”列出了“Silverlight Application”和“Silverlight Class Library”两种类型的模板。 选择“Silverlight Application”模板,出现下面的对话框: 由于Silverlight应用程序目前还无法单独运行,它必须嵌入页面里面,通过object标签元素来启动它,所以,在创建“Silverlight Application”的时候,VS会提示你选择一种运行Sliverlight程序的…

2008-04-17 10:43 · SilverLight · 评论(0)

SilverLight是什么?

SilverLight是Windows PresentATIon Foundation的一个子产品,其利用了跨浏览器Web技术进行设计,以实现多操作系统,甚至是移动设备上的无缝运行。和Flash一样,WPF/E 是作为一个浏览器的插件,可以显示矢量图形、动画和视频。 Silverlight集成了多种现有Web技术和设备,它可以在Windows、Mac平台上运行,支持IE、Firefox,甚至Apple的Safari Web浏览器。而无需对现有的网站设计进行移植,甚至包括利用Adobe Flash设计的内容。 至于SilverLight与Flash的区别,微软的一位高层人士曾这样描述:一个WP…

2008-04-17 10:42 · SilverLight · 评论(0)

SQL Server 2005版本特性介绍

作为微软下一代的数据管理与商业智能平台,SQL Server 2005将是微软5年来具有里程碑性质的企业级数据库产品。和以往的数据解决方案相比,SQL Server 2005将给您带来空前的价值、超强的功能和激动人心的全新体验。 SQL Server 2005中包含了非常丰富的新特性:通过提供一个更安全、可靠和高效的数据管理平台,增强企业组织中用户的管理能力,大幅提升IT管理效率并降低运维风险和成本;通过提供先进的商业智能平台满足众多客户对业务的实时统计分析、监控预测等多种复杂管理需求,推动企业管理信息化建设和业务发展;同时,SQL Server 2005将提供一个极具扩展性和灵活性的开发平…

2008-04-16 23:45 · 乱 · 评论(0)