JavaScript
  Home arrow JavaScript arrow Checking Browser Image Support for a Dynam...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Checking Browser Image Support for a Dynamic Text Replacement JavaScript Application
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2007-09-25

    Table of Contents:
  • Checking Browser Image Support for a Dynamic Text Replacement JavaScript Application
  • Reviewing the previous text replacement application
  • Adding image support checking
  • Completing the text replacement application: source code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th -1:00PM EST. Register Today!

    Checking Browser Image Support for a Dynamic Text Replacement JavaScript Application


    (Page 1 of 4 )

    If you're looking for a thorough and accessible approach to making text-based elements of your web site slightly more attractive to visitors, you might be interested in learning the foundations of the text replacement technique. It is a robust JavaScript-driven method that dynamically substitutes the text nodes of selected text-based web page sections with appealing images.

    Introduction

    Welcome to the final tutorial of the series that began with "Dynamic Text Replacement with JavaScript." As described in the introductory paragraph, this series provides you with a friendly guide on how to develop a text replacement application with the assistance of JavaScript. You can easily adapt this application to suit the requirements of your particular web projects.

    If you've read the two previous articles of this series, then you've learned the essentials for utilizing the text replacement approach. In those articles I demonstrated how to implement the approach to substitute the text nodes included into all the <h2> headers of a sample web page with a few simple images.

    Regardless of the simplicity of these practical examples, they did show in a nutshell the remarkable potential for using text replacements. They're especially useful when you want or need to use special font types in the heading sections of your web site, and you're looking for a way to expand beyond the ones embedded by default on many modern browsers.

    Now that you're hopefully very familiar with utilizing the text replacement approach in your own web pages, let me offer you a quick introduction to the topics that I plan to cover in this last part of the series. This will help you to visualize how this last installment links with the others.

    Since in the preceding article I already showed you how to modify the original text replacement application to make it suitable to use with any web page element, in this final chapter I'll incorporate some additional improvements to the application. Specifically, I'm going to provide it with the capacity to check whether or not the browser in which the text replacement process will take place supports images.

    Although this tiny modification may seem insignificant, it will contribute to making the whole text replacement application slightly more robust and professional. Thus, having introduced the subject of this last part of the series, it's time to see how to add image support checking to the text replacement script that you learned in the previous article.

    Are you ready to see how this will be achieved? Start reading now!

    More JavaScript Articles
    More By Alejandro Gervasio


       · In this final tutorial of the series, you’ll learn how to incorporate image support...
     

    JAVASCRIPT ARTICLES

    - Using the Style Object for Zebra Tables with...
    - Binary Searching
    - An Improved Approach to Building Zebra Tables
    - Assigning Background Colors Dynamically to Z...
    - Building Zebra Tables with CSS and JavaScript
    - JavaScript: Array Objects
    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...
    - Bulleted Menu of Links
    - Creating Click Loggers and Basic Markers wit...
    - Adding Pan Controls to Yahoo! Maps
    - Adding Zoom Controls to Yahoo! Maps
    - Working with Yahoo! Maps
    - Building Image Zooming Controls with the DOM...
    - Working with Multiple Graphics for a Zoom Ap...

    Iron Speed

    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway