Goal: change the image content by css definition like this:
Archive for the 'tricky' Category
define image source in css
11:38 |
css, tricky |
711 views
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 […]
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 […]
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 […]
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 […]
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…
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…
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 […]
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 […]
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 […]
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 […]