Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /data/web/jeremie.com/render/jer.php on line 5

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'www-data'@'localhost' (using password: NO) in /data/web/jeremie.com/render/jer.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /data/web/jeremie.com/render/jer.php on line 6

Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /data/web/jeremie.com/render/jer.php on line 9

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /data/web/jeremie.com/render/jer.php on line 9

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /data/web/jeremie.com/render/jer.php on line 9

This library allows the page author the ability to creat miniature "windows" on their web pages.  For lack of a better name, and to not confuse users or infringe on any other windowing system, I refer to them as Warts.   You can place any normal HTML inside a wart, in fact, a wart is nothing more than a <DIV>!

Samples:

Things to notice, when the page is scrolled, the wart resumes its position relative to the screen not the document, so it always stays accessible to the user.  When the same warts are drawn across multiple pages, they remember their position and settings from the previous page, so changes the user makes are not reset everytime they navigate to a new page.

 

Documentation

You wouldn't BELIEVE how easy it is for you to put this on your page!  Follow along with the steps, choose from the various options, and add a wart to your web page!

Step 1:    Get the file library

Download version .90 Sep 25 1997

Step 2:    Insert it into your page

Place the following HTML in the <HEAD></HEAD> of your page, and make sure the src="" points to the URL for the library you just downloaded.

<SCRIPT SRC="warts.js"></SCRIPT>

Step 3:    Create a wart in your page

Warts are created by using the <DIV> tag, which is basically just a container for other HTML.  A good one to cut and paste would be:

<DIV
ID="mywart1"
WART="title:My Wart;title-color:yellow;"
STYLE="visibility:hidden;position:absolute;background:blue;top:100;left:200;height:300;width:200;overflow:hidden;border-style:solid;border-width:3;border-color:black;border-top-width:20;"
> Your content here, anything you want </DIV>

Thats it! Put in as many as you want on your web page and as many web pages as you want!

Please feel free to modify the code, it is fully commented to help you lea how it works, and especially, PLEASE feel free to email me webdev@jeremie.com with your comments/questions/suggestions/bugs/code enhancements, whatever!

For the scripters out there, I made 2 public functions for the warts, open() and close(), so you can script in a document.all.mywart1.open(); and document.all.mywart1.close();  I will be trying to make the full WART="" availble for scripting similiar to the STYLE="" object, after IE4 final release that is.

Keep checking back for new versions, as I suspect I'll be updating this often!

Bugs