이 스크립트를 블라인드 효과로 사용하도록 변경할 수 있습니까?블라인드 효과 켜기/끄기
// Andy Langton's show/hide/mini-accordion - updated 23/11/2009
// Latest version @ http://andylangton.co.uk/jquery-show-hide
// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {
// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText='';
var hideText='';
// initialise the visibility check
var is_visible = false;
// append show/hide links to the element directly preceding the element with a class of "toggle"
$('.toggle').prev().append(' <a href="#" class="toggleLink">'+showText+'</a>');
// hide all of the elements with a class of 'toggle'
$('.toggle').hide();
// capture clicks on the toggle links
$('a.toggleLink').click(function() {
// switch visibility
is_visible = !is_visible;
// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle').hide();$('a.toggleLink').html(showText);
$(this).parent().next('.toggle').toggle('slow');
// return false so any link destination is not followed
return false;
});
});
FYI-
Where it says:
var showText='';
var hideText='';
It was originally:
var showText='Show';
var hideText='Hide';
다른 텍스트 영역에 링크를 적용하고 있기 때문에 텍스트 표시/숨기기를 삭제했습니다. Blind 효과와 Toggle 효과가 맘에 들며 가능한 경우 적용 방법을 알아야합니다. 단추 나 정적 텍스트 대신 모든 텍스트에 대한 링크를 적용 할 수있는 기본 블라인드 효과 스크립트를 찾을 수 없습니다.
감사합니다. 당신이 도울 수 있기를 바랍니다! 트레이시