For Webmasters
   Example 1.1
1. More Examples
   Example 1.2
   Example 1.3
   Example 1.4
2. Buttons
   Example 2.1
   Example 2.2
   Example 2.3
   Example 2.4
   Example 2.5
   Example 2.6
   Example 2.7
3. JavaScript Calendar
   Example 3.1
   Example 3.2
   Example 3.3
   Example 3.4
   Example 3.5
   Example 3.6
4. Another JS Calendar
   Example 4.1
   Example 4.2
   Example 4.3
   Example 4.4
5. Integration with PHP
   Example 5.1
Appendix A
Appendix B

   Show example

   zip

ru

For Webmasters

1. More Examples

In Example 1.1 if you click on the link of the name of Saint or a Reading it redirects you to Holy Trinity website. To prevent this redirection in the <head> section of HTML you can put following JavaScipt:

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
var showWin = window.open(href, windowname, 'width=600,height=500,resizable=yes,dependent=yes,scrollbars=yes');
showWin.focus();
return false;
}
//-->
</SCRIPT>

Now if you click on the link new window will pop up. See Example 1.2. You can modify size of windows by changing width and height parameters of  window.open method. Also you can modify window's view. Check window.open method at the W3Schools website.

In the same example we also disabled output of Troparion by changing code

var tt=1;

to

var tt=0;

Let's modify Example 1.2 in order to see the Lives of Saints in one paragraph. To do this we need change

var ll=1;

to

var ll=2;

See Example 1.3.

If we change

var ll=2;

to

var ll=0;

then the Lives of Saints will disappeared and we can see only today's Scripture Reading. See Example 1.4.

 Previous Chapter: For Webmasters

Next Chapter: 2. Buttons

O Most Holy Trinity, Our God, Glory to Thee!