Anchor Items The anchor related tags allow you to create hyperlinked images or text that causes the program to respond to user mouse clicks. There are two anchor related tags, corresponding to HTML's <a> and </a> tags: <cw_a cmd="options" period="period-options" type="type-options"> any text or image code </cw_a> Like their HTML equivalents these tag come in pairs. You must use the closing tag if you use the opening tag. You may insert any code you like inside the tags in the same way you would if you were using <a>...</a> tags in HTML. The closing tag (</cw_a>) has no attributes. It corresponds directly to the </a> closing tag in HTML. You may use this tag to end the hyperlinked text or image. The <cw_a> tag supports three attributes as described below. Two of the attributes (period and type) are only applicable if the other one, cmd, equals "calendar". There are also four attributes that are passed through untouched. An example In this example the program will display the words 'Click Here' which, when clicked, will display the Contact List: <html> <body> <cw_a cmd="contact" template="none"> Click Here <cw_a> </body> </html> The 'template=none' attribute is needed so the program ignores the template.htm when the click occurs. Command Reference The following table documents all the attributes and options available for use with the <cw_a> tag. A final example The following example duplicates part of the menu structure. Copy this code into a template.htm to see what happens. This example is presented without further explanation. <html> <body> <table width="100%"> <tr> <td valign="top" width="15%"> <!-- displays the menus --> <cw_a type="list">List</cw_a><br> <cw_a type="grid">Grid</cw_a><br> <cw_a type="planner">Planner</cw_a><br> <cw_a type="report">Report</cw_a><br> <hr align="left" width="50%"> <cw_a period="day">Day</cw_a><br> <cw_a period="week">Week</cw_a><br> <cw_a period="month">Month</cw_a><br> <cw_a period="year">Year</cw_a><br> </td> <td valign="top"> <!-- displays the calendar --> <cw_d object="maintable"> </td> </tr> </table> </body> </html> |