﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Jcat-随笔分类-javascript</title><link>http://www.blogjava.net/Jcat/category/17580.html</link><description>真的猛士，敢于直面惨淡的人生，正视淋漓的鲜血~~~
 
 Coding Life~~~</description><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 03:45:57 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 03:45:57 GMT</pubDate><ttl>60</ttl><item><title>The ultimate webdesign usability checklist</title><link>http://www.blogjava.net/Jcat/archive/2007/01/25/95893.html</link><dc:creator>Jcat</dc:creator><author>Jcat</author><pubDate>Thu, 25 Jan 2007 04:39:00 GMT</pubDate><guid>http://www.blogjava.net/Jcat/archive/2007/01/25/95893.html</guid><wfw:comment>http://www.blogjava.net/Jcat/comments/95893.html</wfw:comment><comments>http://www.blogjava.net/Jcat/archive/2007/01/25/95893.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Jcat/comments/commentRss/95893.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Jcat/services/trackbacks/95893.html</trackback:ping><description><![CDATA[
		<div class="itemtext">
				<p>I noticed that I, and fellow
webdesigners, keep making the same usability mistakes over and over.
This checklist with 88 questions is a must read for every webdesigner
who cares about usability.</p>
				<p>
This website, <a href="http://www.notusable.com/">NotUsable.com</a>, is not designed by me. Giving me the perfect excuse why this website doesn’t pass my own usability checklist. <img src="http://stud.cmd.hro.nl/0773253/notusable/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  But I would love to hear your comments and don’t forget to let me know when you can answer the whole checklist with ‘yes’!</p>
				<p>Note that my design company is called <a href="http://www.achtentachtig.com/">Achtentachtig</a>, which means Eighty Eight in Dutch, that’s why there are 88 questions in this checklist. Just to let you know. </p>
				<p>
						<strong>Enough talking, let’s start!</strong>
				</p>
				<ol>
						<p>
								<strong>Technical</strong>
						</p>
						<li>Did you validate your (X)HTML using <a href="http://validator.w3.org/">W3C Markup Validation Service</a>?</li>
						<li>Did you validate your CSS using <a href="http://jigsaw.w3.org/css-validator/">W3C CSS Validation Service</a>?</li>
						<li>Did you check your website in at least IE, FF, Opera and <a href="http://www.browsrcamp.com/">Safari</a>?</li>
						<p>
								<strong>Images</strong>
						</p>
						<li>Did you add the ALT and TITLE attributes to all your important images?</li>
						<li>Did you add the LONGDESC attributes to all your image that need a description?</li>
						<li>Did you write <a href="http://www.webcredible.co.uk/user-friendly-resources/web-accessibility/image-alt-text.shtml">effective ALT text</a>?
