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

I dont get it!!

Expand Messages
  • loosecannons_99
    Hi there i m working through Mastering Javascript - and i m gutted due to the fact that i m only on page 38 and hit this issue. This part is dealing with
    Message 1 of 240 , Apr 3, 2001
      Hi there<br>i'm working through Mastering
      Javascript - and i'm gutted due to the fact that i'm only on
      page 38 and hit this issue. This part is dealing with
      telling non-javscript enabled browsers to ignore the
      code. So i'm at work using Netscape 4.0 and its showing
      javascript fine but when i use the HTML comments tags to
      hide the script from non-enabled browsers it does not
      show up on netscape 4.0 which is javascript enabled -
      here is my code, can anybody tell me what i am
      expecting to be a really ovbious flaw by
      myself<br>-<html><br><head><br><title>Javascript</title><br></head><br><body><br><script language="Javascript"><br><!- Begin hiding
      Javascript<br>document.write("Hello World!")<br>// End hiding Javascript
      -><br></script><br></body><br></html><br><br><br>thanks in advance for any help<br>Andy
    • hoore500
      In my opinion this is the code to put HTML code on your site for your visitors owning a website. I was looking for the method to put banner code on my site.
      Message 240 of 240 , Sep 26, 2003
        In my opinion this is the code to put HTML code on your site for your
        visitors owning a website. I was looking for the method to put
        banner code on my site. Thank you very much for helping me. (At the
        very end your image doesn't appear, well in fact you need it in your
        account).

        Snowball.


        --- In addictedtojavascript2@yahoogroups.com, quartermars wrote:
        > Hi... made some mods to your code..should work
        > now...Take a peak...
        > QM<br><br><HTML><br><HEAD><br><TITLE>Kelsey's
        Dinner
        > Menu</TITLE><br><STYLE><br>BODY {background-image:url
        (Tan.jpg)}<br>H3
        > {color:blue}<br>DT {font-weight:bold; color:green}<br></STYLE>
        > <br><script LANGUAGE="JavaScript"><br><!--- Hide from
        > non-JavaScript browsers<br>function DishName(Day) {<br>// Just a
        > few quick things I noticed on the script, first,
        > match your function parenthesis.<br>// Second also not
        > to be forgotten, no need to put a return, may give a
        > too<br>// much recursion error.<br><br>var DName = new
        > Array();<br>DName[0]="Chicken Burrito Amigo";<br>DName[1]="Chicken
        > Tajine";<br>DName[2]="Pizza Bella";<br>DName[3]="Salmon
        > Filet";<br>DName[4]="Greek-style Shrimp";<br>DName[5]="All you can
        eat
        > fish";<br>DName[6]="Prime Rib";<br><br>return
        > document.write(DName[Day]);<br>}<br>function DishDesc(Day) {<br>var
        DDesc = new
        > Array();<br>DDesc[0]="Chicken with mushrooms, onions, and Monterey
        Jack in
        > flour tortilla.9.95";<br>DDesc[1]="Chicken baked with
        > garlic, olives, capers, and prunes.
        > 8.95";<br>DDesc[2]="Large pizza with pesto, goat cheese, onions, and
        > mozzrella.8.95";<br>DDesc[3]="Grilled salmon with spicy curry sauce
        and baked
        > potato.9.95";<br>DDesc[4]="Shrimp, feta cheese, and tomatoes
        simmered in basil and
        > garlic. 9.95";<br>DDesc[5]="Deep-fried cod with baked
        > potato and roll. 9.95";<br>DDesc[6]="12-oz cut with
        > baked potato, rolls, and dinner salad.
        > 12.95";<br>return document.write(DDesc[Day]);<br>}<br>//Stop hiding
        > ---
        ><br></script><br></HEAD><br><br><br><BODY><br>&l
        t;CENTER><IMG SRC="Dinner.jpg"><br><H5><SPAN
        > STYLE="font-size:x-large; color:green"><br>Dinner
        > Menu</SPAN><BR><br>Served 4:00 p.m. - 10:00
        >
        p.m.</H5><HR></CENTER><br><DL><br><H3>To
        day's
        > Special</H3><br><br><br><DT><br><SCRIPT
        LANGUAGE="JavaScript"><br><!--- Start
        > hiding from non-JavaScript browser<br>//Insert the
        > titles of the nightly specials below<br><br>var
        > Today=new Date();<br>var
        > WeekDay=eval(Today.getDay());<br>var DishTxt=DishName
        (WeekDay);<br><br>//Stop hiding
        > --><br></SCRIPT><br><br><br><DD><br><SCRIPT
        LANGUAGE="JavaScript"><br><!--- Start
        > hiding from non-JavaScript browser<br>//Insert the
        > descriptions of the nightly specials below<br><br>var
        > Today=new Date();<br>var
        > WeekDay=eval(Today.getDay());<br>var DescTxt=DishDesc
        (WeekDay);<br><br>//Stop hiding
        > --><br></SCRIPT><br><br><br><DT><HR>Cajun
        Meatloaf<br><DD>Lean beef served with
        > Kelsey's Southwestern mashed potatoes.
        > 8.95<br><DT>Chicken Marsala<br><DD>Plump chicken breasts
        > sauteed with tomatoes, mushrooms, & artichoke
        > hearts<br>with a splash of Marsala wine. 8.95<br><DT>Pecan
        > Crusted Whitefish<br><DD>Quickly seared fish &
        > fresh mushrooms served with pineapple chutney.
        > 10.95<br><DT>Thai Stir Fry<br><DD>Fresh crisp vegetables
        > quickly sauteed, tossed with Kelsey's spicy<br>peanut
        > sauce, served over rice.
        > 8.95<br><DT>Jambalaya<br><DD>Plump shrimp, chicken, &
        spicy sausage slowly simmered
        > with tomatoes and<br>rice. 9.95<br><DT>Wild Rice
        > Stuffed Squash<br><DD>Winter squash stuffed with
        > fresh harvest vegetables & pecan rice, served<br>with
        > pineapple chutney & melted Monterey Jack.
        > 8.95<br><DT>Cuban Beans & Rice<br><DD>Black turtle beans
        > simmered with carrots, tomatoes, & green
        > peppers,<br>served over rice with spicy salsa, guacamole, & flour
        > tortillas.
        > 7.95<br></DL><br></BODY><br><br></HTML>
      Your message has been successfully submitted and would be delivered to recipients shortly.