随笔分类 -  html

摘要:原文地址:http://www.ueffort.com/jqueryajaxfileupload-js-duo-wen-jian-shang-chuan-chuan-zhi-kua-yu/跨域这个不是插件本身的问题,我的解决方法也只适用于同一主域名在url的请求返回中添加因为请求是通过读取返回页面的文档内容,在这时候实际返回页面是会执行js脚本的,并且该脚本不会进入后续的文档加载中所以只需将修改文档域与当前页面一致就行在调用页面添加:document.domain = "xxxx.com";不修改插件本身 阅读全文
posted @ 2013-08-08 14:58 DavidHHuan 阅读(1570) 评论(0) 推荐(0) 编辑
摘要:过程不多说,直接上代码<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script><script type="text/javascript">var iframe_id_publish = 'works-publish-iframe';jQuery(function(){ jQuery('.works-publish-form').submit(function(){ var $_this 阅读全文
posted @ 2013-05-09 23:20 DavidHHuan 阅读(1774) 评论(0) 推荐(0) 编辑
摘要:当使用一些开源的分享按钮,如 jiathis,我们可以在分享的时候,加入一些图片,如以 jiathis 为例,可以通过设置参数varjiathis_config={boldNum:0,siteNum:7,showClose:false,sm:"t163,kaixin001,renren,douban,tsina,tqq,tsohu",imageUrl:"http://v2.jiathis.com/code/images/r5.gif",imageWidth:26,marginTop:150,url:"http://www.jiathis.com 阅读全文
posted @ 2012-09-20 15:10 DavidHHuan 阅读(842) 评论(0) 推荐(0) 编辑
摘要:以下代码兼容ie6+,firefox和chrome,目的是,使图层半透明,而文字不透明。<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"con 阅读全文
posted @ 2012-06-02 20:15 DavidHHuan 阅读(1705) 评论(0) 推荐(0) 编辑
摘要:In fact that, i do not remember whether it is w3c strict or wcag2.0A, in a link ( <a href="xxx"></a>), we can not use target="_blank" to open the link in a new page.here we can use onclick to pass the requirement. Code as: <ahref="http://www.cnblogs.com/davidh 阅读全文
posted @ 2011-09-22 14:31 DavidHHuan 阅读(476) 评论(0) 推荐(0) 编辑
摘要:let say we have a scene that after registered, we show a message to the web user, and then redirect the page to home page.usually, we use js to set as following:<scripttype="text/javascript">setTimeout('redirectPage',3);functionredirectPage(){window.location.href=''ht 阅读全文
posted @ 2011-09-14 20:58 DavidHHuan 阅读(428) 评论(0) 推荐(0) 编辑
摘要:the correct codes of embed flash in html is as below:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7, 阅读全文
posted @ 2010-12-14 16:04 DavidHHuan 阅读(408) 评论(0) 推荐(0) 编辑
摘要:Here I use DD_belatedPNG_0.0.8a-min.js to handle the png problem in IE6.In this js file, there is a filter:[代码]This will make the <a> and <input> unclickable.这个会导致该区域的链接(<a>标签)和按钮(&l... 阅读全文
posted @ 2010-06-18 17:56 DavidHHuan 阅读(367) 评论(0) 推荐(0) 编辑
摘要:The key point to test the google map in localhost is that we need the test key, Ok, the test key is below:[代码]So now we can call the google map via[代码]Have fun! :) 阅读全文
posted @ 2010-05-28 18:59 DavidHHuan 阅读(373) 评论(0) 推荐(1) 编辑
摘要:When testing in WCAG, the symbol of <b> will take some error, but why? How can we do if we want to bold the font? The answer: use <strong> instead.<strong> is the standard of XHTML, ... 阅读全文
posted @ 2010-05-26 11:27 DavidHHuan 阅读(339) 评论(0) 推荐(0) 编辑
摘要:When testing in W3C, we got some errors such as:代码Why?Because in the code, i do as below:[代码]But that, put a block-level element (such as "<p>" or "<table>") inside an inline element (such... 阅读全文
posted @ 2010-05-25 10:52 DavidHHuan 阅读(624) 评论(0) 推荐(0) 编辑
摘要:When adding swf in a page as code below:[代码]We got the error in W3C: http://validator.w3.org[代码]Why?Because syntax "embed" is not supported in W3C. Ok, now we try another way to resolve it.try this co... 阅读全文
posted @ 2010-05-21 14:58 DavidHHuan 阅读(363) 评论(0) 推荐(0) 编辑
摘要:There are some javascript in below of the page:[代码]When test the page in http://validator.w3.org/#validate_by_uri, we got the warning and error:[代码]Why?We can get the reason here: http://www.w3.org/TR... 阅读全文
posted @ 2010-05-20 16:11 DavidHHuan 阅读(425) 评论(0) 推荐(1) 编辑
摘要:一般常见的表单是单选,文本输入以及选择框,但也有多选的,处理多选也还有讲究的,<form method=post action="">Invest interest<br /><select name="title[]" size="6" multiple="multiple"><option value="Foreign Exchange">For... 阅读全文
posted @ 2010-04-21 11:12 DavidHHuan 阅读(532) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示