I have a page for member's where log in is essential. On this page members get links for lectures conducted. Lectures links get added regularly. And Links to recording are fetched on this page from database and last 30 recording links are available (through Limit $max). code is as follow -
Here, when user move cursor on "Play Recording" he can see recording link in left bottom corner of browser.
How can I hide this Link getting displayed in left bottom corner on mouseover ? Can i Show only Word "Recording" Instead of link displayed ?
This function convert all links to hiding hover links :
You just have to do the same as it was suggested with the button, but using the anchor you wanted. This is, use the onclick event instead of setting href attribute. And additionally you could add a noop js operation to href.
See this link: http://asp-arka.blogspot.com.uy/2014/08/hide-url-on-mouse-hover-of-hyper-link.html
You can use buttons instead of
<a>
for this purpose:example for your case
Here is a sort of hack to achieve this function
two efficient ways to go about this
But as @Dr_J_Manish has already stated this doesn't work but will instead direct him to a nonsensical webpage address at '
<?=$data['recording_link']?>
' (Not a website address... DUH.)The second approach absolutely will work for @DR_J_Manish 's purpose: to activate a PHP function on a link click w/out the annoying overlay that appears when hovering a link.
To achieve this we will need to use a major workaround... This workaround could be considered a 'HACK':
1.
Make a new element and give it the ID 'Play-Recording':
2.
Make another new element which is exactly the same as @DR_J_Manish 's code above except for the class and other styling attributes.
Make sure that this element is at the VERY BOTTOM of the Body tag or else there could be interference.
3.
Now make this element invisible and always off the screen...
Code so far should look like:
4.
Now for the fun part... Javascript... This part is pretty simple... add this code to the bottom of your page just after the
<a href="">I'm hidden</a>
tag we just made5.
So your final code snippet should look like:
<body>
<!--Other Code-->
<!--Some More Code-->
</body>
Now if you really want to be efficient then you could research how to do
PHP
commands injavascript
... but I know thats not the easiest...You could also transfer the code inside the
script
tag to a .js file and then link it like so --><script src="path-to-my-js-file.js"></script>
.Here is a snippet to demonstrate what type of thing i'm going for...
You can't override the browser. Just like you can't edit or remove what's shown in the address bar or bind a custom function to the back or forward buttons.