ďťż

Skrypt do poprawy losowy cytat bez cudzysłowiów

       

Podstrony


telcocafe

Mam taki skrypt: <script LANGUAGE="Javascript"> <!-- quotes = new Array(6); quotes[0] = "xxxxxxxxxxxxx"; quotes[1] = "Reality is the leading cause of stress for those in touch with it."; quotes[2] = "Few things are harder to put up with than the annoyance of a good example."; quotes[3] = "The pure and simple truth is rarely pure and never simple."; quotes[4] = "There's no business like show business, but there are several businesses like accounting."; quotes[5] = "Man invented language to satisfy his deep need to complain."; //calculate a random index index = Math.floor(Math.random() * quotes.length); //display the quotation document.write("<DL>\n"); document.write("<DT><I>" + "\"" + quotes[index] + "\"</I>\n"); document.write("<DD>" + "-- " + authors[index] + "\n"); document.write("</DL>\n"); //done //--> </SCRIPT>
Losuje on cytaty, jednak są one napisane pochyłą czcionką w cudzysłowiu. Kto może to tak poprawić, aby była normalna trzcionka i cytaty wyświelały się bez cudzyślowia HELP !!!



document.write("<DT>" + quotes[index] + "\n");

<script LANGUAGE="Javascript"> <!-- quotes = new Array(6); quotes[0] = "xxxxxxxxxxxxx"; quotes[1] = "Reality is the leading cause of stress for those in touch with it."; quotes[2] = "Few things are harder to put up with than the annoyance of a good example."; quotes[3] = "The pure and simple truth is rarely pure and never simple."; quotes[4] = "There's no business like show business, but there are several businesses like accounting."; quotes[5] = "Man invented language to satisfy his deep need to complain."; //calculate a random index index = Math.floor(Math.random() * quotes.length); //display the quotation document.write("<DL>\n"); document.write("<DT>" + " " + quotes[index] + " "); document.write("<DD>" + "-- " + authors[index] + "\n"); document.write("</DL>\n"); //done //--> </SCRIPT>
edit
@up byles szybszy >.<
Użytkownik bikstopa edytował ten post 24 maj 2005, 14:26
Bardzo diękuję - wszystko działa, jak należy :)

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • nvm.keep.pl

  • Sitedesign by AltusUmbrae.