Hi,
Ig got myself a little problem here. I am all new to JavaScripting and the whole related DOM-thingy so please bare with me.
Why do not this work!?
Code:
<script type="text/javascript">
<![CDATA[
var insertelement = document.getElementById('insertemailhere')
insertelement.appendChild(document.createTextNode('E-post: '))
var ns = 'http://www.w3.org/1999/xhtml'
var emaillink = document.createElementNS(ns,'a')
emaillink.setAttributeNS (ns,'href','mailto:kontaktATLASchristianknappskog.com?subject=Kontakt%20fra%20christianknappskog.com')
emaillink.setAttributeNS(ns,'title','Ta kontakt!')
emaillink.appendChild(document.createTextNode('kontaktATLASchristianknappskog.com'))
insertelement.appendChild(emaillink)
]]>
</script>
<p id="insertemailhere"></p>
To be used in an XHTML document (application/xhtml+xml).
__________________
I do not share ad revenue.
|