I can guarantee that you're more likely to get some help if you actually explain what the problem is, what error messages you get, what your intended behaviour is and what the actual behaviour is. People help here for fun, it's not a job. Don't expect others to do the legwork and go looking for your bug. Explain it and maybe someone can even help you without needing to see the code.
=]
User Profile
Collapse
-
Ahem! There's no standard CSS for colouring scrollbars. That's specific to Internet explorer alone (thankfully).
Creating a customised scrollbar certainly isn't a cakewalk, it's something you'd need to work on and have a good understanding of HTML, CSS and Javascript, to be able to pull it off. If you want it done well, the scroll bar itself needs to represent the current amount of data shown, relative to the entire page size. It's...Leave a comment:
-
You will need to use some Javascript to limit the number of character that can be entered in the text area. Also, anything you input into a textarea will be plaintext, whilst it's in the textarea. If you want to apply formatting, it sounds like you're looking for a Rich Text Editor. A couple of popular apps include TinyMCE and FCKeditor....Leave a comment:
-
Sigh... if you want help, you really should HELP US to help you!
A snippet of code, or even a better explanation would go a long way in helping us to help you.Leave a comment:
-
Just a final tip... When working with arrays, print_r and <pre> are your friends.
Code:echo "<pre>".print_r($array, 1)."</pre>";
Leave a comment:
-
You will need GD to use the Image functions. Perhaps you have the module and simply need to edit your php.ini to enable it. Have a look in your config file....Leave a comment:
-
I believe, instead of changing the name by incrementing a counter each time, you could simply make the name `uploaded[]` and it will be an array. You would not need to change the name at all and instead, could simply pull the entire array.
So, for example <input type="file" name="images[]" /> and $_FILES[images] would be an array of multiple files.
I'm pretty certain it works that way.Leave a comment:
-
Perhaps, rather than providing complete code, it would make more sense if you read up the documentation to understand exactly how such code functions. PHP is documented extremely well and it's easy to search and for questions such as this, it should be your first stop, before asking others.
The docs:
http://php.net/
List of functions for images:
http://php.net/manual/en/ref.image.php
You...Leave a comment:
-
CSS is not HTML. The browser will not truncate multiple spaces into a single space... or at least, firefox does not (whether the CSS is inline in the head of the document, or in an external file). Even if the browser truncated whitespace in CSS, which it doesn't... it would still only truncate to a single space and I'm saying that a single space is the cause of the issue. ;)
If his quote was indeed accurate, then that is the problem....Leave a comment:
-
http://support.microso ft.com/default.aspx?sc id=kb;en-us;177378
This is a known issue and unfortunately, there's no 'nice' fix for IE6. The most common way to get around this issue, is to use a hack and dynamically create and place an iframe over the form control when the menu/element should be overlapping the control. The iframe should have a z-index higher than the form/controls but lower than the overlapping element (the drop down...Leave a comment:
-
If your quoted code is accurate, the problem lies in the space between url and the parenthesis containing the url.
You have:
Code:body { background-image: url ('foo.jpg'); }
Code:body { background-image: url('foo.jpg'); }
Leave a comment:
-
Use swfobject http://blog.deconcept. com/swfobject/
This will also help you avoid having to deal with the horrid mish-mash of object and embed that many articles recommend. You will also get around the IE "feature bug" where you are required to click on flash content to activate it before you can interact with it.
All it requires is the javascript being inluded in the head of your html document and a few lines...Leave a comment:
-
Regardless of the techniques you may use, you won't be able to prevent said actions. Anyone determined enough, will _easily_ circumvent any preventative measures you put in place.
If you don't want content / information to be copied, don't make it publically available on the Internet. Clients aren't the smartest people in the world. As the web developer, it's your responsibility to inform them of how the Internet works.
...Leave a comment:
-
Uhhh, that's a longwinded way of doing it though.
It would be much simpler to use a regular expression.
Code:$expression = "/(\w+\s+){15}/"; $words = "this is a sentence containing a good deal more than fifteen different words but only the first 15 words should be matched!"; preg_match($expression, $words, $matches);
Leave a comment:
-
As far as I was aware, languages usually take mathematical precedence in such calculations, doing multiplications , divisions, etc, then addition and subtraction.
You can force precedence with the use of brackets though.Leave a comment:
-
Uhh, you're going to have to elaborate on what you mean.
PHP files are just text files that can be viewed in any text editor. Some editors will have syntax highlighting, making it easier to read the code. I don't really know any editors for windows (perhaps something called editplus?)...Leave a comment:
-
Manners cost nothing, you know. A 'please' or 'thankyou' here or there really wouldn't go amiss.
You're pretty much asking for the entire code. Perhaps you should do some reading a learn a little bit more before coming here and asking people for information like we're some interactive guide book. There's a lot of information out there, especially on Javascript. quirksmode, one of the links given to you, contains a lot of good information...Leave a comment:
-
Why are you using Javascript for this function? It is not necessary. You can do this with html alone and it will not break if a user decides to visit your page in a browser with no javascript, or doesn't have javascript disabled.
In html:
[html]
<a href="#first">l ink to first</a>
<a name="first"></a>
[/html]...Leave a comment:
-
On a project I'm currently working on, I needed to record a users last access time when they left the website, either by logging out, closing the browser, or visiting another website. You want to use the onbeforeunload event. I had this run a javascript function to make a synchronous (ajax) call to a PHP script which did the work. Using the onbeforeunload event will do what you want.
My code, if it helps:
Code:Leave a comment:
-
Ok, I figured I'd just post an answer to my second question:
from http://www.quirksmode. org/js/events_advanced .html
Sigh...Leave a comment:
No activity results to display
Show More
Leave a comment: