下载
加入VIP
  • 专属下载券
  • 上传内容扩展
  • 资料优先审核
  • 免费资料无限下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 JavaScript DOM编程艺术

JavaScript DOM编程艺术

JavaScript DOM编程艺术

vveinv
2009-04-06 0人阅读 举报 0 0 0 暂无简介

简介:本文档为《JavaScript DOM编程艺术pdf》,可适用于IT/计算机领域

DOMScripting:WebDesignwithJavaScriptandtheDocumentObjectModelLearnhowto:ApplydynamicbehaviortoyourpageswithoutinsertingJavaScriptinyourmarkupWritescriptsthatdegradegracefullywhenJavaScriptisn’tavailableUsewebstandardstoensurecrossbrowsercompatibilityHarnessthepoweroftheDOMtocreateusercontrolledanimationAlsoincludesanintroductiontoAjaxYoumighthaveheardoftheDocumentObjectModelYouwillalmostcertainlyhaveheardofJavaScriptThisbookexplainsexactlywhatthesetechnologiesare,wheretheycamefrom,andwhattheycandoforyouYoudon’tneedtobeaprogrammertounderstandDOMScriptingInfact,thisbookisaimedspecificallyatwebdesignersProgrammingconceptsareillustratedwitheasytofollowtutorialstoteachyoutheropesofJavaScriptandtheDOMaspainlesslyaspossibleYouwillbuildpractical,realworldexamplesthatyoucanuseonyourwebsitesButthisbookismorethanjustacollectionofusefulscripts:italsoexaminesbestpracticesJavaScriptandtheDocumentObjectModelaretwoverypowerfultechnologiesthatgotogetherlikepeanutbutterandjelly,butiftheyaren’tusedwithforethought,theresultscouldbemessyTheexamplesgivenherewillencourageyoutothinkaboutDOMScriptinginaresponsible,usercentricwayIfyou’realreadyusingwebstandardslikeCSSandXHTML,you’llappreciatetheenhancementsthatDOMScriptingcanofferJustasCSSallowsyoutokeepyourpresentationseparatefromyourstructure,youcanuseunobtrusiveJavaScripttoadddynamicbehaviortoyourwebpageswithoutmessingwithyourmarkuporsacrificingusabilityThisbookisyourindispensableguidethisprintforreferenceonlysizecolornotaccuratespine="pagecountDOMScriptingWebDesignwithJavaScriptandtheDocumentObjectModelJeremyKeithForewordbyDaveSheaISBNSeparatebehaviorfromstructureusingunobtrusiveJavaScriptAdddynamiceffectswithprogressiveenhancementEnsurebackwardscompatibilitythroughgracefuldegradationMacPCcompatibleUS$wwwfriendsofedcomhttp:domscriptingcomDOMSCRIPTINGSHELVINGCATEGORYWEBDESIGNWEBDEVELOPMENTRELATEDTITLESKeithDOMScriptingWebDesignwithJavaScriptandtheDocumentObjectModelJeremyKeithFMfinalqxd:amPageiDOMScriptingWebDesignwithJavaScriptandtheDocumentObjectModelCopyright©byJeremyKeithAllrightsreservedNopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisherISBN(pbk):PrintedandboundintheUnitedStatesofAmericaDistributedtothebooktradeworldwidebySpringerVerlagNewYork,Inc,SpringStreet,thFloor,NewYork,NY,PhoneSPRINGER,fax,emailordersnyspringersbmcom,orvisitwwwspringeronlinecomForinformationontranslations,pleasecontactApressdirectlyatNinthStreet,Suite,Berkeley,CAPhone,fax,emailinfoapresscom,orvisitwwwapresscomTheinformationinthisbookisdistributedonan“asis”basis,withoutwarrantyAlthougheveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthisworkThesourcecodeforthisbookisfreelyavailabletoreadersatwwwfriendsofedcomintheDownloadssectionLeadEditorChrisMillsTechnicalReviewerJonStephensEditorialBoardSteveAnglin,DanAppleman,EwanBuckingham,GaryCornell,TonyDavis,JasonGilmore,JonathanHassell,ChrisMills,DominicShakeshaft,JimSumserAssociatePublisherGraceWongProjectManagerBeckieStonesCopyEditManagerNicoleLeClercCopyEditorJulieMSmithAssistantProductionDirectorKariBrooksCoponyProductionEditorLindaMarousekCompositorandArtistKatyFreerProofreaderChristyWagnerIndexerJohnCollinCoverDesignerJeremyKeithandKurtKramesManufacturingDirectorTomDebolskiFMfinalqxd:amPageiiDEDICATIONForJessica,mywordriddenwifeFMfinalqxd:amPageiiiFMfinalqxd:amPageivCONTENTSATAGLANCEForewordxvAbouttheAuthorxviiAbouttheTechnicalReviewerxviiiAbouttheForewordWriterxixAcknowledgmentsxxIntroductionxxiChapter:ABriefHistoryofJavaScriptChapter:JavaScriptSyntaxChapter:TheDocumentObjectModelChapter:AJavaScriptImageGalleryChapter:BestPracticesChapter:ImageGalleryRevisitedFMfinalqxd:amPagevChapter:CreatingMarkupontheFlyChapter:EnhancingContentChapter:CSSDOMChapter:AnimatedSlideshowChapter:PuttingItAllTogetherChapter:TheFutureofDOMScriptingReferenceIndexviFMfinalqxd:amPageviCONTENTSForewordxvAbouttheAuthorxviiAbouttheTechnicalReviewerxviiiAbouttheForewordWriterxixAcknowledgmentsxxIntroductionxxiChapter:ABriefHistoryofJavaScriptTheoriginsofJavaScriptWhatisaDocumentObjectModelThebrowserwarsTheDword:DHTMLClashofthebrowsersRaisingthestandardThinkingoutsidethebrowserTheendofthebrowserwarsAnewbeginningWhat’snextFMfinalqxd:amPageviiChapter:JavaScriptSyntaxWhatyou’llneedSyntaxStatementsCommentsVariablesDatatypesStringsNumbersBooleanvaluesArraysAssociativearraysOperationsArithmeticoperatorsConditionalstatementsComparisonoperatorsLogicaloperatorsLoopingstatementswhiledowhileforFunctionsVariablescopeObjectsNativeobjectsHostobjectsWhat’snextChapter:TheDocumentObjectModelDisfordocumentObjectsofdesireDialMformodelNodeselementnodestextnodesattributenodesCascadingStyleSheetsgetElementByIdgetElementsByTagNameTakingstockgetAttributesetAttributeWhat’snextCONTENTSviiiFMfinalqxd:amPageviiiChapter:AJavaScriptImageGalleryThemarkupTheJavaScriptADOMdiversionFinishingthefunctionApplyingtheJavaScriptEventhandlersExpandingthefunctionIntroducingchildNodesIntroducingthenodeTypepropertyAddingadescriptioninthemarkupChangingthedescriptionwithJavaScriptIntroducingthenodeValuepropertyIntroducingfirstChildandlastChildUsingnodeValuetoupdatethedescriptionWhat’snextChapter:BestPracticesPleasedon’tletmebemisunderstoodDon’tblamethemessengerTheFlashmobQuestioneverythingGracefuldegradationThejavascript:pseudoprotocolInlineeventhandlersWhocaresThelessonsofCSSProgressiveenhancementUnobtrusiveJavaScriptBackwardscompatibilityBrowsersniffingWhat’snextChapter:ImageGalleryRevisitedAquickrecapDoesitdegradegracefullyIstheJavaScriptunobtrusiveAddingtheeventhandlerCheckpointsWhat’sinanameLoopingtheloopChangingbehaviorClosingitupSharetheloadCONTENTSixFMfinalqxd:amPageixAssumingtoomuchFinetuningKeyboardaccessBewareofonkeypressSharinghookswithCSSDOMCoreandHTMLDOMWhat’snextChapter:CreatingMarkupontheFlydocumentwriteinnerHTMLProsandconsDOMmethodscreateElementappendChildcreateTextNodeAmorecomplexcombinationRevisitingtheimagegalleryinsertBeforeWritingtheinsertAfterfunctionUsingtheinsertAfterfunctionThefinishedimagegallerySummaryWhat’snextChapter:EnhancingContentWhatnottodoMakingtheinvisiblevisibleThecontentHTMLorXHTMLThemarkupTheCSSTheJavaScriptDisplayingabbreviationsWritingthedisplayAbbreviationsfunctionCreatingthemarkupAbrowserbombDisplayingcitationsWritingthedisplayCitationsfunctionDisplayingaccesskeysThemarkup

用户评价(4)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/49

VIP

意见
反馈

免费
邮箱