</li>
						<li>Did you make the <a href="http://webxact.watchfire.com/">size of your pages</a> less then 50KB?</li>
						<li>Did you choose the <a href="http://www.sitepoint.com/article/gif-jpg-png-whats-difference">appropriate filetype</a> for your images?</li>
						<li>Did you add a description to images that support your content?</li>
						<li>Did you use plain text instead of images for important content?</li>
						<p>
								<strong>Content</strong>
						</p>
						<li>Did you use a sans-serif typeface with a decent font size for your body text?</li>
						<li>Did you adjusted the leading and tracking, if necessary, to increase readability?</li>
						<li>Did you align your body text to the left? (depends on language)</li>
						<li>Did you use EM or percentages instead of PX?</li>
						<li>Did you make sure that there are no whole sentences in uppercase?</li>
						<li>Did you use less then 78 characters, including spaces, per line?</li>
						<li>Did you make brief and precise paragraphs with explanatory titles?</li>
						<li>Did you use lists to sum things up?</li>
						<li>Did you write your conclusion first and then your explanation?</li>
						<li>Did you <a href="http://www.markboulton.co.uk/journal/comments/five_simple_steps_to_designing_with_colour/">create enough contrast</a> between the text and the background?</li>
						<li>Did you make your website also accessible for <a href="http://www.delorie.com/web/lynxview.html">text-only browsers</a>?</li>
						<li>Did you make sure that there are no ‘under construction’ pages?</li>
						<li>Did you include a print function on pages with a large amount of text?</li>
						<li>Did you include a <a href="http://alistapart.com/articles/goingtoprint/">print stylesheet</a>?</li>
						<li>Did you replace all special characters with the ISO Latin-1 codes?</li>
						<li>Did you spell check your content and did you proofread for grammar errors??</li>
						<p>
								<strong>Navigation</strong>
						</p>
						<li>Did you make sure that all your links work? <a href="http://validator.w3.org/checklink">W3C Link checker</a> does the job.</li>
						<li>Did you include a link to all your main pages on your homepage?</li>
						<li>Did you include your main navigation on every page?</li>
						<li>Did you use no more then 8 items in your main navigation?</li>
						<li>Did you distinguish the active and nonactive page in the menu?</li>
						<li>Did you use self explanatory link text instead of ‘click here’?</li>
						<li>Did you use self explanatory link text instead of business terms?</li>
						<li>Did you make a distinction between visited and non-visited links?</li>
						<li>Did you make a distinction between links and plain text?</li>
						<li>Did you add the <a href="http://www.w3.org/TR/html401/struct/global.html#adef-title">TITLE attribute</a> to all your links?</li>
						<li>Did you use breadcrumbs if you have a large amount of pages?</li>
						<li>Did you include a search option if you have a large amount of pages?</li>
						<li>Did you make your logo link to your homepage?</li>
						<li>Did you make a skip to content link at the top of your pages?</li>
						<li>Did you make a skip to menu link at the top of your pages?</li>
						<li>Did you make it possible to browse your website using SHIFT-TAB and RETURN?</li>
						<li>Did you make sure you didn’t use any javascript links?</li>
						<p>
								<strong>Structure</strong>
						</p>
						<li>Did you make a consistent page structure?</li>
						<li>Did you place your logo at the top left?</li>
						<li>Did you place an explanatory tag line next to your logo?</li>
						<li>Did you place your search box at the top right?</li>
						<li>Did you place important content <a href="http://en.wikipedia.org/wiki/Above_the_fold">above the fold/scroll</a>?</li>
						<li>Did you make your <a href="http://www.markboulton.co.uk/journal/comments/five_simple_steps_to_designing_grid_systems_part_1/">design on a grid system</a>?</li>
						<li>Did you make your design fluid using percentages?</li>
						<li>Did you make your website also viewable on low resolutions?</li>
						<li>Did you make custom titles (as in TITLE tag) for all your pages?</li>
						<p>
								<strong>Forms</strong>
						</p>
						<li>Did you make sure that users don’t return to an altered form after an error?</li>
						<li>Did you make a friendly and informative error page?</li>
						<li>Did you make a friendly ‘thank you’ page with a confirmation email?</li>
						<li>Did you add only a ’submit’ button and no ‘reset’ button?</li>
						<li>Did you tell the user what to expect after clicking the submit button?</li>
						<li>Did you split long forms up into multiply pages?</li>
						<li>Did you gave the user room to type?
</li>
						<li>Did you place an asterisk when a field is compulsatory?</li>
						<li>Did you keep the standard look of input fields that is generated by the browser?</li>
						<li>Did you create a logical order of asking information?</li>
						<li>Did you use double input fields for passwords only?</li>
						<li>Did you let the computer, not the user, handle information formatting?</li>
						<li>Did you make sure that users can fill in the entire form using the TAB key?</li>
						<li>Did you explain to the user why you ask certain information?</li>
						<li>Did you explain to the user what you are going to do with that information?</li>
						<li>Did you use <a href="http://particletree.com/features/degradable-ajax-form-validation/">realtime validation using AJAX</a>?</li>
						<li>Did you use the LABEL tag?</li>
						<li>Did you place the LABEL above the input field, instead of next to it?</li>
						<li>Did you choose the correct input type for different data?</li>
						<li>Did you make the top input field automatically active using <a href="http://www.java2s.com/Code/JavaScript/Form-Control/Focusaninputfield.htm">setfocus</a>?</li>
						<li>Did you destinguish the active field from non-active fields using <a href="http://www.htmldog.com/articles/suckerfish/focus/">input:focus?</a></li>
						<li>Did you use the <a href="http://www.w3.org/TR/html4/interact/forms.html#h-17.10">FIELDSET and LEGEND</a> entities when appropriate?</li>
						<li>Did you check if your forms also work with Javascript turned off?</li>
						<p>
								<strong>Multimedia</strong>
						</p>
						<li>Did you make sure that essential information/navigation is not made in Flash?</li>
						<li>Did you make sure that music and videoclips don’t start playing automatically?</li>
						<li>Did you make sure that music and videoclips can be turned off at any time?</li>
						<li>Did you inform the user about the size and length of your music and videoclips?</li>
						<p>
								<strong>Extra features</strong>
						</p>
						<li>Did you <a href="http://alistapart.com/articles/perfect404/">make a custom 404 page</a>?</li>
						<li>Did you make a site map?</li>
						<li>Did you <a href="http://www.petefreitag.com/item/465.cfm">make a rss feed</a>? (if you add content regularly)</li>
						<li>Did you make a high contrast version of your website?</li>
						<li>Did you make <a href="http://alistapart.com/articles/succeed">good looking URL’s</a> (like this one)?</li>
						<li>Did you make sure that there are no frames on your website?</li>
						<li>Did you make sure that there are no pop ups on your website?</li>
						<li>Did you make a contact form instead of just an email link?</li>
						<p>
								<strong>Any suggestions?</strong>
						</p>
						<li>Add number 88 by giving a comment on this post!</li>
				</ol>
				<a target="_blank" title="原文地址" href="http://stud.cmd.hro.nl/0773253/notusable/blog/the-ultimate-webdesign-usability-checklist">原文地址</a>
				<br />
				<br />
		</div>
