Loading ...
Sorry, an error occurred while loading the content.

Re: [OLmws] Need Help with Function

Expand Messages
  • Gerhard Nossek
    Dear Fote, thank you very much for fast and perfect Help !! Now it works like i wish it, and i am happy ;) Best regards from Cologne and a good Time for you
    Message 1 of 3 , Sep 6, 2013
    • 0 Attachment
      Dear Fote,

      thank you very much for fast and perfect Help !!
      Now it works like i wish it, and i am happy ;)

      Best regards from Cologne
      and a good Time for you

      Gerhard



      From: Foteos Macrides <fote@...>
      To: overlibmws@yahoogroups.com
      Sent: Friday, September 6, 2013 1:14 AM
      Subject: Re: [OLmws] Need Help with Function

      


      Gerhard,
       
      Your test code has bad HTML such as two body tags, but the main problem is that you are not using the Cascade Style Sheet commands properly in your overlib call.  See Section 5 of the Command Reference for their usage:
      http://www.macridesweb.com/oltest/commandRef.html#cascading-style-sheets
       
      Some of your text[x] strings in your function aufploppen() got corrupted during email transmission and I haven't dealt with that, but here is test code which hopefully will be an adequate guide for doing what you intend.  Let us know if you should need more help.
       
      Fote
       
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <title>overLIB - FUNCTION command in overlibmws</title>
      <script type="text/javascript" src="overlibmws.js"></script>
      <script type="text/javascript" src="overlibmws_function.js"></script>
       
      <script type="text/javascript">
      function aufploppen() {
      var text = new Array();
      text[0] = "Kein Busen ist so flach wie das Niveau dieser Party!";
      text[1] = "Ich würd zu gern die Welt verändern, doch Gott rückt den Quellcode net raus.";
      text[2] = "Wer die Wahrheit sagt, braucht ein schnelles Pferd.";
      text[3] = "Wer in die falsche Richtung läuft, braucht sich nicht zu beeilen.";
      text[4] = "Erfahrung kann man machen - nicht kaufen";
      text[5] = "Niveau ist keine Creme!"; // usw.
      var x = Math.round(Math.random()*(text.length-1));
      return text[x];
      }
      </script>
       
      <style type="text/css">
      .olcg {background-color:#AA00AA; text-align:center;}
      .olcap {font-family:'Times New Roman',Verdana;font-size:12px;font-weight:bold;color:#ffffff;}
      .oltxt {font-family:'Times New Roman',Verdana;font-size:16px;color:#aa00aa;}
      .text12 {font-family:Verdana,Arial,sans-serif; font-size:12px;}
      </style>
      </head>
       
      <body text="#330033" bgcolor="#ddeeff">
      <table width="75%" cellpadding="5" align="center">
      <tr>
      <td align="left" valign="middle" class="text12">
      This link has an example of the
      <a
      href="javascript:void(0);"
      onmouseover="return overlib(FUNCTION,aufploppen(),
      CAPTION,'Tip des Tages',CGCLASS,'olcg',
      CAPTIONFONTCLASS,'olcap',TEXTPADDING,4,TEXTFONTCLASS,'oltxt',
      WRAP,BASE,2,OFFSETX,-5,OFFSETY,20,AUTOSTATUSCAP);"
      onmouseout="nd();">FUNCTION</A> command.&nbsp;
      </td>
      </tr>
      </body>
      </html>
      ----- Original Message -----
      Sent: Thursday, September 05, 2013 9:59 AM
      Subject: [OLmws] Need Help with Function

      Hello All,
       
      i have testes the Function-Command with your Example ( TodayIs) an it works well.
      Now i wish to call my own Funktion, but somtthing is wrong.
      The Function ist started, but the Text is not in the Box, only somewhere on the scren.
       
      Would you be so kind and help me to find a way to get the Text in the Box?
       
      Best Regards, Gerhard
       
       
       
      And this is, what i testet:
       
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <title>overLIB - FUNCTION command in overlibmws</title>
      <script type="text/javascript" src="overlibmws.js"></script>
      <script type="text/javascript" src="overlibmws_function.js"></script>
      <SCRIPT type=text/JavaScript>
      var ol_textfont = "Arial";
      var ol_fgcolor = "#FFFB9F";
      var ol_textsize = "2";
      Var ol_function = "aufploppen";
      </SCRIPT>?
      <script type="text/javascript">
      function aufploppen() {
      var text = new Array();
      text[0] = "Kein Busen ist so flach wie das Niveau dieser Party!";
      text[1] = "Ich würd zu gern die Welt verändern, doch Gott rückt den Quellcode net raus.";
      text[2] = "Wer die Wahrheit sagt, braucht ein schnelles Pferd.";
      text[3] = "Wer in die falsche Richtung läuft, braucht sich nicht zu beeilen.";
      text[4] = "Erfahrung kann man machen - nicht kaufen";
      text[5] = "Niveau ist keine Creme!"; // usw.
      var x = Math.round(Math.random()*(text.length-1));
      document.getElementById("tooltip").innerHTML = text[x];
      document.getElementById("tooltip").style.display="block";
      }
      </script>
      ?
      ?
      </head>
      <body>
      <div id="tooltip" style="display: none;"></div>
      <style type="text/css">
      </style>
      </head>
      <body text="#330033" bgcolor="#ddeeff">
      <table width="75%" cellpadding="5" align="center">
      <tr>
      <td align="left" valign="middle" class="text12">
      This link has an example of the
      <a
      href="javascript:void(0);"
      onmouseover="return overlib(FUNCTION,aufploppen(),
      CAPTION,'Tip des Tages',CGCLASS,'olcg',
      CAPTIONFONTCLASS,'olcap',TEXTPADDING,4,TEXTFONTCLASS,'oltxt',
      WRAP,BASE,2,OFFSETX,-5,OFFSETY,20,AUTOSTATUSCAP);"
      onmouseout="nd();">FUNCTION</A> command.&nbsp;
      </td>
      </tr>
      </body>
      </html>




    Your message has been successfully submitted and would be delivered to recipients shortly.