Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Are There Imageless, Xml Compatable Css Corners Scripts?
toby
post Feb 22 2008, 10:09 PM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 479
Joined: 29-September 06
Member No.: 16,228



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.
Go to the top of the page
 
+Quote Post
yordan
post Feb 25 2008, 04:37 PM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,969
Joined: 16-August 05
Member No.: 7,896



Have a look here : http://www.astahost.com/css-rounded-corners-t18127.html dry.gif
Go to the top of the page
 
+Quote Post
toby
post Feb 25 2008, 05:02 PM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 479
Joined: 29-September 06
Member No.: 16,228



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?
Go to the top of the page
 
+Quote Post
FirefoxRocks
post Feb 27 2008, 12:46 AM
Post #4


Super Member
Group Icon

Group: [HOSTED]
Posts: 638
Joined: 12-July 06
From: Ontario, Canada
Member No.: 14,464



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:

CODE
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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. java scripts(2)
  2. Two Cool Web-Design Scripts(1)
  3. Scripts And Html(13)
  4. Css Rounded Corners(5)


 



- Lo-Fi Version Time is now: 22nd August 2008 - 12:03 AM