GGuuiiddeettooCCrreeaattiinnggMMaaxxtthhoonnPPlluuggiinnssForMaxthonBrowserv1.5(andnewer)SSeepptteemmbbeerr22000066RReevviissiioonn00..2211LegalNoticeInformationinthisdocumentationissubjecttochangewithoutnoticeanddoesnotrepresentacommitmentonpartofMaxthon(Asia)Ltd.ThesoftwaredescribedinthisdocumentissubjecttotheEnd-UserLicenseAgreement(EULA)thatisincludedwiththeproduct,whichspecifiesthepermittedandprohibitedusesoftheproduct.Anyunauthorizedduplicationoruseofthisdocumentation,inwholeorinpart,inprint,orinanyotherstorageorretrievalsystemisprohibited.Nopartofthispublicationmaybereproduced,transmitted,transcribed,storedinaretrievalsystem,ortranslatedintoanylanguageinanyformbyanymeansforanypurposeotherthanthepurchaser’spersonalusewithoutthepermissionofMaxthon(Asia)Ltd.©2006Maxthon(Asia)Ltd.Allrightsreserved.Companyandbrandproductsandservicenamesaretrademarksorregisteredtrademarksoftheirrespectiveholders.Unlessotherwisenoted,allnamesofcompanies,products,streetaddresses,andpersonscontainedhereinarecompletelyfictitiousandaredesignedsolelytodocumenttheuseofMaxthon(Asia)Ltd.products.CorporateHeadquarters:FlatD,BLK1,9/FSkyTower,Tower138SungWongToiRoadToKwaWan,KLHongKongTel:+85291870526Fax:+85235427425E-mail(customerrelations):netanel@maxthon.comE-mail(technicalsupport):develop@maxthon.comVisitusat::Exampleofascriptbuttonplugin......................20AppendixB:Exampleofascriptsidebarplugin.....................24AppendixC:ExampleofaCOMtoolbarplugin.......................27AppendixD:Maxthonplugincommands................................31Index....................................................................................33Revision0.21GuidetoCreatingMaxthonPluginsPage5of331.AboutthisguideInthischapterIntendedaudience.............................................................................................5Purposeofthisguide.........................................................................................5Organizationoftheguide..................................................................................5Acronymsandabbreviations.............................................................................61.1IntendedaudienceTheGuidetoCreatingMaxthonPluginsisintendedforanyonewishingtodeveloporadaptapluginfortheMaxthontabbedInternetbrowser.Thisincludes:•OrganizationswithanexistingpluginforMicrosoft’sInternetExplorer•Organizationswithanapplicationthatwouldbenefitfromtighterintegrationwithabrowser•IndividualswhohavesomeprogrammingknowledgeandwanttoenhancetheirbrowsingexperienceItisassumedthatallreadershaveatleastabasicunderstandingofHTMLandsomepreviousexperiencewiththeMaxthonbrowser.1.2PurposeofthisguideTheintentionofthisguideistoexplainallaspectsofcreatingMaxthonplugins.AfterreadingthisguideyoushouldhaveathoroughknowledgeofthepotentialavailablefromMaxthonplugins.TheguidealsoaimstoexplainthedifferencesbetweenMaxthonpluginsandpluginsforInternetExplorer.1.3OrganizationoftheguideInformationaboutMaxthonplug