Examples
Here is the simplest example of using in-a-moon with an image tag: 
The code used to generate the image is:
<img src="http://v1.inamoon.com/r?u=WGPVZR8A3hGJTchEgM6aMg&
logged_in_redir=http://static.inamoon.com/blip-ok-0000.gif&
not_logged_in_redir=http://static.inamoon.com/blip-nok-0000.gif">
There are three parameters: u, logged_in_redir, and not_logged_in_redir.
u is your in-a-moon producer id. You can get this by logging in and going to the producer section.
logged_in_redir is the web address to go to when the user is logged in.
not_logged_in_redir is the web address to go to when the user is not logged into in-a-moon. This can be the same as when the user is logged in.
Image based integration is perhaps the easiest way to get started with in-a-moon. Using image-based blips (which is what we call the above) is a good way to get credit for a user accessing your page without having to do a lot of altering to your existing pages.
Note: As accesses count only once per six minute period, there is no need to do more than one blip per web page.
The frame below has included the invisible in-a-moon blip via javascript
Notice how it looks the same as the source page. If you view the source, you can search for "inamoon" to find the added code. You can login to your account to get your own customized version of this code under the "producers" section.
This code is all that is required if you wish to earn revenue off of your content. Notice that nothing has been hidden in this example—no level checks were done.The frame below has included the visible in-a-moon blip at the very bottom. This can be helpful to provide users with feedback that they're logged in.
Like other blips, you can customize the image to meet your needs. If you view the source, you can search for "inamoon" to find the added code. Logging into your account will get your own customized version of this javascript.
The frame below has a simple level check that hides some content if you are not logged in.
You can comletely customize what happens when the user is not of the level you desire. This is just an example that hides some content.
Note that our goal in this example is not to provide absolute security against "unauthorized" users seeing your content. Instead, we think it makes it sufficiently cumbersome to make doing the right thing—right. If you need better security, a server-side solution can be crafted using the "tokens" we provide.
Note too that if you are currently logged in, you will not be able to see what it looks like in a 'not logged in' state.
The frame below has a slightly more advanced level check mechanism that asks users to login to in-a-moon before proceeding.
You can customize the behavior completely. Once the user logs in, they will be redirected back to the requested content.
Note that our goal in this example is not to provide absolute security against "unauthorized" users seeing your content. Instead, we think it makes it sufficiently cumbersome to make doing the right thing—right. If you need better security, a server-side solution can be crafted using the "tokens" we provide.
Note too that if you are currently logged in, you will not be able to see what it looks like in a 'not logged in' state.