Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple mailto: link

Status
Not open for further replies.

technoknow

Technical User
Apr 19, 2002
121
US
I'm making a simple rollover button as an email link.
It's just text in the "Up" state that changes color in the "Over" state, in the "Hit" area I have a filled rectangle.
What state should you add the emil link "mailto:name@email.com"
I've tried putting it in Up, Over, and Hit but it either doesn't show the "over" state consistently or the link doesn't work at all.
Thanks,
TechNoKnow
 
Can you put something like this in your first frame?

myButton.onRollOver=function(){//myButton being your instance name
//enter your stuff here
}

Adam
 
Do you have to use action script to make an email link?
What would you enter in the function?
I've tried:
sarahButton.onRollOver=function(){
mailto:Sarah@email.com;
}
but that doesn't work.

I can make the email link work fine if I don't convert the text to a button symbol and add an over keyframe. Then the link only works if it's not in the "Over" keyframe.
Am I missing something?


 
Yea! I got it to work!
I put:
on(release) {
getURL("mailto:Sarah@email.com");
}
in the actions frame for the sarahButton, so the mouseover works fine and the link opens an email form.
Thanks for your help Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top