home *** CD-ROM | disk | FTP | other *** search
/ Der Brockhaus: 2003 Multimedia / BMM2003PDVD.iso / movies / javascript.js < prev    next >
Encoding:
Text File  |  2001-06-27  |  5.9 KB  |  150 lines

  1. ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
  2. ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ));
  3.  
  4. var mac = navigator.appVersion.lastIndexOf("Macintosh"); // Abfrage fuer Mac mit IE
  5. if (ns4) 
  6. document.write("<link rel=stylesheet href=stylens.css type=text/css>");
  7. if (ie4) 
  8. document.write("<link rel=stylesheet href=style.css type=text/css>");
  9.  
  10. function changeScrollbarColor() {
  11. if (ie4){
  12. if (document.all) {
  13. document.body.style.scrollbarBaseColor = "#4A4A4A";
  14.    }
  15. }
  16. }
  17.  
  18. function legende(){
  19. if (ns4) 
  20. document.write("<img src=legende_ns.gif>");
  21. if (ie4) 
  22. document.write("<img src=legende.gif>");
  23. }
  24.  
  25. function fillup(){
  26. if (ns4) {
  27. document.write("<img src=platzhalter.gif height=10 width=10 vspace=0 hspace=0 border=0><br><img src=platzhalter.gif height=14 width=43 align=left vspace=0 hspace=0 border=0><table width=296 border=0 cellspacing=0 cellpadding=1>");
  28. document.write("<tr>");
  29. document.write("<td align=center colspan=2><form name=form1>");
  30. document.write("<textarea name=textfield cols=22 rows=13 wrap=VIRTUAL>");
  31. }
  32. if (ie4) {
  33. document.write("<img src=platzhalter.gif height=12 width=10 vspace=0 hspace=0 border=0><br><img src=platzhalter.gif height=14 width=40 align=left vspace=0 hspace=0 border=0><table width=297 border=0 cellspacing=0 cellpadding=1 background=bildramen.gif>");
  34. document.write("<tr>");
  35. document.write("<td align=center colspan=2 valign=middle><form name=form1>");
  36. document.write("<textarea name=textfield cols=39 rows=13 wrap=VIRTUAL>");
  37. }
  38. }
  39.  
  40. function fillup_lang(){
  41. if (ns4) {
  42. document.write("<img src=platzhalter.gif height=12 width=10 vspace=0 hspace=0 border=0><br><img src=platzhalter.gif height=14 width=44 align=left vspace=0 hspace=0 border=0><table width=296 border=0 cellspacing=0 cellpadding=1>");
  43. document.write("<tr>");
  44. document.write("<td align=center colspan=2><form name=form1>");
  45. document.write("<textarea name=textfield cols=22 rows=8 wrap=VIRTUAL>");
  46. }
  47. if (ie4) {
  48. document.write("<img src=platzhalter.gif height=12 width=10 vspace=0 hspace=0 border=0><br><img src=platzhalter.gif height=14 width=40 align=left vspace=0 hspace=0 border=0><table width=297 border=0 cellspacing=0 cellpadding=1 background=bildramen.gif>");
  49. document.write("<tr>");
  50. document.write("<td align=center colspan=2 valign=middle><form name=form1>");
  51. document.write("<textarea name=textfield cols=39 rows=8 wrap=VIRTUAL>");
  52. }
  53. }
  54.  
  55. function fillup_quer(){
  56. if (ns4) {
  57. document.write("<img src=platzhalter.gif height=14 width=10 align=left vspace=0 hspace=0 border=0><table width=296 border=0 cellspacing=0 cellpadding=1>");
  58. document.write("<tr>");
  59. document.write("<td align=center colspan=2><form name=form1>");
  60. document.write("<textarea name=textfield cols=22 rows=20 wrap=VIRTUAL>");
  61. }
  62. if (ie4) {
  63. document.write("<img src=platzhalter.gif height=14 width=13 align=left vspace=0 hspace=0 border=0><table border=0 cellspacing=0 cellpadding=1 background=bildramen.gif>");
  64. document.write("<tr>");
  65. document.write("<td align=center colspan=2 valign=middle><form name=form1>");
  66. document.write("<textarea name=textfield cols=38 rows=20 wrap=VIRTUAL>");
  67. }
  68. }
  69.  
  70.  
  71. function abstand_lang(){
  72. if (ie4) 
  73. document.write("<tr bgcolor=#FFF2BE><td colspan=2><img src=platzhalter.gif height=3 width=10 vspace=0 hspace=0 border=0></td></tr>");
  74. }
  75.  
  76. function abstand(){
  77. if (ns4) {
  78. document.write("<img src=platzhalter.gif height=14 width=10 vspace=0 hspace=0 border=0>");
  79. }
  80. if (ie4) {
  81. document.write("<img src=platzhalter.gif height=11 width=10 vspace=0 hspace=0 border=0>");
  82. }
  83. }
  84.  
  85. function abstand1(){
  86. if (ns4) {
  87. document.write("<img src=platzhalter.gif height=10 width=10 vspace=0 hspace=0 border=0>");
  88. }
  89. if (ie4) {
  90. document.write("<img src=platzhalter.gif height=12 width=10 vspace=0 hspace=0 border=0>");
  91. }
  92. }
  93.  
  94.  
  95. function changesize() {
  96. abstandlinks = (screen.availWidth - 654) / 2;
  97. abstandoben = (screen.availHeight - 595) / 2;
  98. abstandlinks1= abstandlinks /4;
  99. abstandoben1 = abstandoben /4;
  100. self.moveTo(abstandlinks,abstandoben);
  101. self.resizeTo(644,585);
  102. }
  103.  
  104. function liste_open(){
  105. var abstandL1 = (screen.availWidth - 654) / 2;
  106. var abstandT1 = (screen.availHeight - 595) / 2;
  107. popitup = window.open('liste.htm','liste','status=no,scrollbars=no,width=180,height=230,resizable=no,top='+abstandT1+',left='+abstandL1+'');
  108.  if (popitup != null) {
  109.                 if (popitup.opener == null) {
  110.                         popitup.opener = self;
  111.                         }
  112.                 popitup.location.href = "liste.htm";
  113.                   setTimeout("if (popitup) popitup.focus();",10);
  114. }
  115. }
  116.  
  117. function stadt(id){
  118. city = "1_" + id + ".htm";
  119. opener.parent.location.href=city;
  120. self.close();
  121. }
  122.  
  123. function laden(seiten) {
  124.    parent.header.location.href=seiten + "_kopf.htm";
  125.    parent.ipix.location.href=seiten + ".htm";
  126.    parent.texte.location.href=seiten + "_text.htm";
  127.  }
  128.  
  129. function MM_preloadImages() { //v3.0
  130.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  131.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  132.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  133. }
  134.  
  135. function MM_swapImgRestore() { //v3.0
  136.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  137. }
  138.  
  139. function MM_findObj(n, d) { //v4.0
  140.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  141.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  142.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  143.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  144.   if(!x && document.getElementById) x=document.getElementById(n); return x;
  145. }
  146.  
  147. function MM_swapImage() { //v3.0
  148.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  149.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  150. }