Jump to content
  • 0

События в <OBJECT>


Costen
 Share

Question

Такой вопрос, допустим в документ необходимо добавить некий ActiveX, например UpDown:

<OBJECT id=UD1
style="LEFT: 209px; WIDTH: 16px; BOTTOM: 0px; TOP: 138px; HEIGHT: 20px"
classid=clsid:603C7E80-87C2-11D1-8BE3-0000F8754DA1><PARAM NAME="_ExtentX" VALUE="423"><PARAM NAME="_ExtentY" VALUE="688"><PARAM NAME="_Version" VALUE="393216"><PARAM NAME="Value" VALUE="0"><PARAM NAME="Acceleration" VALUE="0"><PARAM NAME="Alignment" VALUE="1"><PARAM NAME="AutoBuddy" VALUE="0"><PARAM NAME="BuddyDispid" VALUE="-1"><PARAM NAME="BuddyIndex" VALUE="-1"><PARAM NAME="OrigLeft" VALUE="0"><PARAM NAME="OrigTop" VALUE="0"><PARAM NAME="OrigRight" VALUE="0"><PARAM NAME="OrigBottom" VALUE="0"><PARAM NAME="Increment" VALUE="1"><PARAM NAME="Max" VALUE="10"><PARAM NAME="Min" VALUE="0"><PARAM NAME="Orientation" VALUE="0"><PARAM NAME="SyncBuddy" VALUE="0"><PARAM NAME="Wrap" VALUE="0"><PARAM NAME="BuddyProperty" VALUE="-1"><PARAM NAME="Enabled" VALUE="-1"><PARAM NAME="OLEDropMode" VALUE="0"></OBJECT>

а затем обработать его события

<SCRIPT LANGUAGE=javascript FOR=UD1 EVENT=DownClick>
UD1_DownClick()
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=UD1 EVENT=UpClick>
UD1_UpClick()
</SCRIPT>

то есть в чистом html это не вызывает проблем, но как тоже самое проделать с помощью JavaScript?

Создать объект можно: document.write(....);, но как обработать события? Есть какая-либо замена

<SCRIPT LANGUAGE=javascript FOR=UD1 EVENT=DownClick>

кодом на JavaScript, или можно обработку событий включить внутрь тега OBJECT?

Подскажите, плз :)

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy