posts - 5, comments - 2, trackbacks - 0, articles - 4
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

2008年7月1日

碰到这样的问题,
我有一个页面main.html,里面有很多的frame,比如说a.html,b.html,c.html,d.html,e.html。。。
这些子页面,里面都有一个同名javascript的MenuButtonClass()方法
在其中一个子页面中,我会处理其它的frame是,一般会这样写

window.parent.frames(x).MenuButtonClass();

这个代码在IE中是没有任何问题的,可是在firefox是错误的!

后来我这样写了
window.parent.document.getElementsByTagName("frame")[x].MenuButtonClass();

但是仍然错误,为什么?我调式了,发现
window.parent.document.getElementsByTagName("frame")[x]是有对象的
难道还没有其它的东西没写?

今天终于找到原因了,原来少个contentWindow属性
所以上面应该这样写
window.parent.document.getElementsByTagName("frame")[x].contentWindow.MenuButtonClass();

这样的话,支持IE和firefox就没有问题了。
附上示例代码
窗体间访问的例子.rar
 

posted @ 2008-07-01 10:59 riancy 阅读(119) | 评论 (0)编辑

2008年5月24日

  • 技术资源库亮点
  • 虚拟实验室
  • 在线支持解答
  • MSDN 论坛
  • 网络广播
  • 代码库 (英文)
  • CodePlex (英文)
  • MSDN 杂志
  • 最新下载
  • posted @ 2008-05-24 20:41 riancy 阅读(1) | 评论 (0)编辑

     

    web开发人员关心的IE7和IE8共存的问题其实可以很好的解决。

     

    解决方案一:

    在浏览器右上角有一个“模仿IE7”的切换按钮,但有点麻烦,需要关闭浏览器再重新打开才可以。

     

     

    解决方案二:

    在IE8自带的“开发人员工具”中,点击查看选择striet(Internet Explorer7),既可以不重新启动浏览器观看IE7下的效果。
    可以只提供IE5/7/8三种,并没有IE6模式。

     

     

    解决方案三:因为IE8中含有IE7的内核,所以随便安装一个有IE内核的浏览器,比如世界之窗和傲游,打开一个网页看看,他默认使用的是系统里面的IE7内核

     

    顺便提一下,IE8的开发工具有个不错的功能,也可能是之前的开发工具里面没有注意到吧。

    posted @ 2008-05-24 18:34 riancy 阅读(19) | 评论 (0)编辑

    2008年4月6日

    随着CSS+DIV的页面的深入,一些常见的标签和属性,可以轻松用CSS取代.
    1、避免用<font>来控制文本显示。
    2、停止使用<b>和<i>来使用文字变成粗体和斜体。
    3、忽略用于网页布局的<table>标签。
    4、排除仅仅用来增加内容展现的笨拙的<body>标签属性,如不用background、bgcolor、text、link、alink、vlink来给网页设置颜色和图片。
    5、不要滥用<br/>标签。

    posted @ 2008-04-06 23:17 riancy 阅读(37) | 评论 (0)编辑

         摘要: 原文: http://aspalliance.com/1614_Adding_Filter_Action_to_FileUpload_Control_of_ASPNET_20介绍的文章是VB.Net,我改成C#放上来第一步:添加控件<asp:LabelID="lblUploadErr"runat="server"></asp:Label><asp:FileUpload... 阅读全文

    posted @ 2008-04-06 01:08 riancy 阅读(151) | 评论 (0)编辑

    2008年2月25日

    The Autochanging Tabs

    1) Easy Tabs 1.2 with autochange- You can now set the autochange mode to one of your tab menus.


    2) Rotating jQuery tabs


    3) Slideshow Tab Content Script-"- Supports "slideshow" mode, in which script automatically cycles through and selects each tab periodically until a tab is explicitly selected.


    Sliding Tabs

    4) Sliding Tabs- Sliding Tabs is a mootools plugin which adds a pretty neat effect. It’s a clone of something seen on Panic Software’s Coda site, which in turn is very heavily inspired by a widget used in the iTunes Music Store.


    5) Coda-Slider- Amazing jQuery Coda-Slider can be used for Nice, slick content presentation.


    6) Perspective tabs- Formerly Sliding Tabs uses mootools that allows for a lagre number of tabs to fit into a small space.


    Ajax Tab Content

    7) Ajax Tabs Content Script- This is a versatile Ajax Tabs Content script that lets you display content pulled from external files inside a DIV and organized via CSS tabs.


    Closeable Tabs

    8 ) Tab Panes- Two Versions with close and add panes.


    9) Closeable Tabs Module- The Closeable Tab widget allows tabs to be removed.


    Must see Examples

    10) Fabtabulous- Simple tabs using Prototype


    11) JQuery TabContainer Theme-JQuery style fade animation that runs as the user navigates between selected tabs


    12) moo.fx Tab Accordion- Tab Accordion script using moo.fx


    13) MooTabs- MooTabs is a tiny(3kb) class for MooTools. As the name suggests, it’s main purpose is to help out with the creation of simple tab navigation.


    14) TabView component- The TabView component is designed to enable developers to create navigable tabbed views of content.


    15) Fancy Sliding Tab Menu- This cool menu is developed in script.aculo.us


    16) Control.Tabs- Unobtrusive CSS tabs for Prototype.js


    17) Zapatec Ajax Tabs- This demo uses the Zapatec AJAX Transport layer to transfer the tab contents dynamically.


    Ajax Tab Generators

    18) 15daysofjquery- jQuery Tabs A simple form that you can use to generate the markup for the tabs.


    Advanced Tab Techniques

    19) Advanced Tabs This TabPanel is built entirely with javascript and demonstrates: Auto tab resizing, Tab scrolling, Tabs with icons, Tab plugins (context menu), Adding tabs with JS.


    20) Floating window with tabs This script is based on simple ordinary div tags. This makes it very easy to set up. Put in your HTML content and call a javascript function to initialize the window.


    21) AJAX Tabs (Rails redux) The Concept here is using Ajax to load information that does not need to be retrieved every time the user pulls the record.


    22) Ajax Tabs Reloaded User can add or remove tabs (and content) without refreshing the page.


    23) JQuery Nested Tab


    CSS Only Tabs

    24) Cross browser tabbed pages with embeded links NO javascript - just CSS - and it validates. Just hover over the tabs to display a page of text with a picture and embeded links. A working scroll bar is added for each page as required.


    25) CSS Tabs The goal was to build CSS tabs without using any images or hacks and with as little CSS as possible.


    26) CSS-driven tabs


    27) CSS-driven tabs


    28) CSS Tabs- Based on Joshua Kaufman’s version


    29) Hidden Tab menu A simple hidden tab menu that opens when the tab is hovered.


    30) Inverted Sliding Doors tabs- Inverted tabs means that they are bottom-aligned, and as text size is increased, more and more of the tabs is revealed from the top down, instead of from the bottom up as in the original Sliding Doors technique.


    31) Updated Simple CSS Tabs- CSS Tabs with nested menu.


    32) CSS Tabs with Submenus- This is a way of accomplishing tabs and subnavigation using only CSS and nested unordered lists.


    33) Simplified CSS Tabs


    34) Tabs- Using CSS to build a tabbed display. One where the user can click on individual tabs to view different content within the same space.


    Ajax Tab Tutorials

    35) Dynamic Ajax Tabs in 20 Lines Dynamic Ajax Tabs in only 17 lines of code thanks to the Prototype Javascript framework.


    36) Building Tabbed Content This workshop we will be building a tabbed content browser that’s Ajax powered. When ever a user clicks a tab the Ajax will communicate with the server and send back the appropriate data for that tab.


    37) CSS Tabs- A great tutorial to teach us how to create a css tabs.

    posted @ 2008-02-25 22:59 riancy 阅读(26) | 评论 (0)编辑

         摘要: 对于动态操作配置文件我想大家都不陌生,以前都是用的操作xml的方式,在.net2.0以上版本我可以利用新的方法来实现自己对自己的配置:publicclassConfigureAppConfig{//静态构造,不能实例化staticConfigureAppConfig(){}/**////<summary>///获取AppSettings配置节中的Key值///</summary&... 阅读全文

    posted @ 2008-02-25 20:12 riancy 阅读(305) | 评论 (2)编辑

    2007年12月17日

         摘要: 以前大家可能碰到过这样的需求,
    要求程序检查.xls文件有没有被Excel打开着,我想很多朋友都会想到利用系统api.获得进程窗体的句柄等...

    前面一段时间,正好碰到了这样需求,所以调查了一下,其实oledb公开了一些api,可供我们使用.  阅读全文

    posted @ 2007-12-17 19:10 riancy 阅读(74) | 评论 (0)编辑