View Full Version : Prototype Window Class (Java)

01-03-2007, 10:44 AM

I was just wondering if anybody had any experience with this script? Link is:
prototype-window.xilinus. (com) / (index.html)

This is exactly what I need, as I want the user to click a link of my site, and a small window opens with a FLV player!

But I know only basic java, and this is well over my head! I was just wondering if anyone knows this script and if its any good?

My main question is how do I call the script! I have all the css and the .js files in the correct place, and I have added these lines to my <head> section:

<!--StartFragment--><script type="text/javascript" src="/javascripts/prototype.js"> </script>
<script type="text/javascript" src="/javascripts/window.js"> </script>

<link href="/stylesheets/themes/default.css" rel="stylesheet" type="text/css"></link>

<!-- Add this to have a specific theme-->
<link href="themes/mac_os_x.css" rel="stylesheet" type="text/css"></link>


<!--StartFragment-->win = new Window('window_id', {className: "mac_os_x", title: "Sample", width:200, height:150});

win.getContent().innerHTML = "<h1>Hello world !!</h1>";

Heres the stupid question!: However how do I make the Click here button? what is the link going to be!?!?

Any ideas?

Thanks Alot