Soeren Sprogoe wrote:
I've made a macro called "Custom HTML", which takes "Multiple Textlines" as a parameter. The XSLT macro itself takes the parameter and outputs it without output-escaping.
This allows you to insert custom HTML or javascript in a document inside the WYSIWYG editor without it messing around with your code.
Simple, but effective. Also usefull for when you want to embed a YouTube video.
/SoerenS
This sounds coll! But right now i have no idea how to make this?
I found another way for my Javascript. It is not so nice, but it´s working!
Code:
<A href="javascript:nospam('name')">Mail</A>
And i made an Function for the Javascript.
Code:
function nospam(mail)
{
var domain = "synthax";
var country = ".de";
emailE = (mail + '@' + domain + country);
window.location.href = "mailto:" + emailE;
}
So i call the Script over the function, and at the End of the function the window.location.href with mailto opens the E-Mail Window!
Not so beatiful but it´s working. :D
I Love umbraco