<a target="_blank" href="http://127.0.0.2/forum/content/?table=game&contents=8#rp_nav_77">http://127.0.0.2/forum/content/?table=game&contents=8#rp_nav_77</a> <div><br></div> <div>에서 #rp_nav_77을 가져올려면</div> <div><br></div> <div>location.hash하면</div> <div><br></div> <div>#rp_nav_77이 나오는데요 여기서 #을 빼고 가져올수있을까요?</div> <div><br></div> <div><br></div> <div>하고싶은게 저아이디의 스타일을 바꾸고싶어서요</div> <div><br></div> <div><div>if(location.hash){</div> <div> var rp_id = location.hash;</div> <div> var rp_nav = document.getElementById(rp_id);</div> <div> rp_nav.style.border = '2px solid red';</div> <div>}else{</div> <div> alert('not null')</div> <div>}</div></div> <div><br></div> <div>이렇게하니간 location.hash의 값이 #rp_nav_77이라 아이디를 못찾네용.. 방법이있을까요?</div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.