Archive for the 'tricky' Category

28 Jan 2017

define image source in css

11:38 | css, tricky | 711 views

Goal: change the image content by css definition like this:


1 May 2015

url – parameters as part of the path

9:23 | php, tricky | 995 views

Goal: simplify the url A normal url request with parameters looks like this: In many cases we need the following form: how to: 1. we have to accept the invalid request as a normal one. Let’s create a .htaccess file in the root with the following content: 2. receive the parameter in your php code […]


10 Jul 2014

javascript float strange behavior

21:58 | javascript, tricky | 969 views

Goal: to discover some black hole Javascript is perfect but… check this small piece of code for(var i = 0;i < 5; i+=.1){console.log(i);} [/js] This is a simple iteration but the result is terrible: (with other arguments like .2, .3 ... the result will be different but bad as well - try) [js] 0 0.1 […]


3 Jul 2014

setTimeout with parameters

18:26 | javascript, tricky | 755 views

Goal: to find a compatible form of setTimeout calling with parameters The general form is easy, but not working under ie… The following form is ie compatible…


18 Jun 2014

stylesheet easy swap method

11:07 | css, tricky | 882 views

Goal: tricky way of stylesheet change on a page I’ve read many blogs about this theme, but I’m not satisfied. Here is my way. Short and effective. My blog has a cloudy design, but I have an other image in my head with a golf ball. I don’t want to drop the first one and […]


13 Jun 2014

hosts – how can I save this

22:29 | tricky | 830 views

Goal: to save a file without extension from notepad.exe For example sometimes we need to edit the hosts file. From notepad this is easy, but to save it without .txt or .other extension is a little bit tricky. In the save as panel just put the name “hosts”, and that’s all. Don’t forget to open […]


#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }