Jump to content

SmokingMan

Members
  • Posts

    188
  • Joined

  • Last visited

Posts posted by SmokingMan

  1. I found the problem. My wife (God bless her) installed "My Web Search" which has a thing called PopSwatter. Once I turned it off, it displayed the content after I told IE that it was okay to run the script. It only affects IE, not FF. Which is good since I use FF 99% of the time anyway....give me strength :)

  2. The script I wrote prompts a user for their name and then displays it with a message on the page, very simple. It works fine in FF, but in IE, I get the "blocked content" warning along the top of the window. When I tell it to go ahead and run the blocked script, the prompt is not displayed. Is there a way to work around this security feature in IE? All this is is a simple "window.prompt".

  3. While all of this jockeying for JavaScript versions was happening, Netscape,Microsoft, and other concerned parties met to establish a core language standard.The standards body is a Switzerland-based organization called the EuropeanComputer Manufacturer’s Association, or ECMA (commonly pronounced ECK-ma).In mid-1997, the first formal language specification was agreed on and published( ECMA-262). Due to licensing issues with the JavaScript name, the body created anew name for the language: ECMAScript.With only minor and esoteric differences, this first version of ECMAScript isessentially the same as JavaScript 1.1 found in Navigator 3. Both Navigator 4 andInternet Explorer 4 support the ECMAScript standard. Moreover, as happens sooften when commerce meets standards bodies, both browsers have gone beyondthe ECMAScript standard. Fortunately, the common denominator of this extendedcore language is broad, lessening authoring headaches on this front.
    This is excerpted from The JavaScript Bible v3. Hope this helps.
  4. Welcome Lacey!If you want to learn, just stick around and ask questions. I'm not in high school anymore (a very distant memory), but even at my advanced age I'm teaching myself JavaScript and building on my knowledge of HTML & CSS. Don't be afraid to ask questions, no matter how stupid you think they may be. You'll never learn if you don't ask.

  5. "I can see clearly now the rain is gone" Sorry, couldn't help it :) I think I understand now:var x = 2;x += 8;which means x now = 10. It takes the previous value of "x" and adds the new value to the current value of "x"...right?If not, I guess I'll need more coffee to finish waking up.

  6. I'm learning JS on my own and have run acroos an example that isn't explained clearly enough for me. A variable is being initialized with a long string of data that will be used to write an entire new document. The example shows it written like this:

    var newContent = "lots of data & HTML tags"newContent += "lots more data & HTML tags"newContent += "yada yada yada"

    Is the "+=" used to continue the variable initialization on a separate line? This may very well be covered later in the book, but it's bugging me now and I would like to know just to understand it better. :)

  7. Is your CSS saved as a .css file? With the link you have, you need to have your stylesheet saved as a .css file. It looks as if it's saved as a web page. Try using a plain text editor such as Notepad and save this as "mystyle.css" file in the same directory as "index.htm". Try this:

    /* My Stylesheet /*body {background-image: pictures/blackmarble3.gif;font-family: verdana,helvetica,arial,sans-serif;color: #FFFFCC;link: #33CCFF VLINK: #FF6666;margin: 0em 2em 0em 2em;}h1,h2,h3, h4,{text-align: center;font-family: Georgia,"Times New Roman",Times,serif;}

    All of the HTML tags don't belong in a style sheet, just the styles you are defining. Then you save it as a .css file for the page to be able to access it if you are accessing it as an external style sheet.

  8. <!My Stylesheet>
    I'm assuming this is a comment, if so it should be written as <!-- My Stylesheet -->
    {background-image: pictures/blackmarble3.giffont-family: verdana, helvetica, arial, sans-serif;color: #FFFFCClink: #33CCFF VLINK: #FF6666;margin: 0em 2em 0em 2em;}
    You also need to add the semicolons at the end of the background-image & color properties.Try that first and see what happens.
  9. I could run the slideshow images and soundtrack through my video editor and create a .wmv file that will play in WMP. I only wanted to bring this page up to sandards and let the slideshow play in the page as it already does. If this <object> tag is going to launch a media player seperate from the slideshow, then I either leave the page as is, or redo the show and create the .wmv file. Any suggestions?Here's the URL of the page:http://neverforget.ftwin.com/forgotten/forgotten.html

  10. I ran into a problem with this. When I went to play the slideshow, it launches Windows Media Player when the page loads. It used to play the music without the media player. I need this music to play in the background while the slideshow plays. And I need it to end when it plays through one time. The slideshow is timed to end at the same time the music ends. Here's the code at this point:

    <object data="america2.mid" type="audio/midi" height="0" width="0"></object>

    Any suggestions?

  11. The type attribute is optional but some browsers need it as far as I know.
    Then would I use type="audio/wav" or type="audio/mp3" respectively depending on the type of media I wanted played?
    The embed tag has never been part of any HTML specification by the way.
    I know, but when I first started to learn how to code in HTML, I just wanted it to work. Standards, who needed standards? :) I'm now converting everthing to XHTML 1.0 Strict. This particular page was written nearly three years ago before I cared. I'm not in the habit of having background music, so I only used the <embed> tag this one time for slideshow background music.
  12. I have a page that uses the <embed> tag to play a music file for a slideshow. In trying to convert the page to XHTML 1.0 Strict, I see that the <embed> tag has been deprecated and that I should be using the <object> tag. I've tried looking at all of the references I can find, but I'm having some trouble understanding what attributes to use when referencing the file I want played. Do I use ClassID? Here's the code the way it's currently written:

    <embed src="america2.mid" width="0" height="0" autostart="true" loop="false">

    How would I use the <object> tag to point to "america2.midi" and only play it once? For some reason I'm a bit thick headed on this one and am having trouble understanding exactly how the <object> tag works.

  13. I normally don't have the time, but I'm at home recovering from surgery. I'm using the time for this and teaching myself javascript. It keeps me busy, otherwise I would be going stir crazy.

  14. Thanks for your help. I'm working on converting my pages to XHTML Strict in order to not only write better structured code with XHTML, but to continue to teach myself how to use CSS better than I am up to this point. I really appreciate the link to blooberry.com. It's a wealth of information. It's a great additional resource to compliment the W3C tutorials and references. At this point web design is just a hobby, but I would like to be more knowledgable than I currently am. I want to know how to code my pages, not how to use a WYSIWYG editor.

  15. If all presentation attributes of <hr> have been deprecated, and can't be used in XHTML 1.0 Strict, what property values can you use to define the color, width, size, and centering of <hr> in CSS? I looked but could not find anything in the CSS reference as far as what properties are available for the <hr> tag.

×
×
  • Create New...