Hi there, does your minicity population grow? Before you read on, you might want to read my last article about myminicity.com too :P This time I’ll give you a complete guide on how to have fun on it with the complete explanation. Follow the example below and I’ll explain it to you on how it works to you later. I also provide a source code for you.

This is the example link, you may skip it to read further. But my advise, just take a look at it on how it works.

Example : http://zoiz.web.id/myminicityhack.php

See? It is that easy.

Here is the source code


<SCRIPT language=”JavaScript1.2″>
function popitup()
{
myminicity = window.open(”http://yourminicityURL.myminicity.com/”,”mywindow”,”status=1,width=10,height=10,top=1,left=-1000″);
setTimeout ( “closepopup()”, 3500 );
}

function closepopup()
{
if(false == myminicity.closed)
{
myminicity.close ();
}
}
</SCRIPT>

And remember to put this :

<body onLoad=’popitup()’>

Explain :

The function popitup() is used to create a pop up windows opening your minicity link. Thus it’ll add 1 population for you. And the function closepopup() is used to close the current pop up in 3,5 seconds (where 3500 means 3,5 seconds).

Where to put this code?

Put the javascript below the </head> tag or your page, or anywhere inside the body tag.
Also remember to modify the body tag by adding onLoad=’popitup()’ thus will call the pop up function.

What should I edit?

You must edit this http://yourminicityURL.myminicity.com/ to your minicity URL. That’s it. Also you are free to modify the time before the pop up is auto closed. Jobs done.

For your convenience, you may download this example script here.

Sign Up your blog here :

And see how to implement this script to your blog, click here