링크에 마우스 올렸을 때 주소와 실제 이동 주소를 다르게? 채택완료
어떤 식으로 하는 지 알고 싶습니다.
예를 들어,
링크에 마우스 커스를 올렸을 땐... http://sir.co.kr">http://sir.co.kr 로 보이고
클릭해서 실제로 이동되는 주소는 http://sir.co.kr/qa/?wr_id=50088&page=0&posting=ok&sca=&sfl=&stx=&sst=wr_num&sod=&spt=0&page=0">http://sir.co.kr/qa/?wr_id=50088&page=0&posting=ok&sca=&sfl=&stx=&sst=wr_num&sod=&spt=0&page=0 처럼 말이죠.
포털 키워드 검색 서비스가 예전에 이런 식으로 하더라구요..
답변 2개
<a href="http://sir.co.kr">http://sir.co.kr" onclick="window.open('http://sir.co.kr/qa/?wr_id=50088&page=0&posting=ok&sca=&sfl=&stx=&sst=wr_num&sod=&spt=0&page=0">http://sir.co.kr/qa/?wr_id=50088&page=0&posting=ok&sca=&sfl=&stx=&sst=wr_num&sod=&spt=0&page=0');return false;" >이동!!</a>
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
자바스크립트로 한번 싸주면 경로가 보이지 않습니다.
<script>
function move_url(url){
document.location.href = "url";
}
</script>
<?
$url = "http://sir.co.kr/qa/?wr_id=50088&page=0&posting=ok&sca=&sfl=&stx=&sst=wr_num&sod=&spt=0&page=0" target="_blank" style="font-size: 10pt; color: rgb(0, 0, 0); font-family: gulim, helvetica; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);">http://sir.co.kr/qa/?wr_id=50088&page=0&posting=ok&sca=&sfl=&stx=&sst=wr_num&sod=&spt=0&page=0"
?>
<a href="javascript:;" onclick="move_url("<?=$url?>")">이동!!</a>
답변에 대한 댓글 1개
그리고, 위 소스 경우 마우스를 올려 놓을 경우 주소 자체가 보이지가 않네요.
주소는 해당 사이트의 기본 주소 http://sir.co.kr 가 보였으면 하거든요.
http://sir.co.kr/qa/?wr_id=50059&s_tag=%EA%B7%B8%EB%88%84%EB%B3%B4%EB%93%9C4 에
식량이 님께서 좋은 정보를 알려주셨는데, 제가 왕초보라 응용을 못하고 있네요. ^^;;
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인