430 Posted Topics
Re: Why would you want to do this? What does it even mean? [url]http://en.wikipedia.org/wiki/Strikethrough[/url] sais it can be used to emphasize words, but if you do so you're stupid (and nobody will understand it). | |
Re: Maybe it helps if you put them the other way around? | |
Re: As Danny159 said, line 7 doesn't make too much sense (it doesn't do anything, really). You could remove the else; [CODE] if($_GET['show'] != NULL) $_SESSION['show'] = $_GET['show']; elseif($_SESSION['show'] == NULL) $_SESSION['show'] = '16'; $show = $_SESSION['show']; [/CODE] | |
Re: To me it's a bit strange what DW has come up with. Anyhoo, you should start with something like this: [CODE] <div id="container"> <div id="header"> <div id="logo"> </div> <div id="menu"> menu items </div> </div> <div id="content"> <h1>Hi</hi> <p>Your text</p> </div> <div id="footer"> </div> </div> [/CODE] And then try to style … | |
Re: Why would you want to create one and not use one someone else made? To learn from it, or because you need one? ![]() | |
Re: You're putting the result in $query on line 19, which is a bit strange to me. It shouldn't break things, but it's more clear if you rename that variable to $result. | |
Re: Well, that's quite stupid code you have there, sorry to say. Is it correct that you just want 4 orange lines? If so, and if you don't want to use an image (which I would find better), try something more like this: [CODE=HTML] <div id="lines"> <div></div> <div></div> <div></div> <div></div> </div> … | |
Re: *Which :P There is [icode]<input type="file" />[/icode] and as for PHP, there's a good page on this in the PHP manual: [url]http://www.php.net/manual/en/features.file-upload.php[/url]. | |
Re: ActiveXObject is Microsoft proprietary. Google [url=http://code.google.com/chrome/extensions/faq.html#faq-dev-08]suggests[/url] [url=http://dev.w3.org/html5/webstorage/]localStorage[/url] and [url=http://dev.w3.org/html5/webdatabase/]Web SQL[/url]. The W3C recommends [url=http://www.w3.org/TR/IndexedDB/]IndexedDB[/url] rather than Web SQL (SQLite), Chrome supports it through webkitIndexedDB. Hope this helps. | |
Re: If an image contains meaning, such as text, or is placed inside a paragraph to make something clear (i.e., it doesn't contain decoration) I would think it's better to use an img tag. | |
Re: Could you post a couple of lines around that line? (Edit: oops, too late :)) | |
Re: Yes. There's also [icode]count[/icode], which returns the amount of elements in an array. | |
Re: If you give it an ID, in javascript you could do something like [CODE=Javascript] var iframe = document.getElementById('thatId'); iframe.width = '1234px'; iframe.height = '666px'; [/CODE] But I'm not sure if that's exactly what you want. | |
Re: What doesn't work exactly in what systems? | |
Re: [icode]ele[/icode] will, as the name correctly suggests, be an element, not a string. To get it's value attribute, use [icode]ele.value[/icode]. | |
Re: Yes, you have to search for the cookie you want inside all of the cookies you have. | |
Re: I don't know those HTML5 videos too well, but I believe they have an autoload attribute? You need to remove it. Or set it to false. Or something. And as for the window closing, does the video object not have a stop() or something method? If so, call it :) … ![]() | |
Re: The problem is the following: - You click on the image - The first event occurs - An alert displays - You can't click again (doubleclick), because there's an alert on your screen. As for onkeydown, it only works for certain elements (input/textarea/document). | |
Re: Perhaps try: [CODE] $html->find('#divid'); [/CODE] | |
Re: You need JS. If you're using jQuery, you could do something like this (if not, it's the same thing but it would take quite a bit more coding): [CODE] $('input:checkbox').click(function(){ $('input:checkbox:not(:checked)').attr('disabled', $('input:checkbox:checked').length >= 3 ? 'disabled' : ''); }); [/CODE] | |
Re: You could add onchange, or onclick. | |
Re: Yeah, it seems to be an international change. They changed the bar to this layout a while ago already, but it was white. Also they seem to have forgotten to change this on gmail, and the dropdown buttons ("more", and your name and settings if you're signed in) also turn … | |
Re: This sounds more like a javascript question. Anyway, there's something known as search engines and they are very suited for answering it. | |
Re: W3schools is not [i]actually[/i] a good resource, it's just that everyone uses it. [url]http://htmldog.com/[/url] has much better HTML and CSS tutorials. | |
Re: There is .hover, that takes 2 arguments - a function for mouse-enter and mouse-leave. | |
Re: PHP is a backend language, you can't show anything with "only PHP". Could you explain why you would want this? And what the goal is? ![]() | |
Re: There's an example [url=http://css-tricks.com/examples/FixedHeaderTable/example-one.php]here[/url]. | |
Re: Did you try to put the following at line 23: [CODE] document.getElementById('t').focus(); [/CODE] | |
Re: Quick fix: just add the two other hides after the show. For example: [CODE] onclick="javascript:showHide('row1_1',0);javascript:showHide('row1_2',1);javascript:showHide('row1_3',1)" [/CODE] | |
Re: As far as I understand the question, you want to build up something like this: [CODE=SQL] SELECT * FROM `posts` WHERE `color` = 'blue' OR .... [/CODE] | |
Re: As a start, you need to give them [icode]display:inline-block;[/icode] and a width (probably 150px), and the parent should have [icode]text-align:center;[/icode]. | |
Re: Try to style the boxes without the [icode]height[/icode]s. | |
Re: [url]http://stackoverflow.com/questions/646032/whats-the-best-javascript-tutorial[/url] | |
Re: I don't really understand the logic in both of the snippets, but anyway, there's a function in php that "joins" an array to a string: [icode]implode[/icode]. | |
Re: Please use code tags and don't put the (entire) question in the title. Do you mean to ask how to read XML and put it in a table? If so, do you want to use PHP or Javascript for that? | |
Re: You'll need to - loop through all the rows - do something with a counter (+= .5, or just ++, whatever you prefer) - figure if you need to paint it :) | |
Re: If you do something similar to this: [CODE] $my_something = new Something(); $my_something->db = new Database_class_thing(); [/CODE] You can than access [icode]$this->db[/icode] from within the class. I.e, it assumes you have a database class that has a function that takes an array and puts it into the database. You could … | |
Re: Well, I think it's a good idea to congratulate people on their birthday if you have it, but a calendar with all of those birthdays... doesn't seem too useful to me. | |
Re: [url]http://perishablepress.com/press/2008/04/20/how-to-block-proxy-servers-via-htaccess/[/url]? | |
Re: Are you in the correct folder? Try [icode]cd /var/www[/icode] first. | |
Re: Why did you create three threads with nothing but a bunch of code and mark them all solved? | |
Re: - Could you put your code in code tags? - You forgot a $ on line 3. - There's a MAX function in MySQL. - You could also do something like this: [icode]if($max < $total) $max = $total;[/icode]. Or change $total to the var you want the highest of. | |
Re: I think you should look for or create a container that's always around the maps thing, and give CSS stuff to #that_id .container. Or something like that. Do you have it live somewhere? | |
Re: There's a nice one there: [url]http://daringfireball.net/2010/07/improved_regex_for_matching_urls[/url] ![]() | |
Re: Even if you have two tables, you should have all data in only one of the two (so don't put something in both). | |
Re: My solution would be to put a div around both and give them float:left. | |
Re: True, PHP makes you want to rewrite your code all the time. Writing or using an Active Record thing also really helps IMO, it save you from writing get_this() and edit_this() and remove_this() and get_another_thing(), etcetera, for every database table you create. | |
Re: Perhaps you can set a select onclick handler that returns false? | |
Re: Uhm, and how did you think that was going to be a tell a friend script? The only thing it does is closing the window. |
The End.