Jump to content

Synook

Members
  • Posts

    7,416
  • Joined

  • Last visited

Everything posted by Synook

  1. Are you thinking of the hover effect? You can do that by using the CSS :hover pseudo-class to change the style when someone mouses over the element. Oh, I see what you mean. Don't know what you'd call it, but you can achieve it by changing the CSS properties when the page is scrolled beyond a certain point (e.g. using window.pageYOffset). If you want the smooth animation it's probably easiest to use something like jQuery.
  2. Which ASP language are you using?
  3. Some code or a link may be useful...
  4. Generally, you should use floats to get the general layout you desire (floating allows block elements like paragraphs and tables to go side-by-side) then use widths, margins and padding to align things precisely.
  5. Don't worry, minor spelling errors don't put us off; anyway, with a little more punctuation (e.g. "Certification: Advise") it would be perfect . However, 99.97% of the people on this board have no association with the main W3Schools website and thus have little idea what the organisation considers a proctor. You are probably better off emailing them at .
  6. You need to use a programming language on the server to interact with a database and construct HTML dynamically based on the retrieved data, as well as hving forms that submit to programs or scripts on the server that can then input that data into the database. You may want to read up on PHP and MySQL.
  7. Duplicate thread: http://w3schools.inv...howtopic=40534.
  8. Ah. It would ... be best if you stopped using position:absolute first. Using position:absolute is not a good idea.
  9. Synook

    Not Exists

    It's a correlated subquery so the complexity is similar, if that is what you are wondering.
  10. By the way, lots of hosts don't give you CREATE DATABASE permissions, which might also be a problem.
  11. It depends on what the rest of your code looks like — do you have a link?
  12. Use a fixed width and give the element you want to center auto left- and right-margins: .element_to_center {width:960px;margin:0px auto;}
  13. HTML? Well, HTML helps you make websites, which, if you are good, you can do in return for payment.
  14. If you really want to use jQuery then you can use the $.css() method to mutate CSS properties (check the documentation). You still need to remove the subscript though.
  15. $IDoptionKind is not what you think it is. mysql_query() returns a resource, which you can then use to extract the data you want (by using mysql_fetch_array() or similar).
  16. You can escape them by prefixing them with the backslash character: echo "<img src=\"example\">";
  17. Check justsomeguy's post for that — you basically can just use file_put_contents() like you already are. You can write HTML tags to the document just as you write normal text — it makes no difference. E.g. file_put_contents("mytxt.html", "<b>{$_POST['fname']}</b><br><p>{$_POST['age']}</p><br>");
  18. Synook

    Xml Namespace(S)

    Using the prefix notation is also more error-prone, as boen_robot demonstrates .
  19. Synook

    Htaccess

    http://w3schools.invisionzone.com/index.php?showtopic=40462
  20. The point of a dynamic data source like a database is that you don't need the new HTML file. Rather, you just have one HTML (PHP) file with the markup you so desire, and then the information is pulled from the database. E.g., mytxt.php: <!-- rest of HTML --><?php$person = $_GET['person']; // get the person you want the page generated for$data = get_data_from_database($person); // using the functions in the tutorialecho "<img src=\"{$data['photo_path']}\"><br><b>{$data['name']}</b><br><p>{$data['description']}</p>";?><!-- rest of HTML --> Then when you want the page for "Synook", you could just request mytxt.php?person=Synook, and similarly for everyone else. Furthermore, this can be generalised to just load everyone's information at once. By going down your "new file and then include everything", you are severely overcomplicating and restricting things. By using a database you can solve both problems at once, and you don't need to create new files all the time. Do you really think any real-world application uses the scheme you are thinking of?
  21. You shouldn't name your PHP files with weird names just to obscure their location — as is often said "security through obscurity is no security at all". If you don't want to allow clients direct access to a file over HTTP just put it outside the document root — it will still be visible to PHP. Note that it is not necessary to secure your PHP scripts in this way to prevent their source from being viewed, since the PHP code will be interpreted anyway. P.S.: checking your file names against a whitelist before calling include() with them is a good practice, though.
  22. There is no way you can save arbitrary information directly to a client's hard drive, even with Javascript (or with whatever technology or technique you can think of, besides hacking [in the bad sense]). You can use Javascript's new localStorage API to store simple key-value data locally, or use a server-side language to generate a downloadable file that the client can then download. As mentioned, HTML by itself can't do anything at all.
  23. Basically, when the person submits the data from the form, you can have a PHP script insert that information into a table in a database. Then, on the separate HTML page (or anywhere), you can query the database again to retrieve that information and display it dynamically. This way you don't have to have loads and loads of static HTML files lying around. Have a look at the W3Schools tutorial: http://w3schools.com/php/php_mysql_intro.asp. Try getting it to work without images first (just the name and message).
  24. Synook

    Starting Over

    I thought boen_robot was talking about compiling about OS X (as opposed to switching to Ubuntu). But anyway, manual compilation is so... fun! (And potentially frustrating .)
  25. I think you meant a Javascript-based HTML WYSIWYG editor (i.e., it edits HTML, using Javascript). TinyMCE is a popular one.
×
×
  • Create New...