SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Threaded View

  1. #1
    SitePoint Zealot
    Join Date
    Oct 2005
    0 Post(s)
    0 Thread(s)

    Custome HTML attribute and the DOM / Javascript

    Can I create custom HTML attributes and have DOM support in IE6+ ?

    <a class="utilityLinks" href="index.html" xmlVal="topNavLinkHome">Home</a> | <a class="utilityLinks" href="#" xmlVal="topNavLinkLogin">Login</a>

    The idea here is that I would fire a function on load that would traverse the entire HTML document doing a unique lookup everywhere it finds the xmlVal attribute and replacing the elements text value (with a foreign language). The lookup would access a separate XML document for the foreign language values.
    Last edited by danjojo; Sep 19, 2007 at 07:04. Reason: clarification
    "In the end, more is actually said, than done.."


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts