|
|
|
|
![]() ![]() |
Feb 22 2008, 10:09 PM
Post
#1
|
|
|
Premium Member 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. |
|
|
|
Feb 25 2008, 04:37 PM
Post
#2
|
|
|
Way Out Of Control - You need a life :) 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
|
|
|
|
Feb 25 2008, 05:02 PM
Post
#3
|
|
|
Premium Member 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? |
|
|
|
Feb 27 2008, 12:46 AM
Post
#4
|
|
|
Super Member 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. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 22nd August 2008 - 12:03 AM |