Link to home
Start Free TrialLog in
Avatar of fmv503
fmv503

asked on

Button Code - Can HTML be Used?

Hello -

Iam getting so much spam I woule like to use the hrml that reCAPTCHA generated (Protected email addresses).  Is there a way to change the code on the button from this:

on (release ) {
      getURL("mailto:shaw@dummy.com");
}

 to this:

shaw<a href="http://mailhide.recaptcha.net/d?k=01zlhQV_HW2CMkLYcOjRutcQ==&c=fMpBetjQ876OILZJI3kIyDpHR8KNwJPtt6ncD3Ykmk4=" onclick="window.open('http://mailhide.recaptcha.net/d?k=01zlhQV_HW2CMkLYcOjRutcQ==&c=fMpBetjQ876OILZJI3kIyDpHR8KNwJPtt6ncD3Ykmk4=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@dummy.com

Many thanks,
Frieda
ASKER CERTIFIED SOLUTION
Avatar of Dushan Silva
Dushan Silva
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fmv503
fmv503

ASKER

Great link.  When publishing, per the video, I am getting this error:

**Error** Symbol=Contact MC, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler
     launch_btn.onRelease = function() {

Total ActionScript Errors: 1        Reported Errors: 1

My code (as indicated on the video) on the button is:

launch_btn.onRelease = function() {
      getURL("javescript:launch('mailto:shawnee@shawnee-cookie-jars.com')");
}

Frieda  (Trying to increase points)
Avatar of fmv503

ASKER

OopsII hada typo.   Same error though.  :-)
Avatar of fmv503

ASKER

Error corrected - I was adding AS to button instead of frame.  I'll let you  know how it goes.

Frieda
Avatar of fmv503

ASKER

This helped though I found out that the code will not work within Flash.  Many thanks!

Frieda