Creating a hidden click function. |
Creating a hidden click function. |
prof.waynski |
Jun 17 2016, 01:27 PM
Post
#1
|
Group: Members Posts: 2 Joined: 17-June 16 Member No.: 24,334 |
Hi Everyone
I' d like to know if there is a way to add a click function to a piece of text that is not marked (like a treasure hunt on the webpage for those who can figure it out) . The function would be to display an image on screen for 5-10 seconds. Not sure if it's possible in HTML5. Thanks This post has been edited by prof.waynski: Jun 17 2016, 01:28 PM |
Christian J |
Jun 17 2016, 01:57 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
You can style the link with CSS so it looks like normal text, but to hide the URL in the statusbar requires javascript.
You can also use a javascript click event on an element which is not a link. To display the image you need javascript. |
prof.waynski |
Jun 18 2016, 03:34 AM
Post
#3
|
Group: Members Posts: 2 Joined: 17-June 16 Member No.: 24,334 |
You can style the link with CSS so it looks like normal text, but to hide the URL in the statusbar requires javascript. You can also use a javascript click event on an element which is not a link. To display the image you need javascript. Thanks Christian I thought as much but needed to check. Haven't learned Javascript yet but now I have something to look into. Thanks Again |
Lo-Fi Version | Time is now: 26th April 2024 - 08:44 PM |