SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1864 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


After you??™ve created a button image, save the GIF file in the same folder as the HTML file for the new
object. To get the icon to display correctly, be sure to give the GIF file exactly the same name as the HTML
file for the object.
Putting JavaScript to Work in Custom Objects
The remaining sections of this chapter explore using JavaScript to create more complex objects.
If you??™re totally unfamiliar with JavaScript, you might want to review this section with a good
supporting resource at hand. An excellent choice is Danny Goodman??™s JavaScript Bible (published
by Wiley).
Using the objectTag() function
When Adobe built a JavaScript interpreter into Dreamweaver, a number of custom DOM functions were
included to facilitate object and behavior creation. One of these functions, objectTag(), is the key to
building advanced objects. All the standard Dreamweaver-built objects use the objectTag() function.
This function has a single purpose: It writes any specified value into the HTML document.
The objectTag() is multifunctional; it can insert code in the as well as the . Moreover,
the function handles the placement intelligently??”objectTag() knows which tags should be placed
where. Consequently, you don??™t have to make any special declarations to place code in the section.


Pages:
1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876