---
title: "JQuery DatePicker 日期层被Open Flash Chart遮盖解决方法"
author: "lastavatar"
date: "2011-10-13T17:00:32Z"
tags: ["Flash"]
categories: ["Web前端"]
slug: "jquery-datepicker-open-flash-chart"
draft: false
lastmod: "2011-10-13T17:01:23Z"
id: 1194752
url: "https://lastavatar.iteye.com/blog/1194752"
---

最近在使用Open Flash Chart 做图标，发现Jquery datepicker弹出的日期层在ie和谷歌浏览器下会被flash遮盖住(foxfire不会)，搜索发现通过这个方法可以避免遮盖：

原来报表写法：

```
swfobject.embedSWF("open-flash-chart.swf", "my_chart", "100%", "100%", "9.0.0", 
                   "expressInstall.swf",  
                   {"data-file":"today-data.php"});
```

 增加一个参数后的写法：

```
swfobject.embedSWF("open-flash-chart.swf", "my_chart", "100%", "100%", "9.0.0", 
                   "expressInstall.swf",  
                   {"data-file":"today-data.php"},
                   {wmode:"opaque"});
```

 

解决方案网址：http://code.google.com/p/jquery-datepicker/issues/detail?id=122