Tuesday, May 29, 2007

My blogger experiences

The reason that I love blogger.com
I used blogger.com since it was not purchased by Google, although I never seriously developed my blog here. Delightfully, I found that it had changed to the direction that I love, which are efficient interfaces and complete help documents for beginners as well as advanced controls for technique geeks.
The Javascript problems (new)
I use HTML/Javascript element to add a photo (from my picasa web) with link. It used to work well. But today I discovered that blogger.com try to format my code according to some rules. But the algorithm is stupid such that it turns my code to scratches. If I define string like this:
var str1='<a>'
var str2='<img src="my link"'
var str3='/></a>'
document.write(str1+str2+str3)
It cannot work. Once I change str2 to
var str2='<img src="my link"/>'
Then it works!

No comments: