• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html Frames in Applets

 
Jyothsna Sri Y
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Is this possible at all...

Having html Frames inside applets. I have a plugin for IE. This plugin displays molecules(chemical) on the IE. Now I want to capture mouse events using either applets or javascript

<HTML>
<HEAD>
<TITLE> COMFERT </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--

function processClicks() {
alert("Hello World!");
}

if (window.Event) // for Navigator 4.0x
document.captureEvents(Event.MOUSEUP);
document.onmouseup = processClicks;

// -->
</SCRIPT>

</HEAD>

<BODY >
<center>
<embed valign = "top" src = "pdb/1AVX.pdb" bgcolor = "black" border = 2 FRANK = true width = '750' border = '2' slab off height = '390' name = 'first' startspin='true' spinx='5' spiny='5' spin = 'true' script = 'select all;wireframe on;'>
</embed>
</center>
</BODY>
</HTML>

When I use this script I get the dialog whenever I click out of the height and the width specified within embed tags. But I want to capture the event when I click on the molecule also.. please help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic