-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I want to change the color of login message box which is by default blue which i want to convert it into red , how can i . please help me to modify the below code.
<?xml version="1.0" encoding="UTF-8"?> <zk xmlns="http://www.zkoss.org/2005/zul"> <?page title="ZK Store - Login"?> <style> body{ background-image:url('post-276844-12834749164609[1].jpg'); } </style> <window id="loginWin" border="normal" width="250px" title="Sign In With Your User Name" position="center" mode="overlapped"> <!-- <caption image="images[10].jpg" height="0px" width="100%"/> --> <caption> <image src="images[10].jpg" width="70px"/> </caption> <grid> <rows> <row>Name: <textbox id="username" width="200px"/> </row> <row>Password: <textbox id="password" type="password" width="200px"/> </row> </rows> </grid> <button id="confirmBtn" label="Login " onClick="loginCheck()"/> <zscript><![CDATA[ void loginCheck () { if ((username.getValue().equals("sysadmin") && password.getValue().equals("redeye"))){ Executions.sendRedirect("index.zul"); } else if ((username.getValue().equals("pasquale") && password.getValue().equals("pasquale"))) { Executions.sendRedirect("index.zul"); }else{ Executions.sendRedirect("forum.zul"); }; } ]]></zscript> </window> <!-- </window> --> </zk>
Asked: 2012-05-29 09:16:44 +0800
Seen: 90 times
Last updated: May 29 '12