![]() |
Example sectionThe following section gives some examples of how and when you can use the tags presented in the previous chapters. The aim is to give you a rough idea about what you can do to get the most out of your web server.
Example 1The following example shows one application of the apre tag as well as the use of a macro.
This markup will display as: Powered by Roxen Idonex jobbar inom flera olika områden.. Här kommer en bild från Roxens gränssnitt. focus Clicking on the "English" link will display the page in English. As you see you also have the choice of seeing the page with our without images. Clicking on the Enable images link will in this case make the images appear.
Example 2Combining Gtext and the <accessed> tag, an example of a nifty access counter: The following markup:<gtext nocache nfont=mistral shadow=100,1 spacing=4quant=200 textscale=red,red,yellow,yellow outline=black,1><accessed lang=english type=string></gtext> will display:
Example 3In this example, just like in Example 1 the user can choose between seeing the pages in English or in Swedish, with or without images. But here the user can also choose whether he wants to have a dark or light background. There is however something else that deserves a special mention. In this example the default is to show the page with images, which is not the case in Example 1 where the user has to click on the Images link before any images are displayed. Notice also that in this example the Java script will only be shown if the client supports Java scripts.
<if not prestate=lowbg>
<define name=pretoggle>
<insert name=pretoggle the_prestate=lowbg
swedish_off="Ljus bakgrund"
english_off="Light background"
swedish_off="Slå på javascript"
swedish_off="Bilder"
english_off="Images"
<if prestate=en>
<hr noshade>
<if not prestate=noimages><pr size=large color=blue></if>
<if prestate=en> This markup will display as:
| |
Previous Chapter Next Chapter Table of Contents Index
|