第112天:洗完澡后全身痒的原因,getElementById 不要写成 getElementsById

星期二 多云 21~30℃

洗完澡后全身痒的原因

一段时间以来,洗完澡后总是感觉身上痒,不知道问题是出在哪,是水呢还是毛巾呢?昨晚用了新毛巾,才知道,原来是毛巾的问题。此前的毛巾太旧了,在刚刚过去的夏天里更是负起了擦汗的责任。

另,毛巾不宜挂在厨房门上。

又另,用过毛巾后,应尽量让毛巾挂在通风的地方,使其有更长时间处于干的状态。


一个既节省垃圾袋又增进厨房清洁的方法

厨房不宜放垃圾篓,那样会使本来已成为卫生死角的厨房更加负重。厨房一般只在洗菜洗碗时会产生垃圾,所以,可与房间或洗手间共用一个垃圾篓,这样既节省了垃圾袋,又增进了厨房清洁。通常情况下,还应养成每天丢垃圾袋的习惯。

“环保”的字样越来越扎眼,保护小环境,就是保护大环境。越是死角的地方,越不能破罐子破摔。


getElementById 不要写成 getElementsById

第107天 里提到:

友吧首页左侧已加入选项卡,不过在做的过程中遇到一个相当不解的事情,下面这段 JS 在 IE、Opera、Chrome 下都能正常运行,唯独在 FF 下没有反应,相当的不解。有知情的朋友看到这里的话,还请指点一二:

function changeTag(num) {
if(num==1){
speakA.style.display=”block”;
speakB.style.display=”none”;
}
if(num==2){
speakA.style.display=”none”;
speakB.style.display=”block”;
}
}

今天 Ryan 告诉了我解决的方法:

function changeTag(num) {
var a = document.getElementById(‘speakA’);
var b = document.getElementById(‘speakB’);
if(num==1){
a.style.display=”block”;
b.style.display=”none”;
}
if(num==2){
a.style.display=”none”;
b.style.display=”block”;
}
}

注意:getElementById 不要写成 getElementsById。此前我其实试过这方法,正是因为把 getElementById 写成 getElementsById,才没有试成功。不要以为这个错误不起眼,Google 百度一下“getElementsById”,能搜到一堆。


友吧“报料”样式定下

今天做进了 htm 里,待 Ryan 嵌入程序。


在已安装 Adobe Design Premium CS3 的环境下安装 Adobe Illustrator CS 和 CS3

记这条日志是因此前吃过一次亏,此前安装了独立版的 Fireworks CS3 后出现冲突,参见:装 Adobe CS3 Design Premium 的朋友慎重

今天想装一下 Illustrator,但是可能我电脑里的 Adobe Design Premium CS3 安装包出现问题,添加安装 Illustrator CS3 时提示:

Adobe Creative Suite 3 Design Premium
请将 Adobe CS3 Design Premium 插入驱动器 I:\ 以继续进行安装。

我猜想可能是因为我把 ISO 解压了的原因,应该在虚拟光驱下安装的,Adobe CS3 Design Premium 大概会检测此前安装包的位置。

下载了 Illustrator CS v11 版本,很担心的安装起来,发现可以这么做,不会有冲突,大概是因为低版本的原因。但是不知道下载独立版的 Illustrator CS3 是不是会有问题。

正在下载“Adobe Illustrator CS3(免序列号免激活) 简体中文版 ( 104MB )”。正想着准备明天试一下,我的 C 盘也积了很多垃圾了,失败的话就 Ghost 一下吧。不料刚传了日志就下载完毕了,是绿色版,绿化后一切正常,先前安装的 CS3 产品和现在绿化的 Illustrator CS3 都可以正常使用。


The Gnat and The Bull
from: http://www.storyarts.org/library/nutshell/stories/gnat.html

An Aesop’s Fable

A huge bull stood grazing in the field. A tiny gnat buzzed about its ear and finally landed on one of his huge horns. After a while, the little gnat said loudly, “Dear bull, pardon me if I have disturbed your peaceful afternoon with the weight of my body on your horns. I offer you one thousand apologies for I never meant to inconvenience you with my presence at all . . . I wouldn’t want you to think I didn’t care about your solitude and comfort.”

The bull replied, “Little gnat, thank you for the grandiose apology you felt such great need to share. But you think too highly of yourself. I didn’t even notice you were there!”

RSS

上一篇:

下一篇:

发表评论

电子邮件地址不会被公开。 必填项已用*标注