JavaScript 文字列操作 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(文字列検索(表示コンテンツ内検索) find)
(文字列検索(表示コンテンツ内検索) find)
553行: 553行:
 
<yjavascript>
 
<yjavascript>
 
document.write("サンプルスクリプトはIEでは動作しません。" , "</BR>", "</BR>");
 
document.write("サンプルスクリプトはIEでは動作しません。" , "</BR>", "</BR>");
 +
 
var getBrowser = function(){
 
var getBrowser = function(){
 
     var ua = window.navigator.userAgent.toLowerCase();
 
     var ua = window.navigator.userAgent.toLowerCase();
560行: 561行:
 
     if (ua.indexOf("msie") != -1){
 
     if (ua.indexOf("msie") != -1){
 
         if (ver.indexOf("msie 6.") != -1){
 
         if (ver.indexOf("msie 6.") != -1){
            name = 'ie6';
+
            name = 'ie6';
 
         }else if (ver.indexOf("msie 7.") != -1){
 
         }else if (ver.indexOf("msie 7.") != -1){
 
             name = 'ie7';
 
             name = 'ie7';
585行: 586行:
 
     return name;
 
     return name;
 
};
 
};
 +
 
//bFindResult = find("麻薬");
 
//bFindResult = find("麻薬");
 
//document.write("検索結果 = ", nData1, "</BR>");
 
//document.write("検索結果 = ", nData1, "</BR>");
 +
 
</yjavascript>
 
</yjavascript>
  

2016年7月22日 (金) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス