Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by SmokingMan

  1. SmokingMan

    Hey Everyone

    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.
  2. "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.
  3. 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.
  4. SmokingMan


    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.
  5. SmokingMan


    I'm assuming this is a comment, if so it should be written as <!-- My Stylesheet --> You also need to add the semicolons at the end of the background-image & color properties.Try that first and see what happens.
  6. 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
  7. 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?
  8. Then would I use type="audio/wav" or type="audio/mp3" respectively depending on the type of media I wanted played? 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.
  9. A good script to use is FormMail. If the hosting service you use allows it, you can download it for free and install it yourself. Several hosting services may offer it as part of their hosting package, you'll need to check. Here's a link to FormMail for more information:http://www.formmail.com/
  10. 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.
  11. SmokingMan

    <hr> styles

    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.
  12. SmokingMan

    <hr> styles

    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.
  13. SmokingMan

    <hr> styles

    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...