<img src ="http://www.blogjava.net/Jcat/aggbug/95893.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Jcat/" target="_blank">Jcat</a> 2007-01-25 12:39 <a href="http://www.blogjava.net/Jcat/archive/2007/01/25/95893.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一些页面自动跳转的实现</title><link>http://www.blogjava.net/Jcat/archive/2006/11/22/82831.html</link><dc:creator>Jcat</dc:creator><author>Jcat</author><pubDate>Wed, 22 Nov 2006 09:20:00 GMT</pubDate><guid>http://www.blogjava.net/Jcat/archive/2006/11/22/82831.html</guid><wfw:comment>http://www.blogjava.net/Jcat/comments/82831.html</wfw:comment><comments>http://www.blogjava.net/Jcat/archive/2006/11/22/82831.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Jcat/comments/commentRss/82831.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Jcat/services/trackbacks/82831.html</trackback:ping><description><![CDATA[
		<div>功能：5秒后，自动跳转到同目录下的02view.html文件</div>
		<div> </div>
		<div>1）html的实现<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">head</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">meta </span><span style="COLOR: #ff0000">http-equiv</span><span style="COLOR: #0000ff">="refresh"</span><span style="COLOR: #ff0000"> content</span><span style="COLOR: #0000ff">="5;url=02view.html"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">head</span><span style="COLOR: #0000ff">&gt;</span></div><br />优点：简单<br />缺点：Struts Tiles中无法使用</div>
		<div> </div>
		<div>2）javascript的实现<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="text/javascript"</span><span style="COLOR: #0000ff">&gt;</span><span id="Codehighlighter1_53_114_Open_Text"><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br />   setTimeout(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">javascript:location.href='02view.html'</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">5000</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">); <br /></span></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">&gt;</span></div><br />优点：灵活，可以结合更多的其他功能<br />缺点：受到不同浏览器的影响</div>
		<div> </div>
		<div>3）结合了倒数的javascript实现（IE）<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">span </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="totalSecond"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">5</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">span</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><br /></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="text/javascript"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br /></span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> totalSecond.innerText;<br />setInterval(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">redirect()</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1000</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);<br /></span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> redirect(){ <br />totalSecond.innerText</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=--</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">second; <br /></span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(second</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">) location.href</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">'02view.html';<br />}<br /></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">&gt;</span></div><br />优点：更人性化<br />缺点：firefox不支持（firefox不支持span、div等的innerText属性）</div>
		<div> </div>
		<div>3'）结合了倒数的javascript实现（firefox）<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="text/javascript"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br />    </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> document.getElementById('totalSecond').textContent;<br />    setInterval(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">redirect()</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1000</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);<br />    </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> redirect()<br />    {<br />        document.getElementById('totalSecond').textContent </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">--</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">second;<br />        </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">) location.href </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> '02view.html';<br />    }<br /></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">&gt;</span></div><br /></div>
		<div>4）解决Firefox不支持innerText的问题<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">span </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="totalSecond"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">5</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">span</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><br /></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="text/javascript"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br /></span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(navigator.appName.indexOf(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Explorer</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">) </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">-</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">){<br />    document.getElementById('totalSecond').innerText </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">my text innerText</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br />} </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br />    document.getElementById('totalSecond').textContent </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">my text textContent</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br />}<br /></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">&gt;</span></div><br /></div>
		<div>5）整合3）和3'）<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">span </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="totalSecond"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">5</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">span</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /><br /></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="text/javascript"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br />    </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> document.getElementById('totalSecond').textContent;<br /><br />    </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (navigator.appName.indexOf(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Explorer</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">) </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">-</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)<br />    {<br />        second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> document.getElementById('totalSecond').innerText;<br />    } </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br />    {<br />        second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> document.getElementById('totalSecond').textContent;<br />    }<br /><br /><br />    setInterval(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">redirect()</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1000</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);<br />    </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> redirect()<br />    {<br />        </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (second </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)<br />        {<br />            location.href </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> '02view.html';<br />        } </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br />        {<br />            </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (navigator.appName.indexOf(</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Explorer</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">) </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">-</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)<br />            {<br />                document.getElementById('totalSecond').innerText </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> second</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">--</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br />            } </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br />            {<br />                document.getElementById('totalSecond').textContent </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> second</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">--</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br />            }<br />        }<br />    }<br /></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">&gt;</span></div></div>
<img src ="http://www.blogjava.net/Jcat/aggbug/82831.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Jcat/" target="_blank">Jcat</a> 2006-11-22 17:20 <a href="http://www.blogjava.net/Jcat/archive/2006/11/22/82831.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>