/    Sign up×
Community /Pin to ProfileBookmark

onMouseClick query

hey all.

i have a table which is hidden by <style=’dispay;none;’> that i want made visibible if the user clicks on certain text.

how can i code this?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@KorMay 09.2006 — Give your table an id
[code=php]
<span style="cursor:pointer" onclick="document.getElementById('mytable').style.display=''">text</span>
[/code]
Copy linkTweet thisAlerts:
@peteybauthorMay 09.2006 — did that its not working. to explain further. This text is being sent to the user via email using php mail() function. would your code work in an html email?

i have had to use backslashes where you have put double quotation marks, could this be affecting it?
Copy linkTweet thisAlerts:
@KorMay 09.2006 — did that its not working. to explain further. This text is being sent to the user via email using php mail() function. would your code work in an html email?

i have had to use backslashes where you have put double quotation marks, could this be affecting it?[/QUOTE]


eeer... javascript in an e-mail is a tricky thing... I use Thunderbird and, for security reasons, I set it to refuse javascript it attached/embeded files. Javascript might work for some, but you can not fight with the user's settings.
Copy linkTweet thisAlerts:
@peteybauthorMay 10.2006 — okey dokes.
×

Success!

Help @peteyb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...