The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Creating a hidden click function.
prof.waynski
post 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) ninja.gif .

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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
prof.waynski
post Jun 18 2016, 03:34 AM
Post #3





Group: Members
Posts: 2
Joined: 17-June 16
Member No.: 24,334



QUOTE(Christian J @ Jun 17 2016, 08:57 PM) *

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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 08:44 PM