344 Posted Topics
Re: Add `position: relative;` to `ul.products li` (Line 21). Then if you add an `<img>` with class "new" to the appropriate ul.products li element, you can assign `position: absolute` to `img.new`, and push it around with `top:`, `right`, `bottom`, or `left` as desired. See jsFiddle for example: http://jsfiddle.net/LEt7Y/ (Note I used … | |
Re: I used to use https://gomockingbird.com/ back when it was in beta. I was pretty happy with it. | |
Re: > Web Development Next time maybe use a more descriptive thread title? > You can't, it's a browser or printer setting. Shouldn't you be able to use a print media CSS doc to display:none your URLs? | |
Re: > I was just reading up somewhere that elseif is slightly faster than else if???? I don't have experience writing programming languages, but from a logical standpoint this sounds like it could make sense. Since white space separates tokens, `elseif` is just one token the language needs to process, and … | |
Re: They're not really two terms worth comparing like that -- a good PR is something that can contribute to a good ranking on an SERP. Ultimately SERPs are more important, but this is like saying a good website is more important than good HTML skills. Being skilled in HTML is … | |
Re: SERP = Search Engine Results Page. You might say SERPs are what SEO is all about. The fundamental goal of SEO is, for a given search term/keyword, to achieve a top ranking on search engines with your website. You want your site to be at the top of the first … | |
Re: Meta tags are *not* used for determining SERP rankings any longer. However, it's important to optimize your meta descriptions, as search engines will often use them for the page description on SERPs. So while they won't affect your ranking, a well-written description (along with an optimized `<title>` tag) can help … | |
Re: You're looking for [addClass](http://api.jquery.com/addClass/) and [removeClass](http://api.jquery.com/removeClass/) | |
Re: There are also absolute vs. relative links. The former provide a full path to a URL including the domain. The latter are shorter URLs whose destination is based relative to the document they're in. | |
Re: Might also be helpful if you posted the `<head>` of your HTML document. | |
Re: That's a pretty vague question, and I don't see what it has to do with SEO. The procedure for creating/using a coupon code on your site depends on the platform you're running on. | |
Re: You cannot do this in a raw CSS file -- this is why CSS hacks exist (which I try to avoid). You can use IE conditional comments if you want to target IE specifically. I like [this article at quirksmode](http://www.quirksmode.org/css/condcom.html) for explaining usage. Lastly, you can use your server-side language … | |
Re: Personally I recommend learning XHTML. It enforces good habits as it's not as lenient. Some of the rules may seem unnecessary, but at least it teaches you that there *are* rules, and how to look up what they are, fix errors, and overall develops good standards-compliant practices. EDIT: To really … | |
Re: Write your own form and we'll help you out where we can. We're not going to write code for you from scratch. Especially for an advanced form such as this one. | |
Re: Check to make sure you didn't miss a semi-colon, parenthesis, or curly bracket anywhere before the line the error is on. | |
![]() | Re: > I've been trying my best to read books on Java and Ajax no luck Are you sure you mean "Java" and not "JavaScript"? They're two different things, and the latter is much more closely related to AJAX. As stated, get good at HTML and CSS first. JavaScript doesn't make … ![]() |
Re: You have a couple of problems here: 1) Your form action is set to [icode]$PHP_SELF[/icode], which I don't see being initialized anywhere here. So unless you have another file somewhere that you include with your first file, you need to set [icode]$PHP_SELF = $_SERVER['PHP_SELF'];[/icode] 2) $PHP_SELF (once set appropriately) will … | |
Re: While PHP can print out JavaScript, basic JavaScript cannot interact with PHP. To do so you need to use AJAX (Asynchornous JavaScript and XML), which allows JavaScript requests a file from the server without reloading the current page. To solve your problem, read up on AJAX and how to use … | |
Re: Why would you need JavaScript for this? As JorgeM says, just change the HTML. From a semantic standpoint, why would you change this table into a `<ul>` or `<ol>`? Each row provides separate details about a person, while items in a list should be similar in taxonomy to one another, … | |
Re: It's important to understand @diafol's point above -- if you want to dynamically alter things on a page without reloading, aside from CSS hover effects, you generally need to use JavaScript. As to the task at hand, if you can give us the name and URL to a slider/rotator script … | |
Re: I agree as far as contrast -- The images at the top blend too much with the background, as well as the footer text. Consider adding navigation to the footer as well. A sitemap link here would be a good idea too, as well as social media links if your … | |
Re: > First of all, you should get familiarized with mysql_fetch_array, since mysql_fetch_assoc is getting dropped in php5... This statement is misleading. The reason `mysql_fetch_assoc()` is getting dropped is because the `mysql` extension is getting dropped. So to "get familiarized" with `mysql_fetch_array()` will not help. Instead use `mysqli_fetch_assoc()` with the `mysqli` … | |
Re: > I wonder if there is a better cms This is really subjective. What's wrong with Symphony? What are your goals, and do you want to do that you can't do with your current platform? | |
Re: That's a pretty vague question, and I don't see what it has to do with SEO. The procedure for creating a coupon code for your site depends on the platform you're running on. | |
Re: p { text-transform: uppercase; } <p>This is a paragraph that is all in uppercase, but I want <span style="text-transform: none; font-style: italic;">this text</span> in normal lowercase, italicized.</p> See [jsFiddle](http://jsfiddle.net/nTxPH/). Note that you can use `class` and `id` instead, I just wrote the styles inline in this case. | |
Re: Seriously, just take this one step at a time. This apache installation stuff is nonsense to you right now. Learn HTML and CSS. As stated previously, and as you know by now, you don't need anything except a browser and a text editor. *Practice* and get good at both. Learn … | |
Re: Please don't ask anyone to write the whole script for you. Try to solve it yourself, then let us know where you're having trouble. Here are a few hints: * Look up PHP file input functions (`fopen()`, `fgetcsv()`, `file()`, `str_getcsv()`) -- several of these may be handy. * If you … ![]() | |
Re: Agree with LastMitch, this should be filed under the SEO (Search Engine Optimization) forum. Your question is a little confusing, but I think I get the gist. The important thing is to understand how search engines work on a rudimentary level. Basically, every search engine has one or more robots, … | |
Re: Your form processing code should be looking for the value of `$_POST['products']`, not `$_POST['eventSelect']`. | |
Re: Agree with broj1. Usually $_Cookie indexes are associative and use strings for the key names because the key name indicates what is stored at a location. Building off the example above, if you want even more details you can do foreach($_COOKIE as $key => $value { echo '$_COOKIE["' . $key … ![]() | |
Re: Two main problems stand out to me right away: 1. Your `if` statement is only true if `lname` contains the value `undefined` (curious why you'd store "undefined" in a variable?). 2. You're missing the actual "WHERE" keyword. If `$_REQUEST['lname']` contains `undefined`, your SQL query will look like this: SELECT * … | |
![]() | Re: Do you have jQuery included on the site? You could use AJAX to submit the form, then on success $('#contactform').fadeOut('fast', function() { $('.thanks).slideDown('normal'); }); |
Re: I believe that generally it is recommended to create logos in Illustrator. This allows you to create vector graphics, which will scale well when enlarged/shrunk. Considering that the logo would likely be reused on a number of different mediums, it is important that it can be resized without loss of … | |
Re: Not really related to your question, but this may save you some headaches. It looks like you're trying to make sure each result row is saved in the next index in the `$alreadyexist` array. You can do this more easily with: $alreadyexist[] = $query->fetchAll(); It will automatically assign `$query->fetchAll()` to … | |
A client of mine wants to implement SSL on their site. They have a number of forms which communicate sensitive/personal information, and want to send the data over a secure channel. I've worked with sites that have SSL certificates already, but never actually implemented one myself. The site runs on … | |
Re: Can we see your table structure, including data types? I'm not currently seeing anything to cause this. Also, your errors should indicate what line they are occurring on... | |
Re: In your first code snippet there's no DB connection before line 6, where you run your first query. | |
Re: This request involves processing form input and storing user information on your server. You cannot do this with basic HTML/CSS. You're looking for server-side scripting. You need to learn a language like PHP, JSP, or ASP. PHP is free and the only one of the 3 that I know, so … | |
Re: On a very basic level, SEO (search engine optimization) deals with increasing where your website appears on search engine result pages (SERPs) for a given keyword or phrase. SEM deals with marketing to people who use search engines via advertisements. | |
Re: Update your button HTML: <button type="button" onclick="return ChangeColor(this)">Red</button> <button type="button" onclick="return ChangeColor(this)">Blue</button> <button type="button" onclick="return ChangeColor(this)">Black</button> Then your JS: function ChangeColor(theButton) { document.getElementById('test').style.color = theButton.innerHTML; } | |
Re: You need to put a function in common.js, and call that function whenever the onchange event is fired. | |
| |
Re: Maybe I'm missing something, but you don't have any elements with id `level_six` or `level_ten`? What's triggering the click event? | |
Re: Change line 5 to: <select name="community" id="select7" onchange="javascript:if(this.value=='other')window.location.href='REDIRECT/PATH/HERE';"> If you need this to be more scalable, you can make it a JS function instead. EDIT: Good catch, TonyG. Those `<label>` tags don't belong there, and while the `onchange` will handle redirects, submitting won't work without `<form>` tags. | |
Re: I assume you need the height for the wrapper div so that you can push away other elements if a div.container is a different size from the original one. Why do you need them on top of one another though? If you are doing this to hide the ones behind, … | |
Re: try echo (is_resource($connection)) ? get_resource_type($connection) : 'not a resource'; | |
Re: Show us your code and where you are having trouble, and we will try to help. We don't write code from scratch for you. | |
Re: What are you typing this up in, Microsoft Word? You should be using a plain text or code editor which won't replace your single and double quotes with their fancy versions. Also, keep in mind that Notices are the lowest level of "errors" -- they won't usually break your program, … |
The End.