2006年04月



    摘要:AJAX越来越多的应用到网页交互上,但是用AJAX做交互也有一些问题,比如传统网页的浏览是一个一个页面切换,所以可以用浏览器的后退按钮和前进按钮切换到指定的浏览过的页面,也就是浏览器的history.但是用AJAX做交互的时候,是通过js+xmlhttp来获取其他页面信息,对于浏览用户来说,是一个隐性的UE,感觉不到浏览器地址栏的URL的变化,对浏览器来说,地址栏的URL没发变化,产生不了HISTORY。不是说在用AJAX做交互的时候,BACK按钮的问题就解决不了,对于AJAX应用很成熟的网站比如google等,这些都已经解决。有热心的老外已经提供了解决方法,粗粗看了看,原理是用了iframe,有兴趣的自己去研究吧老外管这个叫:Really Simple History framework,还有专门的AJAX history libraries    (全文共1793字)——点击此处阅读全文



代码:

<script type="text/javascript">
function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script> 页面使用:<a href=javascript:addBookmark('dodoblog','http://blog.donews.com/dodo')>
  添加到收藏</a>



试用一下下

添加到收藏







    摘要:

原文链接 http://www.sacredcowdung.com/archives/2006/03/all_things_web.html


Everything Web 2.0

此处阅读全文





    摘要:Jscript有些属性其实挺好的,可惜就是只是IE支持,比如复制和粘贴的属性 下面这段复制和粘贴的JAVASCRIPT的代码倒是可以支持IE/FireFox/mozilla/ns,,老外站点上看来的 只是在firefox下需要修改一下about:config的一个属性 a very popular article about how to copy text to clipboard out of HTML with javascript in firefox/mozilla/netscape and IE this is a javascript that i built out of several sources so that it is possible to copy text out of HTML in firefox/mozilla/netscape and in Internet Explorer large parts of that script are copied from other sources, thats why there     (全文共3737字)——点击此处阅读全文




    摘要:It uses an anchor link for the effect, because that is the only thing that Internet Explorer allows the :hover psuedo-class to work with. While my example page only has # linked to, this could easily be pointed to a full version of the respective images, or a website if you decide to use it for a design portfolio. For now, it uses photos taken by family / friends (not pros)...................演示地址;:http://hos    (全文共777字)——点击此处阅读全文