On some cases, people are seeking solution for showing Affiliate or similar links hidden for not to take attention or other purposes.
Here is the simplest way to achieve this without hardcoded things by only a small java script code.
<script type="text/javascript">
function ChangeLink(ID, LinkChange)
{
document.getElementById(id).href=LinkChange;
}
</script>
<a onclick='ChangeLink("Link Name","http://www.hiddenlink.com")' id="Test1" name="Test1" href="http://www.showinglink.com">Link Name</a>
When you cross with mouse, it’s showing target as “showinglink.com” but when you click on it, due to JavaScript function “onclick” case, it will redirect you to “hiddenlink.com”
In my opinion, this case should be done by not a JavaScript action but still it will be tricky for whom requires.
Comments/Questions
Powered by Future Software UAE