September 3rd, 2010


How to align vertically an element with JavaScript

by Dragos, on December 24th, 2008  

If you would like to align an element vertically within a parent element, i use the following script.

<script type=”text/javascript”>

if (typeof window.innerWidth != ‘undefined’)
{
bh = window.innerHeight
}
if (typeof document.getElementById(“myElementID”).offsetHeight != ‘undefined’)
{
mbh = document.getElementById(“myElementID”).offsetHeight
}

document.getElementById(“myElementID”).style.marginTop=Math.round((bh-mbh)/2)+’px’);

</script>

This will arrange an element in the middle of a webpage.

Wordpress 2.7 “Coltrane” rOcKs!

by Dragos, on December 11th, 2008  

Wordpress 2.7 codename “Coltrane” has been finally released! If you have a wordpress blog, consider upgrading to the newest version cause it rOcKs!
First of all the interface. Like all time the Wordpress team has created a simple, but user friendly interface for our blog to work with. Now you have shortcuts to your most common [...]

Grand Theft Auto IV (GTA 4), is it really cool?

by Dragos, on December 6th, 2008  

I know, i know. On this blog i should only write about SEO tips, programming and so on. But I grew up playing gta and now I’ve totally changed my mind about this game.
It’s been a headache this week trying all cracks from all trackers, most of which were fake or had the drunk camera [...]