/* ================================================================ * Copyright (c) 2008 MCPRO.info, ScriptPermisson[at]mcpro.info このスクリプトを利用する際には1.お知らせください、2.この文面を残してください。 Only if you notify your use, permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ================================================================ */ /************** 入力ボックスのクリア input box****************/ // --------------------未使用 // ソース // onfocus="ReadyToInput('TextBox_ErrorCodeNumber','0x800ccc00'); function ReadyToInput(idName,DefaultTextValue){ if( document.getElementById([idName]).value == [DefaultTextValue] ){ document.getElementById([idName]).value = ''; } return false; } /************** JumpToTheCode ****************/ // -----  JumpToTheCode --------------- アンカー名がダブルので、pathnameを使う function JumpToTheCode() { var yourErrorCode = document.getElementById('TextBox_ErrorCodeNumber').value; var myURL = window.location.pathname; var myURLwithTheBookmark = myURL + "#" + yourErrorCode; //指定したブックマークへ移動 window.location.href = myURLwithTheBookmark; //該当の背景をイエロに変更 document.getElementById(yourErrorCode).style.backgroundColor = "yellow"; } // -----  resetTheCode --------------- アンカー名がダブルので、pathnameを使う function resetTheCode() { var myURL = window.location.pathname; var myBookMark = "#errorCodeSearch"; //検索ワード値をリセット document.getElementById('TextBox_ErrorCodeNumber').value="0x800ccc00"; //URLリセット移動 window.location.href = myURL + myBookMark; } /* ================================================================ * * ================================================================ */