Page 266 - DCAP109_GRAPHIC_TOOLS
P. 266

Unit 11: Dreamweaver




          11.4.4 Creating Null Links                                                            Notes

          Null links are undesignated links. They are needed to attach behaviors to text.


                 Example: Open a new document and type out the word “link”.
          Now, going to the Behavior Panel, click the plus sign (+) to access the drop down menu and
          you’ll notice most of the behaviors are unavailable. What if you wanted to launch a pop up
          window from the word “link”?
          You could type the javascript in by hand but that’s why we’re using Dreamweaver: to avoid
          handcoding routine html/javascript.
          To access the Behaviors, you need to first create a null link out of the text “link”.
          You do this by selecting the word (in this case “link”) and going up to the Properties Inspector,
          input the following line in the Link Field:
          javascript: void(0) OR you can type the pound sign: #

                                       Figure 11.21: Null Links
















          Source: http://www.cbtcafe.com/dreamweaver/nulllinks/nulllinks.html

                                       Figure 11.22: Null Links
















          Source: http://www.cbtcafe.com/dreamweaver/nulllinks/nulllinks.html
          Either way will work. Now, after you’ve input either code into the Link Field, go back to your
          Behaviors Palette and click the plus sign (+) and notice how many new behaviors are available.










                                           LOVELY PROFESSIONAL UNIVERSITY                                   259
   261   262   263   264   265   266   267   268   269   270   271