문서에 플러그인(plugin)된 개체를 참조한다,

Script [propVal=]document.pluginObj.propName;
HTML 없다.
인수
document : (문서 개체)
필수적인 인수로 문서를 참조한다.
plugins : (플러그인 배열변수)
필수적인 인수로 플러그인된 개체들의 배열변수(plugins)를 참조하는 속성이다.
pluginID : 플러그인 개체의 이름(id)
선택적인 인수로 문자열로된 플러그인된 개체의 지정자이며 HTML 태그에서 미디음악이나 플래쉬를 올리는데 사용하는 <EMBED id='pluginID'>에 해당한다.
이 대신 인수를 사용하여 배열변수의 호출방식을 사용하여 document.plugins[N]해도 된다.
propertyName
속성명으로 각 플러그인 개체의 종류에따라 적용될 수있는 속성은 서로 다르다. 아래 propertyName들은 예제로 생각하면 된다.

해당 plugins 개체에 적용되는 메서드들도 같은 형식이다.

설명

인수의 참조는 배열변수(Array 개체)의 인수를 사용한 참조방식에 준한다.
문자열 plugins가 배열변수가 되어 인수는 0부터 시작하여 document 개체의 첫 플러그인 개체의 인수는 0이고, plugins[0]으로 참조되며, 마지막 플러그인의 인수는 length-1이다.



object
plugin
plugin
개체속성예제
이전페이지로페이지 맨위로페이지 맨아래로

plugin 설명을 위한 예제

<embed id="embedObj" src="http://trio.co.kr/sound/flute1.mid" autostart="false" loop="1" description="풀륫 음악" name="embedName" height="45" width="400" filename="flute1.mid"><script>oObj=document.plugins[0];</script>

object
plugin
plugin
개체견본예제
이전페이지로페이지 맨위로페이지 맨아래로
autostart 속성 IE NS
⇒ 선언된 자동으로 플레이할 것인가를 부울(Boolean)값으로 반환하거나 설정한다.
문법: pluginObj.autostart[=true|false]
코드: document.write(oObj.autostart) 결과: undefined
description 속성 IE4 NS3
⇒ 선언된 자동으로 설명을 반환하거나 설정한다.
문법: pluginObj.description[=sVal]
코드: document.write(oObj.description) 결과: undefined
filename 속성 IE4 NS3
⇒ 선언된 파일 이름을 반환하거나 설정한다.
문법: pluginObj.filename[=sVal]
코드: document.write(oObj.filename) 결과: undefined
height 속성 IE NS
⇒ 개체의 높이를 픽셀 단위로 수치를 반환하거나 설정한다.
문법: pluginObj.height[=iVal]
코드: document.write(oObj.height) 결과: 45
hidden 속성 IE4 NS
⇒ 개체를 보일것인가 감출 것인가를 부울값으로 반환하거나 설정한다.
문법: pluginObj.hidden[=bVal]
코드: document.write(oObj.hidden); 결과: false
isActive 메서드 - NS4.7
⇒ 문서에 plug-in이 남어 있으면 Plug-in 인스탄스는 소멸되는데, plug-in의 Java가 계속 반영되는가를 결정한다.
문법: pluginObj.isActive
코드: document.write(oObj.isActive); 결과: 생략
loop 속성 IE
⇒ 음악이나 비디오 플레이를 몇번 반복할 것인가를 반환하거나 지정한다.
문법: pluginObj.loop[=iVal]
코드: document.write(oObj.loop); 결과: undefined
name 속성 IE4 NS3
⇒ 개체의 이름을 반환하거나 설정한다. 디폴트 값은 null이다.
문법: pluginObj.name[=sVal]
코드: document.write(oObj.name) 결과: embedName
plugins(컬렉션) 속성 IE4 NS3
plugin 개체들의 배열변수 plugins 컬렉션을 반환한다.
문법: document.plugins
문법: document.plugins.length
코드: document.write(document.plugins) 결과: [object HTMLCollection]
코드: document.write(document.plugins.length) 결과: 1
src 속성 IE NS
⇒ 개체의 주소 문자열을 반환하거나 설정한다.
문법: pluginObj.src[=urlVal]
코드: document.write(oObj.src) 결과: http://trio.co.kr/sound/flute1.mid
width 속성 IE NS
⇒ 개체의 너비를 픽셀 단위로 수치를 반환한다.
문법: pluginObj.width[=iVal]
코드: document.write(oObj.width) 결과: 400

object
plugin
plugin
개체속성견본
이전페이지로페이지 맨위로페이지 맨아래로
object
plugin
개체속성견본예제
이전페이지로페이지 맨위로
최종 수정:
05/02/2025 22:19:42
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/object/plugin.html