// jQueryの読み込み document.write(''); // GETパラメータの取得(jQuery版) // (使用方法)var value1 = jQuery.urlParam("key1"); jQuery.urlParam = function(key) { var results = new RegExp('[\?&]' + key + '=([^&#]*)').exec(window.location.href); if (results == null) return ""; return results[1] || ""; }; // GETパラメータの取得 // (使用方法)var value1 = getUrlVars()["key1"]; function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; };