/** * 足跡ページ用関数群 * * Copyright (c) 2005 RedCruise Corporation. All rights reserved. */ function getCloseButton(el_name) { return '
[閉じる]
'; } function previewSwitchSeal(event, from, to, from_image, to_image) { var y = document.all ? document.body.scrollTop : self.pageYOffset; y += 200; $('switch').style.top = y + 'px'; $('switch').style.display = 'block'; $('switch').innerHTML = getCloseButton('switch') + '


' + '
'; } function previewSwitchSeal_photo(event, from, to, from_image, to_image) { var y = document.all ? document.body.scrollTop : self.pageYOffset; y += 200; $('switch').style.top = y + 'px'; $('switch').style.display = 'block'; $('switch').innerHTML = '
' + getCloseButton('switch') + '


' + '' + '
'; } function closePopup(el_name) { $(el_name).style.display = 'none'; } function setSwitchSeal(from, to) { var myAjax = new Ajax.Request('/loglog/_setSwitch.php', {method: 'post', postBody: 'from=' + from + '&to=' + to, onComplete: finish}); } function finish(originalRequest) { $('switch').innerHTML = getCloseButton('switch') + originalRequest.responseText; } function getMoreAshiato(url) { var myAjax = new Ajax.Request('/loglog/_getMoreAshiato.php', {method: 'get', parameters: 'url=' + url, onComplete: showMoreAshiato}); } function showMoreAshiato(originalRequest) { $('moreashiato').style.display = 'block'; $('moreashiato').innerHTML = getCloseButton('moreashiato') + originalRequest.responseText; }