[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: <navbar> bug?



On Fri, Jul 20, 2001 at 08:59:19AM -0400, Warren Turkal wrote:
> I am reading the docs and it says that the imgstar attribute is used to 
> make your buttons change graphics on different events in the order 
> std:selected:hover.  However, when I use it in the following way IE 
> asks me to debug the script in the page and netscape does not run the 
> script in the page.
> 
> Ex code:
> #use wml::des::navbar
>  
> <navbar:define name="leftNavBar"
>   imgstar=std:sel:ovr
>   imgbase=$(ROOT)/pics/nav_buttons>
>   <navbar:header>
>     <p>
>   </navbar:header>
>   <navbar:button img="nav_button_home-*.png"
>     id="homeButton"
>     alias="leftNavButton"
>     txt="Goto to the home page"
>     url="index.html"/>
>   <navbar:epilog>
>     <br/>
>   </navbar:epilog>
>   <navbar:footer>
>   </navbar:footer>
> </navbar:define>
> 
> NOTE: If I take the imgstar out, all is good.

It means that default values are good, your image filenames are
    nav_button_home-{n,s,o}.png
and not
    nav_button_home-{std,sel,ovr}.png
So you have to specify
    imgstar=n:s:o

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com