Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. I don't think you can control the volume, but more plugins should accept the parameter:<param name="loop" value="-1" />I'm not really sure if this is how it's supposed to be, since I rarely use background sounds in a site.One tip:Don't put sounds on a site unless the user has a way to deactivate it.
  2. Actually, you have to remove the quotes (") because they aren't needed in CSS.
  3. In XHTML all styles have to be applied to both the html and body elements:html,body {background-color: "#66ccff";}
  4. a:link is the style that's applied to a link in its normal state.a:visited is the style of the link if it's already been clicked on before.a:hover is the style of the link while the mouse is over it.a:active is the style of the link while the mouse button is held over the link.
  5. - For Internet Explorer, the <object> tag usually needs the classid attribute. Other browsers don't support them.- The object tag will represent the HTML inside it inside it if it's unable to load the object.Put these two things together and you get this: <!-- code for internet explorer --><object type="video/mpeg" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" style="width: 400px; height: 300px;" id="someVideo"> <param name="FileName" value="file.mpg" /> <!-- code for other browsers--> <object type="video/mpeg" style="width: 400px; height: 300px;"
  6. I made up this little script. It needs the innerText property in order to be cross-browser. Unfortunately, that makes it non-W3C-compliant. But until some browsers improve their compliance to web standards it will always be hard to make standard W3C compliant scripts. function searchPage(obj) { if(document.documentElement.textContent) { allText = document.body.textContent; } else { allText = document.body.innerText; } if(allText.indexOf(obj) != -1) { //Execute some code }} Search: <input type="text" id="something" /><input type="button" value="Search" onclick="sear
  7. The label tag makes a checkbox or radio button get selected when you click on "something". That something being what's inside the label tag:http://w3schools.com/tags/tag_label.asp
  8. If what you want is to check the radio button_document.getElementById('radio1').checked = "checked"If you want a radio button to be checked when you click an image you can do this:<input type="radio" id="radio1" name="something" /><label for="radio1"><img /></label><input type="radio" id="radio2" name="something" /><label for="radio2"><img /></label>
  9. No, you can't make a single word be cut in order to fit a line. That's just the way things are on the internet. But usually you won't need a word so long as to escape the container.
  10. Try putting borders around the <div> to see whether the extra space is inside or outside.div {border: 1px solid red;}
  11. Maybe instead of using the CSS float you can try displaying it as inline instead:#pp{ display: inline height: 250px; width: 375px; margin-left: 30px; padding-top: 20px; border: 1px black solid; } #pd{ display: inline height: 250px; width: 300px; margin-right: 30px; padding-top: 20px; border: 1px black solid; }** EDIT **Actually, that might not be a good solution after all... It would lose some of its block properties.
  12. Try this in the <head> of the document:<style type="text/css">img {margin-bottom: 0px;}</style>For some reason Internet Explorer puts a margin under the images.
  13. The problem is that you've put some content that does not fit inside the left column. If you space out all the words it should fit fine. If you'd rather a horizontal scrollbar appears try this:div {overflow: auto;}If you would rather it was hidden you can try this:div {overflow: hidden;}
  14. Oh, I see. I'm afraid I don't have dreamweaver.
  15. Ingolme

    List heading

    It's valid to put <h> tags inside <li> tags.But if you want all the first <li> tags of each list to have a different style you can try the CSS pseudo-class:li:first-child {font-weight: bold;}This style will be applied to every <li> that's a first element of a list.
  16. Oh, I get it:You want that image to be on the top of the menu, and if the menu extends further down than the image you want it to continue with the other background image.You can do this:<div style="background: url(second image) top left"> <div style="background: url(first image) top left repeat-x;"> Menu content </div></div>First image would be the long one, and the second image refers to the smaller one.
  17. I have no idea what "Spry" is. If I was interpreting your code I'd also tell you that Spry is not defined. Does it come with some .js file you didn't include?
  18. Something like this:This goes within the <head>: <style type="text/css">.main {width: 760px;}.left {position: absolute;left: 0px;width: 20%;}.right {position: absolute;right: 0px;width: 20%;}.mid {position: absolute;left: 21%;width: 78%;}</style> This goes withint the <body>: <div class="main">Title goeas here<div style="position: relative"><div class="left">This is a left column</div><div class="mid">This is the middle column</div><div class="right">This is a right column</div></div></div>
  19. I don't really understand your question. Are you trying to define a page layout? And what w3schools example are you referring to?
  20. I can take a while before search engines find your site. But if you remove the tags it will eventually get indexed.I got o http://www.google.com/webmasters to see the index stats of my site.
  21. Well, that's why people use references. I check up on W3Schools when I can't remember some PHP or javascript functions.Between HTML, CSS, Javascript, (PHP,ASP,CGI) and SQL you can make basically anything on the internet.
  22. I think it's best if you read this:http://w3schools.com/php/php_get.aspAnd maybe even look through the full tutorial to get a better understanding of how to use PHP.
  23. Try this:<td style="padding-left: 30px">Some text.</td>
  24. for each component of the query string put one $_GET value:url: ?a=1&b=5&s=something&another=99<?phpecho $_GET['a'];echo $_GET['b'];echo $_GET['s'];echo $_GET['another'];?>returns: 15something99
  25. You need a server side language, and you can't test that on your computer.Here's how to get things from the URL with PHP:Given the url example: .../file.php?test7=something<?php echo $_GET['test7']; ?> will return "something".<?php echo "<input type=\"text\" value=\"".$_GET['test7']."\" />"; ?> will return <input type="text" value="something" />
  • Create New...