0

Changing style dynamically

asked 2006-03-19 20:31:51 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3638387

By: tskale

For the image created by the following line, a cursor changes to hand when mouse moves over the image.

<image src="/image1.jpg" style="cursor: hand" />

But the image created programmatically does not behave the same. Image appears but the cursor does not change:

Image img = new Image();
img.setSrc("/image2.jpg");
img.setStyle("cursor: hand");

I tried setting style using setSclass without any success.

Any help will be appreciated!!




delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-03-19 21:25:41 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3638441

By: nobody

Seems to work on. I found the problem.

link publish delete flag offensive edit

answered 2006-03-20 02:02:40 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3638702

By: tomyeh

It is a bug and was fixed. Try the latest ZK Nightly.

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: 2006-03-19 20:31:51 +0800

Seen: 690 times

Last updated: Mar 20 '06

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