Lawrence,

You could include our SimileAjax API in your HTML like so

    <html>
       <head>
          ...
          <script 
src="http://static.simile.mit.edu/ajax/api/simile-ajax-api.js";></script>
          ...

add this script

    <script>
      function showBubbleOnElement(elmt) {
        var coords = SimileAjax.DOM.getPageCoordinates(elmt);
        var bubble = SimileAjax.Graphics.createBubbleForPoint(
          document, coords.left, coords.top, 400 /* width */, 300 /* 
height */);
        bubble.content.innerHTML = "blah blah blah";
      }
    </script>

and hook up onclick event handlers

    <span onclick="showBubbleOnElement(this);">Synopsis</span>

Cheers,

David


Lawrence Goodman wrote:
> I am creating a database of playscripts using SIMILE. What I want to 
> happen is that whenever a user clicks on the term "Synopsis" a bubble 
> pops up with the text of the Synopsis item in the javascript database 
> file.
>
> Essentially, I am modeling it on David Huynh's Publications site where 
> you can click on an author and get their list of publications. 
> http://people.csail.mit.edu/dfhuynh/publications.html 
> <http://people.csail.mit.edu/dfhuynh/publications.html>
>
> I have asked three professional website developers how to do this and 
> not a one could figure it out.
>
>
> Alas, I am a real novice, but it would be extremely helpful if someone 
> could at least point me to the code in Huynh's site controlling this. 
> I can't begin to figure it out.
>
> Thanks.
>
>
>
>
> -- 
> Lawrence Goodman
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Check out my blog: http://goodmanorama.blogspot.com 
> <http://goodmanorama.blogspot.com>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to