내가 자꾸 까먹어서 쓰는 개발 이야기/jQuery
브라우저의 flash 설치 여부 확인
FIL.
2014. 12. 9. 14:40
728x90
미개한 우리 국민들은 여전히 flash를 사용하는 경우가 많다.
flash 사용이 꼭 필요한 경우, jQuery의 jqplugin을 통해 간단히 설치 여부를 확인할 수 있다.
https://code.google.com/p/jqplugin/ 에서 내려 받아 사용한다.
$.browser.flash 와 같이 호출 하면 boolean 형식으로 리턴 된다.
지원 목록은 다음과 같다고 한다.
- Flash
- Silverlight
- PDF(checks if pdf mimetype is supported not limited to one PDF application)
- Java
- Quicktime
- Windows Media Player
- Shockwave
- Realplayer
출처: http://stackoverflow.com/questions/15426116/how-to-check-flash-is-enabled-in-browser-or-not