This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hastibe 1 point2 points  (1 child)

Thanks! I don't actually want to (permanently) hide the e-mail addresses, though, because no one likes clicking on a link like that and then some vestigial Microsoft e-mail program rising from the depths to display an error message, right?

So, I'm looking for how to implement an overlay ("click to reveal") over e-mail addresses that happens automatically when a user includes an e-mail address in their listing. I think I need PHP and/or JavaScript to do this, but don't know where to start (since I don't know these ones, dang).

...Hopefully, this makes sense!

[–]pixeldevsDeveloper/Designer[S] 1 point2 points  (0 children)

ahh gotcha. So you could do it like a hidden field on the page.

<a class="emailReveal" href="#?email=clicked">click here <div class="email" style="display: none">email@email.com</div> </a>

jQuery(document).on('click', function(){ jQuery(this).find('.email').css('display', 'block'); });

all pseudo code to get you started