I am trying an toolbar overlay example. But the toolbar doesn't appear.
 
 what I did is following:
1. create directory under mozilla chrome directory
   chrome/notetaker/content
   chrome/notetaker/locale
   chrome/notetaker/skin
 
2. add "content,install,url,resource:/chrome/notetaker/content/" into the end of "chrome/install-chrome.txt"
 
3. create "chrome/notetaker/content/contents.rdf" as following,
    <?xml version="1.0"?>
   <RDF:RDF
        xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
   
        <RDF:Seq about="urn:mozilla:package:root">
            <RDF:li resource="urn:mozilla:package:notetaker"
        </RDF:Seq>
        <RDF:Description about="urn:mozilla:package:notetaker"
            chrome:displayName="NoteTaker"
            chrome:author="Nigel McFarlane"
            chrome:name="notetaker"
        </RDF:Description>
   
        <RDF:Seq about="urn:mozilla:overlays">
            <RDF:li resource="chrome://navigator/content/navigator.xul">
        </RDF:Seq>
   
        <RDF:Seq about="chrome://navigator/content/navigator.xul">
            <RDF:li>chrome://notetaker/content/browserOverlay.xul</RDF:li>
        </RDF:Seq>
</RDF:RDF>
 
4. create "chrome/notetaker/content/browserOverlay.xul" as following,
    <?xml version="1.0"?>
    <!DOCTYPE overlay>
    <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">    
        <toolbox id="navigaotr-toolbox">
            <toolbar id="notetaker-toolbox">
                <textbox/>
                <description value="Keyword:"/>
                <toolbarbutton label="Edit"/>
            </toolbar>
      ! ;  </toolbox>
</overlay>
 
5. resave "chrome/install-chrome.txt", delete "chrome/chrome.rdf" and "chrome/overlayinfo" directory.
 
then I start the mozilla, but the toolbar doesn't appear. Could anyone be kind to tell me which step I am wrong. Appreciate any ideas.
 
banli
 
   


Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

Reply via email to