Jump to content
xisto Community
toby

Are There Imageless, Xml Compatable Css Corners Scripts?

Recommended Posts

I am looking for a CSS Rounded Corners script that works with application/xml+html (I believe this means not document.write), no images, javascript script that works in the main three or so browsers.I've tried a lot, things like Curvey corners jump around a bit and need extra settings in the head. I havn't seen many using bullet points, none through js.

Share this post


Link to post
Share on other sites

I was looking at that topic when I made this one, they both use images.Document write writes where its called, but the xml compatable way, don't you have to append it to somewhere?

Share this post


Link to post
Share on other sites

Yes, because the XML parser cannot allow you to generate contents on the fly, you must use DOM things to do it. So something like this should be necessary:

newElement = document.createElement("img");newElement.alt = "Some alternate text";newElement.src = "urlOfYourImage.png";document.getElementById('yourdiv').appendChild(newElement);

A bit much, eh?
And by the way, the correct MIME type is application/xhtml+xml, not application/xml+html.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.