430 Posted Topics
Re: You can also use AJAX for that. Than the database is altered in the background, without the need to refresh the page. ![]() | |
Re: This won't work. In PHP, you can access variables outside a function only if you make them global or pass them in as arguments (the latter is probably what you want). [CODE=PHP] function greeting($occupancy, $greeting) { if($occupancy < 1) return "Nobody is home"; if($greeting == 'hello') return "Hello"; else return … | |
Re: Take a look at line 37 and 52 - 56 of the demo page source. If you already have a wrapper for the images, you can just remove 37 & 39, otherwise you can change it into a div. Line 52 can be changed into a div and you'll need … | |
Re: It does appear, to the right below #right. To place it below #main, give it a [icode]clear:both[/icode] style. | |
| |
Re: It should work if you just add the onclick attribute. | |
Re: What have you tried? Look into [icode]new Date().getDay()[/icode], [icode]document.createElement[/icode] and [icode]element.appendChild[/icode]. | |
Re: Don't want to do it. Let the user decide where he wants to go and what he wants to do. | |
Re: No professional web developer will recommend w3schools. You can read a good summary of all wrong and misleading information on w3schools on [url]http://w3fools.com/[/url]. [url]http://htmldog.com/[/url] has much better tuts for html and css. | |
Re: What would you want to do with it? Don't you want a httpd.conf / .htaccess directive for that? | |
Re: You could add a container div in the iframe with height:185px; overflow:scroll. | |
Re: There are two functions in PHP that return the difference of two strings. The faster and probably better one is levenshtein: [CODE] levenshtein('ab', 'abc'); // 1 levenshtein('abc', 'a'); // 2 levenshtein('abc', 'ac'); // 1 [/CODE] The other one is similar_text, that uses Oliver's description: [CODE] similar_text('ab', 'abc'); // 66.6667 % … | |
Re: Put lines 10&11 after line 7. | |
Re: Take a look at [url]http://stackoverflow.com/questions/649614/xml-parsing-in-javascript[/url]. | |
Re: There are several recursive glob functions out there, for example: [url]http://code.google.com/p/hm2k/source/browse/trunk/code/php/functions/rglob.php[/url] | |
Re: First of all, lenght should be length. Also, it is not a function, but a property. If it is 16, it can never be 0. !> should be < and !< should be >. So, the first function can be rewritten to: [CODE] var serial = prompt("Please Enter A Credit … | |
Re: It doesn't really make sense to support German or Swedish or any other language that (mostly) uses the Latin alphabet. It is meant to provide an easy way to input non-Latin characters, with a normal keyboard. Characters such as ß can be added using control+alt+s on most layouts, anyway. | |
Re: The problem is [ICODE]<div =id="imgsleft">[/ICODE]. It should be [ICODE]<div id="imgsleft">[/ICODE]. | |
Re: Chrome does not support local cookies. If you upload your script to a server, it works. ([url]http://www.google.com/support/forum/p/Chrome/thread?tid=23fd2349855c0f17&hl=en[/url]) | |
Re: Look into [icode]document.createElement[/icode] and [icode]elem.appendChild[/icode]. | |
Re: [CODE] $meta = $stmt->result_metadata(); while ( $field = $meta->fetch_field() ) { $parameters[] = &$row[$field->name]; } call_user_func_array(array($stmt, 'bind_result'), $parameters);[/CODE] First, it gets the metadata of your query. Then, it gets all field names, and adds a [I]reference[/I] to the value in the array $row with the key $field->name to $parameters. Normally, … | |
Re: Please post the css of the comments. | |
Re: You could use PHP or another server side scripting language to print that value to javascript: [CODE] <script type="text/javascript"> var i = <?php echo $_GET['nItems']; ?>; ... </script> [/CODE] [QUOTE]I know this is wrong[/QUOTE] I don't know what you know is wrong, but realize that more() should contain a window.location … | |
Re: This is definitely a javascript running on the site, it is called Inline Text Ads or Content / Context Links. Hiding them doesn't make sense, just remove the script generating them. If the site is hosted on a free hosting, it could be that that hosting places them, take a … | |
Re: It is impossible to know the percentage of the image that is loaded, but you can use some preloader image. | |
Re: If this code does what you want for fish #1, you could try something like: [CODE] var fishPositions = {}, horizontal = []; for(var fillPosition = 50; fillPosition < 500; fillPosition += 10) horizontal[] = fillPosition; function fishSwim(id) { document.getElementById(id).style.left = horizontal[fishPositions[id]] + "px"; fishPositions[id]++; if (fishPositions[id] == 49) fishPositions[id] … | |
Re: Use font-weight: [CODE] radgroup[r].parentNode.style.fontWeigth = radgroup[r].checked ? 'bold' : 'normal'; [/CODE] | |
Re: Could you try it without the html entities, and also, try to register a handler within you script tag, it's more readable and handy for the quotes. [CODE] <script> FB.init({ appId: '123456789', cookie: true, status: true, xfbml: true }); function shareProduct(captionvar, descriptionvar, picturevar) { FB.ui({ method: 'feed', link: 'http://www.facebook.com/rjthompsonmusic?sk=app_123456789', name: … | |
Re: Instead of disabling Control+Alt+Delete, you can just disable the Task Manager. In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System, you can add a "DisableTaskMgr" REG_DWORD with "1" as its value. Also, take a look at gpedit.msc -> User Configuration -> Administrative Templates -> System -> Ctrl+Alt+Delete -> Remove Task Manager. Of course, you need to make … |
The End.