링크에 마우스 올렸을 때 주소와 실제 이동 주소를 다르게?
본문
어떤 식으로 하는 지 알고 싶습니다.
예를 들어,
링크에 마우스 커스를 올렸을 땐... 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 처럼 말이죠.
포털 키워드 검색 서비스가 예전에 이런 식으로 하더라구요..
답변 2
<a href="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');return false;" >이동!!</a>
자바스크립트로 한번 싸주면 경로가 보이지 않습니다.
<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"
?>
<a href="javascript:;" onclick="move_url("<?=$url?>")">이동!!</a>
답변을 작성하시기 전에 로그인 해주세요.