Entries Tagged as '代码'

只用一段代码就可以编辑任何网页

mars-iran

这是一个貌似普通的“新浪”新闻标题,是不是有什么古怪?仔细看看?

我并不是用photoshop制造了这么一个荒诞的标题,只用一段代码,就可以编辑这个新浪的网页了,当然,真正的网页是不会变的。这段代码是:

javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0

只要将这段代码粘贴到浏览器的地址栏里,按回车,就可以编辑网页上的文字了。网页上的图片也可以剪贴、缩放、移动位置。

用这段代码可以娱人娱己,但也会有人用来骗人,比如用假的截屏图来宣传自己得过什么什么大奖之类的。

Cut and paste one line of code to make any website editable

(via BlogStorm) Have you ever wanted to edit the web pages of another website? This simple line of code makes it possible.

Of course you can’t actually edit the actual web page but you can edit the page as you see it on your screen. Read more.

谷歌网页翻译按钮来了!

前段时间,偶然碰到一老外并与他闲聊,他说想看看我的博客,我说你又看不懂,他说他会翻译。我有些愕然,后来才知道他说的翻译是指的google translate的网页翻译。因为机器翻译的质量实在是不高,所以我也没想到这一层。但是可以看出来,老外(也许就他一个是这样?)如果想了解外文网页,他们会使用google translate。

作为中文版的谷歌翻译,推出了一个很好的网页翻译按钮,可以放到自己的网页上,我已经在有侧边栏顶端放了一个了,大家可以试一下。要添加这个按钮也很简单,只要放一段代码就可以了,具体请见谷歌黑板报的原文

这段代码有自动识别浏览器的功能,如果是英文浏览器,按钮上的字就显示成“select language”;如果是中文的浏览器就显示成“选择语言”,如果是意大利文……非常智能吧。这个按钮的下拉菜单中包括23种语言。

(消息来源:谷歌黑板报

Viewbook:幻灯片制作快枪手

线上的幻灯片、电子相册的制作工具已经很多了,但是我还是想说一下Viewbook,用它做这些事情感觉非常快速、敏捷。

简单的注册后,你拥有了一个Viewbook的次级域名。开始吧,首先给自己的相册或者幻灯片起个名字,然后上传图片,可以批量添加。每张图片都可以重新命名和描述。照片上传完毕后,可以个性化设置是否需要显示缩略图以及缩略图的位置,选择相册或者幻灯片的背景颜色等等。预览觉得满意后,保存就完成了。

分享是Viewbook的一大特色,你可以选择是否使用公开的链接,如果不用的话就选择私人的URL。Viewbook提供了作品的Html代码,你可以把它方便的嵌入到博客当中。它还为这个作品提供了Rss Feed,如果你觉得它需要经常改变的话,可以把feed告诉给朋友,让他们可以随时了解到更新情况。下面是我做的一个简单的相册。


Viewbook: an easy way to creat a professional looking presentation

Although there are alreay dozens of way to creat presentation or photo album online, Viewbook is still worth of talking. It allows you creat presentations at a sub-domain name.

It’s easy to use and easy to share. Just make a title and uploads pics, customized the details like backgroud color, whether or not dispaly thumnails,etc. Preview then save it, the album or presentation is done.

Viewbook provides the album’s html code, so you can embed it easily in your blog. A permalink and Rss feed url are provided too, you can tell your friend via email.

  • Partner links