-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am trying to add a scrolling banner to one of my pages using the html marquee tag.
The following code does not produce an error but does not work either, all help appreciated :
<window title="mix HTML demo" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:zk="http://www.zkoss.org/2005/zk"> <h:marquee scrolldelay="175"> <label id="foo" value="This text should scroll, but doesn't"/> </h:marquee> </window>
I think "http://www.w3.org/1999/xhtml" will directed to ZK's zhtml tag set but not the native w3.org xhtml tag set.
And marquee is not a valid element in both these two sets, it's an IE specific tag.
But if you really want to use marquee in your application and can accept browser incompatible issues, try to use native name space like this:
<window title="mix HTML demo" xmlns:n="http://www.zkoss.org/2005/zk/native" > <n:marquee scrolldelay="175"> <label id="foo" value="This text should scroll, but doesn't"/> </n:marquee> </window>
You don't have to declare xmlns:zk="http://www.zkoss.org/2005/zk", because in ZUL, it is already the default component set.
And be aware, you can't change anything declared by native, because ZK just throw it to browser and get no idea of what you written.
Using the native set definitely works in IE, but still does not work in FF. I know the Marquee tag works in firefox but when I try it in ZK I still get nothing.
If I understand you correctly, basically ZK should throw this command directly out to FF - which I know can handle it, so Im confused as to why it won't work in FF. I have been testing it inside of the Live Demo : http://www.zkoss.org/zkdemo/userguide/
Thanks again
Andy
Hi,
I'm looking for a way to display a smooth scrolling marquee in my ZUL page. So I first tried to use the xhtml marquee tag using the native namespace but, as most of you should already know, the scrolling is a bit jagged.
I've found many ways to improve marquee's scrolling in html pages, using Javascript and jQuery. But, so far, I haven't found any solutions to doing so in a ZUL page. If anyone has any kind of solution I would be glad to read it.
Maybe an alternative to the native marquee element would be something like that: http://forum.zkoss.org/question/92215/smooth-silky-text-scrolling/
/Costas
Asked: 2008-07-08 14:06:23 +0800
Seen: 444 times
Last updated: Apr 16 '14