0

marquee not working in mixed html/zul page

asked 2008-07-08 14:06:23 +0800

ansancle gravatar image ansancle
327 9

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>

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-07-09 01:44:03 +0800

zanyking gravatar image zanyking
99

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.

link publish delete flag offensive edit

answered 2008-07-09 13:02:35 +0800

ansancle gravatar image ansancle
327 9

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

link publish delete flag offensive edit

answered 2014-04-15 14:08:11 +0800

valnay gravatar image valnay
13 2

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.

link publish delete flag offensive edit

answered 2014-04-16 14:13:14 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

Maybe an alternative to the native marquee element would be something like that: http://forum.zkoss.org/question/92215/smooth-silky-text-scrolling/

/Costas

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-07-08 14:06:23 +0800

Seen: 444 times

Last updated: Apr 16 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More