Sign in
|
Register
|
Mobile
Home
Browse
About us
Help/FAQ
Advanced search
Home
>
Browse
>
Web Developer's Cookbook
CITATION
Nixon, Robin
.
Web Developer's Cookbook
.
US
: McGraw-Hill Osborne Media, 2012.
Add to Favorites
Email to a Friend
Download Citation
Web Developer's Cookbook
Authors:
Robin Nixon
Published:
March 2012
eISBN:
9780071794329 0071794328
|
ISBN:
9780071794312
Open eBook
Book Description
Table of Contents
Front cover
Web Developer’s Cookbook
About the Author
Other Web Development Books by Robin Nixon
Contents
Acknowledgments
Introduction
What this Book Provides
Includes CSS3 and HTML5 Features
About the Recipes
Part I: Introduction
Chapter 1: Getting Started
Downloading and Installing Web Browsers
Choosing a Program Editor
Installing a PHP Server
Older Versions of Microsoft Internet Explorer
Emulating Earlier Internet Explorer Versions
The Companion Web Site
Chapter 2: Using the Recipes
Inserting the PHP Recipes
Inserting the JavaScript Recipes
Inserting the CSS Recipes
A Quick Refresher on the DOM
How the DOM Works
Accessing the DOM from JavaScript
About Cascading Style Sheets
Importing a Style Sheet from Within HTML
Importing a Style Sheet from Another Style Sheet
Local Style Settings
About IDs and Classes
Summary
Part II: PHP Recipes
Chapter 3: Text Processing
Recipe 1: WrapText()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 2: CapsControl()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 3: FriendlyText()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 4: StripWhitespace()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 5: WordSelector()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 6: CountTail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 7: TextTruncate()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 8: SpellCheck()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 9: RemoveAccents()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 10: ShortenText()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 4: Image Handling
Recipe 11: UploadFile()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 12: ImageResize()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 13: MakeThumbnail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
Recipe 14: ImageAlter()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 15: ImageCrop()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 16: ImageEnlarge()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 17: ImageDisplay()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 18: ImageConvert()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 19: GifText()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 20: ImageWatermark()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 5: Content Management
Recipe 21: RelToAbsURL()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 22: GetLinksFromURL()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 23: CheckLinks()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 24: DirectoryList()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 25: QueryHighlight()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 26: RollingCopyright()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 27: EmbedYouTubeVideo()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 28: CreateList()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 29: HitCounter()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 30: RefererLog()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 6: Forms and User Input
Recipe 31: EvaluateExpression()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 32: ValidateCC()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 33: CreateCaptcha()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 34: CheckCaptcha()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 35: ValidateText()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 36: ValidateEmail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 37: SpamCatch()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 38: SendEmail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 39: BBCode()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 40: PoundCode()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 7: The Internet
Recipe 41: LookupLinks()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 42: GetTitleFromURL()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 43: AutoBackLinks()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 44: CreateShortURL()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 45: UseShortURL()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 46: SimpleWebProxy()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 47: PageUpdated()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 48: HTMLToRSS()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 49: RSSToHTML()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 50: HTMLToMobile()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 8: Chat and Messaging
Recipe 51: UsersOnline()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 52: PostToGuestBook()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 53: GetGuestBook()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 54: PostToChat()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 55: ViewChat()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 56: SendTweet()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 57: SendDirectTweet()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 58: GetTweets()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 59: ReplaceSmileys()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 60: ReplaceSMSTalk()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 9: MySQL, Sessions, and Cookies
Recipe 61: AddUserToDB()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 62: GetUserFromDB()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 63: VerifyUserInDB()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 64: SanitizeString() and MySQLSanitizeString()
About the Recipes
Variables, Arrays, and Functions
How They Work
How to Use Them
The Recipes
Recipe 65: CreateSession()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 66: OpenSession()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 67: CloseSession()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 68: SecureSession()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 69: ManageCookie()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 70: BlockUserByCookie()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 10: APIs, RSS, and XML
Recipe 71: CreateGoogleChart()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 72: CurlGetContents()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 73: FetchWikiPage()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 74: FetchFlickrStream()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 75: GetYahooAnswers()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 76: SearchYahoo()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 77: GetYahooStockNews()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 78: GetYahooNews()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 79: SearchGoogleBooks()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 80: ConvertCurrency()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 11: Incorporating JavaScript
Recipe 81: CreateAjaxObject()
About the Recipe
Variables, Arrays, and Functions
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 82: GetAjaxRequest()
About the Recipe
How It Works
How to Use It
The Recipe
Recipe 83: PostAjaxRequest()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 84: ProtectEmail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 85: ToggleText()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 86: StatusMessage()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 87: SlideShow()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 88: InputPrompt()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 89: WordsFromRoot()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 90: PredictWord()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 12: Diverse Solutions
Recipe 91: GetCountryFromIP()
About the Recipe
Variables, Arrays, and Functions
How it Works
How to Use It
The Recipe
Recipe 92: BypassCaptcha()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 93: GetBookFromISBN()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 94: GetAmazonSalesRank()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 95: PatternMatchWord()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 96: SuggestSpelling()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 97: AnagramFinder()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 98: CornerGif()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 99: RoundedTable()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 100:DisplayBingMap()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Part III: JavaScript Recipes
Chapter 13: The Core Recipes
Loading the Recipes
Recipe 1: O()
About the Recipe
Variables, Arrays, and Functions
How It Works
Passing Either Strings or Objects
Additional Arguments
Passing Arrays
When an Array Is Passed
Making Recursive Calls
Processing the Additional Arguments
At the Deepest Level
How to Use It
The Recipe
Recipe 2: S()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 3: Initialize()
About the Recipe
Variables, Arrays, and Functions
How It Works
Global String Variables
Determining the Current Browser
Attaching Functions to Events
How to Use It
The Recipe
Recipe 4: CaptureMouse()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 5: CaptureKeyboard()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 6: FromKeyCode()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 7: GetLastKey()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 8: PreventAction()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 9: NoPx() and Px()
About the Recipes
Variables, Arrays, and Functions
How They Work
How to Use Them
The Recipes
Recipe 10: X() and Y()
About the Recipes
Variables, Arrays, and Functions
How They Work
How to Use Them
The Recipes
Recipe 11: W() and H()
About the Recipes
Variables, Arrays, and Functions
How They Work
How to Use Them
The Recipes
Recipe 12: Html()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 13: SaveState()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 14: RestoreState()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 15: InsVars()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 16: StrRepeat()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 17: HexDec()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 18: DecHex()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 14: Location and Dimensions
Recipe 19: ResizeWidth()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 20: ResizeHeight()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 21: Resize()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 22: Position()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 23: GoTo()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 24: Locate()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 25: GetWindowWidth()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 26: GetWindowHeight()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 27: GoToEdge()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 28: CenterX()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 29: CenterY()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 30: Center()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 15: Visibility
Recipe 31: Invisible()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 32: Visible()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 33: VisibilityToggle()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 34: Opacity()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 35: Fade()
About the Recipe
Variables, Arrays, and Functions
How It Works
A Specific Case
A Standard Formula
If a Fade Is Already in Progress
If a Fade Is Not in Progress
The Remaining Assignments
Assisting the FadeToggle() Recipe
Initiating the Interrupts
The DoFade() Subfunction
If the Final Opacity Has Been Reached
The CB Argument
Changing the Opacity
How to Use It
The Difference Between Interruptible and Noninterruptible Calls
The Recipe
Recipe 36: FadeOut()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 37: FadeIn()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 38: FadeToggle()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 39: FadeBetween()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 40: Hide()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 41: Show()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
Placing the JavaScript Within HTML
The Recipe
Recipe 42: HideToggle()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 16: Movement and Animation
Recipe 43: Slide()
About the Recipe
Variables, Arrays, and Functions
How It Works
Using the Pythagorean Theorem
Determining the Movement Distance for Each Step
Setting Up the Repeating Interrupts
Performing the Slide
How to Use It
The Recipe
Recipe 44: SlideBetween()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 45: Deflate()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoDeflate() Subfunction
When the Animation Is Finished
How to Use It
The Recipe
Recipe 46: Reflate()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 47: DeflateToggle()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 48: DeflateBetween()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 49: Zoom()
About the Recipe
Variables, Arrays, and Functions
How It Works
If a Zoom Is Not Currently in Progress
If a Zoom Is in Progress
Setting Up the Variables
The DoZoom() Subfunction
When the Pad Argument Is True
If This Recipe Has Been Called by the DockBar() Recipe
When the Animation Has Completed
The ZoomPad() Subfunction
How to Use It
The Recipe
Recipe 50: ZoomDown()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 51: ZoomRestore()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 52: ZoomToggle()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 17: Chaining and Interaction
Recipe 53: Chain(), NextInChain(), and CallBack()
About the Recipes
Variables, Arrays, and Functions
How They Work
The NextInChain() Recipe
The CallBack() Recipe
The ChainThis() Recipe
How to Use Them
Using the CallBack() Function Directly
The Recipes
Recipe 54: Repeat()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 55: While()
About the Recipe
Variables, Arrays, and Functions
How It Works
How the Additional Call to While() Is Added to a Chain
The Assembled String
How to Use It
The Recipe
Recipe 56: Pause()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 57: WaitKey()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 58: Flip()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
Objects as Well as Images
The Recipe
Recipe 59: HoverSlide()
About the Recipe
Variables, Arrays, and Functions
How It Works
If the Left or Right Edge Has Been Chosen
If the Top or Bottom Edge Has Been Chosen
Setting Up the Events
The SlideIn() Subfunction
The SlideOut() Subfunction
How to Use It
The Recipe
Chapter 18: Menus and Navigation
Recipe 60: HoverSlideMenu()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 61: PopDown()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 62: PopUp()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 63: PopToggle()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 64: FoldingMenu()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoFoldingMenu() Subfunction
How to Use It
Using the ‘hover’ Action
The Recipe
Recipe 65: ContextMenu()
About the Recipe
Variables, Arrays, and Functions
How It Works
The ContextUp() Subfunction
The ContextDown() Sub-subfunction
How to Use It
The Recipe
Recipe 66: DockBar()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DockUp() and DockDown() Subfunctions
How to Use It
The Recipe
Recipe 67: RollOver()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoRoll() Subfunction
The RollCheck() Sub-subfunction
Why Not Use onmouseout Instead of RollCheck()?
How to Use It
The Recipe
Recipe 68: Breadcrumbs()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 69: BrowserWindow()
About the Recipe
Variables, Arrays, and Functions
How It Works
The BWToFront() and BWCloseWindow() Subfunctions
The BWMove Subfunction
The DoBWMove() Sub-subfunction
How to Use It
The Recipe
Chapter 19: Text Effects
Recipe 70: TextScroll()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoTextScroll Subfunction
How to Use It
The Recipe
Recipe 71: TextType()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoTextType() Subfunction
How to Use It
The Recipe
Recipe 72: MatrixToText()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoMatrixToText() Subfunction
How to Use It
The Recipe
Recipe 73: TextToMatrix()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 74: ColorFade()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoColorFade Subfunction
The ZeroToFF() Sub-subfunction
How to Use It
The Recipe
Recipe 75: FlyIn()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoFlyIn() Subfunction
How to Use It
The Recipe
Recipe 76: TextRipple()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoTextRipple() Subfunction
How to Use It
The Recipe
Chapter 20: Audio and Visual Effects
Recipe 77: Lightbox()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DismissLB() Subfunction
How to Use It
The Recipe
Recipe 78: Slideshow()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoSlideshow() Subfunction
How to Use It
The Recipe
Recipe 79: Billboard()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoBillboard() Subfunction
How to Use It
The Recipe
Recipe 80: GoogleChart()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 81: PlaySound()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 82: EmbedYouTube()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 83: PulsateOnMouseover()
About the Recipe
Variables, Arrays, and Functions
How It Works
The PulsateOn() Subfunction
The DoPulsate() Sub-subfunction
How to Use It
The Recipe
Chapter 21: Cookies, Ajax, and Security
Recipe 84: ProcessCookie()
About the Recipe
Variables, Arrays, and Functions
How It Works
Saving a Cookie
Reading a Cookie
Erasing a Cookie
How to Use It
The Recipe
Recipe 85: CreateAjaxObject()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 86: GetAjaxRequest()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 87: PostAjaxRequest()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 88: FrameBust()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 89: ProtectEmail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 22: Forms and Validation
Recipe 90: FieldPrompt()
About the Recipe
Variables, Arrays, and Functions
How It Works
The FP_Off() Subfunction
The FP_On() Subfunction
How to Use It
The Recipe
Recipe 91: ResizeTextarea()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoResizeTextarea() Subfunction
How to Use It
The Recipe
Recipe 92: ValidateEmail()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 93: ValidatePassword()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 94: CleanupString()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 95: ValidateCreditCard()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Chapter 23: Solutions to Common Problems
Recipe 96: RollingCopyright()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 97: Alert()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 98: ReplaceAlert()
About the Recipe
Variables, Arrays, and Functions
How It Works
How to Use It
The Recipe
Recipe 99: ToolTip()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoToolTip() Subfunction
The ToolTipHide() Subfunction
How to Use It
The Recipe
Recipe 100: CursorTrail()
About the Recipe
Variables, Arrays, and Functions
How It Works
The DoCurTrail() Subfunction
How to Use It
The Recipe
Recipe 101: TouchEnable()
About the Recipe
Variables, Arrays, and Functions
How It Works
The StartTE() Subfunction
The DoTE() Sub-subfunction
The StopTE() Subfunction
How to Use It
The Recipe
Part IV: CSS Classes
Chapter 24: Manipulating Objects
Recipe 1: Positioning
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 2: Floating
Classes and Properties
About the Classes
How to Use Them
Using the Hover Classes
The Classes
Recipe 3: Background Colors
Classes and Properties
About the Classes
How to Use Them
Changing Links Within the Object
The Classes
Recipe 4: Gradients
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 5: Inverse Gradients
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 6: Box Shadows
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 7: Padding
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 8: Rounded Borders
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 9: Transparency
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 10: Visibility and Display
Classes and Properties
About the Classes
How to Use Them
Using the block and inline Classes
The tablecell and valign Classes
The Classes
Recipe 11: Scroll Bars
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 12: Maximum Sizes
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 13: Location
About the Classes
How to Use Them
Moving Objects by Relative Amounts
The Classes
Recipe 14: Selective Margins
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 15: Selective Padding
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 16: Border Style
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 17: Border Width
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 18: Border Color
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 19: No Outline
Classes and Properties
About the Class
How to Use It
The Class
Chapter 25: Text and Typography
Recipe 20: Fonts
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 21: Font Styles
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 22: Text Alignment
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 23: Text Point Size
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 24: Text Colors
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 25: Text Shadows
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 26: Text Transformations
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 27: Encapsulation
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 28: Google Fonts
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 29: Drop Cap
Classes and Properties
About the Class
How to Use It
The Class
Recipe 30: Columns
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 31: Text Indent
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 32: Symbols
Classes and Properties
About the Classes
How to Use Them
The Classes
Chapter 26: Menus and Navigation
Recipe 33: Buttons
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 34: Vertical Menu
Classes and Properties
About the Class
How to Use It
Creating a Two-Level Menu
Creating a Three-Level Menu
The Class
Recipe 35: Horizontal Menu
Classes and Properties
About the Class
How to Use It
The Class
Recipe 36: Top Dock Bar
Classes and Properties
About the Classes
How to Use Them
Changing the Number of Icons and/or Icon Sizes
The Classes
Recipe 37: Bottom Dock Bar
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 38: Tooltip and Tooltip Fade
Classes and Properties
About the Classes
How to Use Them
The Classes
Chapter 27: Page Layout
Recipe 39: Reset CSS
Classes and Properties
About the Class
How to Use It
The Class
Recipe 40: Default CSS
Classes and Properties
About the Class
How to Use It
The Class
Recipe 41: Boxout
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 42: Quote
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 43: Left Sidebar
Classes and Properties
About the Class
How to Use It
The Class
Recipe 44: Right Sidebar
Classes and Properties
About the Class
How to Use It
The Class
Recipe 45: Page Break
Classes and Properties
About the Class
How to Use It
The Class
Chapter 28: Visual Effects
Recipe 46: Star Rating
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 47: Star Rating Using Images
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 48: Progress Bar
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 49: Scale Up
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 50: Scale Down
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 51: Transition All
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 52: Thumb View
Classes and Properties
About the Class
How to Use It
The Class
Recipe 53: Caption Image
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 54: Pointer
Classes and Properties
About the Class
How to Use It
The Class
Recipe 55: Rotation
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 56: Odd and Even Text Colors
Classes and Properties
About the Classes
How to Use Them
The Classes
Recipe 57: Odd and Even Background Colors
Classes and Properties
About the Classes
How to Use Them
The Classes
Chapter 29: Dynamic Objects
Recipe 58: NoJS (nojs) and OnlyJS (onlyjs)
Variables, Functions, and Properties
About the Classes
How to Use Them
About the JavaScript
The JavaScript
Recipe 59: Middle (middle)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 60: Center (center)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 61: Top (top)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 62: Bottom (bottom)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 63: Left (left)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 64: Right (right)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 65: On Demand (ondemand)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 66: Fadein (fadein[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 67: Fadeout (fadeout[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 68: Resize Textarea (resizeta[n|n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 69: Rotate (rotate[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 70: Width (w[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 71: Height (h[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 72: X (x[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 73: Y (y[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 74: Text Color (color[colorname/#nnnnnn/#nnn])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 75: Background Color (bcolor[#nnnnnn])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Chapter 30: Dynamic Text and Typography
Recipe 76: Typetext (typetext[n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 77: Digits Only (digitsonly)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 78: Text Only (textonly)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 79: No Spaces (nospaces)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 80: No Punctuation (nopunct)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 81: Minimum Whitespace (minwhitespace)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 82: Google Font (gfont[n])
Variables, Functions, and Properties
About the Class
How to Use It
About the JavaScript
The JavaScript
Recipe 83: Text Middle (textmiddle)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 84: Text Glow (textglow[#nnnnnn|#nnnnnn|n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 85: Background Glow (backglow[#nnnnnn|#nnnnnn|n])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Chapter 31: Dynamic Interaction
Recipe 86: Placeholder (placeholder[prompt])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 87: Autofocus (autofocus)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 88: Cite (cite[citation])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript that Creates the Citation List
The JavaScript
Recipe 89: Reference (ref[type|name])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 90: No Copy (nocopy)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Chapter 32: Incorporating JavaScript
Recipe 91: Embed JavaScript (embedjs)
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Recipe 92: If (if[expr])
Variables, Functions, and Properties
About the Class
How to Use It
Using the BROWSER Global Variable with this Class
The JavaScript
Recipe 93: If Not (ifnot[expr])
Variables, Functions, and Properties
About the Class
How to Use It
The JavaScript
Chapter 33: Superclasses
What Is a Superclass?
Recipe 94: Clickable (clickable)
Classes
About the Superclass
How to Use It
Recipe 95: RSS Button (rssbutton)
Classes
About the Superclass
How to Use It
Recipe 96: Border (border)
Classes
About the Superclass
How to Use It
Recipe 97: Absolute Top Left (abstopleft)
Classes
About the Superclass
How to Use It
Recipe 98: Rollover (rollover)
Classes
About the Superclasses
How to Use Them
Recipe 99: Vertical Tab (vtab)
Classes
About the Superclass
How to Use It
Recipe 100: Horizontal Tab (htab)
Classes
About the Superclass
How to Use It
Summary
Index