Make a Bookmarklet

You can also bookmark the control links above in order to have control over ponies on any website.
However, the Toggle ponies in background function needs special
support by the website in order to work.

Or paste this into your webpage:

Or if you don't want to include my script directly in your webpage
you can use this embed code to confine the ponies into an iframe:

Show Paddock

Show Grass

Width:

px

Height:

px

Change settings and choose your ponies

Enable Audio(Your Browser does not support HTML5 Audio. Get a
betterbrowser.)(Your browser supports HTML 5 Audio.)

Show Frames per Second

Show Progress Bar

Never Speak

Speed Multiplier:

Random Speak Probability:

%

Volume:

%

Frames per Second:

Fade Duration:

sec

Filter Categories:

All Added

No Category Selected

Bookmarks Menu

If you'd like you can download a bookmarks file with links to add a certain pony
and the controls from the top of this page. Just right click-save this link and
import the resulting file in your browser (only tested in Chrome and Firefox):

Feedback

Advanced User Stuff

Browser Support

Firefox has a bug concerning the animation speed of animated GIFs (I tried to work around this by
shortening all effect durations when using Firefox). Also I found no way to control the animation
playback of individual images in Firefox, which sometimes causes animation errors (when a effect
is shown twice both effect animations are synchronized).

In Internet Explorer I managed to control GIF animation playback using iframes, but you can't make
them transparent and border less. In Chrome iframes do not suffer from this limitation.

Toggle ponies in background

In order to support the Toggle ponies in background function websites need
to define a special function called toggleBrowserPoniesToBackground. This function
changes the z-index of everything that should appear in front of the ponies. The ponies have
a z-index of 9000000 + distance from top window border to bottom of the pony. The
speak bubbles have a z-index of 9009000 (I assumed noone has a screen higher than
9000 pixels).

For instance, this webpage defines the toggleBrowserPoniesToBackground function like so:

Using your own ponies

If you want to use your own ponies you can convert the INI files to JavaScript using the tools below.
Just load the INI files, fix the filenames/URLs if needed and generate the JavaScript. The resulting
pony script will use the settings from above except for which pony is loaded.

Note:
This currently only works with Firefox and Chrome. Opera does currently not support files
being dropped (so click to use the file open dialog) and Internet Explorer currently cannot
read files at all in JavaScript (probably in version 10 it will be able to do that).

Your Ponies:

Click or drop Pony.ini files here.

As a next step you may need to adapt the URLs of the images and sounds to where they
really are hosted. If they are hosted on some web server with the files of each pony
in a seperate distinct directory you just need to change the base URL to the location
of said directory. Don't forget the / (slash) at the end of the base URL and please
note that the web is case sensitive. This means the file names as they are on the
server have to exactly the ones defined here.

If the files are all at some more or less random location, you need to adapt all the
URLs individually. In this case just enter an absolute URL in the URL fields of each
file. If the URL of an file is absolute the base URL will be ignored.

As a third option you can also embed the files directly in the generated script.
Note that this encodes the whole files into data URLs, which might cause the generated
script to be a lot bigger than the sum size of all the files. Also Internet Explorer
does not support data URLs of the length of 2048 characters, and the pony sprites
are usually an order of magnitude bigger than that.

Your Interacions:

Click or drop Interactions.ini files here.

Base URL:

your-ponies.js:

Then put the contents of the text area above into a file called e.g. "your-ponies.js"
and host it somewhere on the web. You can then embed your ponies on your web site by adding
this code somewhere in the HTML code of your web site (I recommend somewhere between
<head> and </head>):

Best Pony

Download

Note that none of the images are made by me. They simply are the images of
the Ponychan fork of
Desktop Ponies. Go there for a full list of
art credits. The only changes I made are fixes to the file names, because the web is case sensitive.

License

The code of this software is licensed under the MIT license. This applies to all
JavaScript files (except basecfg.js and ponycfg.js), HTML, CSS, unix shell script
and Python files in this project. The license does not apply to any pony images,
*.ini files (or files compiled from these INI files) or sound files. These files
are copied from Desktop Ponies. The images and INI files are under various
licenses (mostly CC BY-NC-SA 3.0).

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.