Changes

Jump to navigation Jump to search
1 byte added ,  16:37, 28 March 2013
m
help translation
Line 58: Line 58:  
=== User Agent ===
 
=== User Agent ===
   −
To detect if the user agent is Nintendo 3DS Browser :
+
探测Nintendo 3DS浏览器的User Agent的代码:
    
  <script type="text/javascript">
 
  <script type="text/javascript">
     if (navigator.userAgent.indexOf('Nintendo 3DS') == -1) { //If the UserAgent is not "Nintendo 3DS"
+
     if (navigator.userAgent.indexOf('Nintendo 3DS') == -1) { //如果UserAgent不是"Nintendo 3DS"
         location.replace('http://www.3dbrew.org'); //Redirect to an other page
+
         location.replace('http://www.3dbrew.org'); //跳转到另一个页面
 
     }
 
     }
 
  </script>
 
  </script>
   −
* You can check <em>navigator.platform=="Nintendo 3DS"</em> as well.
+
* 你也可以用 <em>navigator.platform=="Nintendo 3DS"</em> 来判断。
    
=== Scrolling ===
 
=== Scrolling ===
174

edits

Navigation menu