Everything posted by henbast
-
Payment Options
You can have it in 1-2 days if you pay an extra... £5 I think? Just a nice extra little fee to add on.
-
opacity bar not working
You'll need to take it out of the container to get it full width.
-
Problem implimenting more than one mouseover effect
The suoerquick fix is below: <script type="text/javascript"> function mouseOver() { document.getElementById("b1").src ="images/fb-icon-mouseover.png"; } function mouseOut() { document.getElementById("b1").src ="images/fb-icon.png"; } function mouseOver2() { document.getElementById("b2").src ="images/twitter-icon-mouseover.png"; } function mouseOut2() { document.getElementById("b2").src ="images/twitter-icon.png"; } function mouseOver3() { document.getElementById("b3").src ="images/blog-icon-mouseover.png"; } function mouseOut3() { document.getElementById("b3").src ="images/blog-icon.png"; } </script> <a href="http://www.blogger.com" target="_blank"> <img border="0" alt="Blog page" src="images/blog-icon.png" id="b3" width="13" height="14" onmouseover="mouseOver3()" onmouseout="mouseOut3()" /></a> <a href="http://www.twitter.com" target="_blank"> <img border="0" alt="Twitter page" src="images/twitter-icon.png" id="b2" width="21" height="14" onmouseover="mouseOver2()" onmouseout="mouseOut2()" /></a> <a href="http://www.facebook.com" target="_blank"> <img border="0" alt="Facebook page" src="images/fb-icon.png" id="b1" width="13" height="14" onmouseover="mouseOver()" onmouseout="mouseOut()" /></a> What you've done is duplicate the mouseOver() and mouseOut() functions. You can only have one function per unique name, so all the images are calling the exact same function as it stood. The next step is to abstract things out a little bit and use the one function to deal with all mouseovers, something like the following (requries jquery): <script type="text/javascript"> $(function() { $('.hover-img').hover(function() { var src = $(this).attr('src'); src = src.replace(/\./, '-mouseover.'); $(this).attr('src', src); }, function () { var src = $(this).attr('src'); src = src.replace(/-mouseover\./, ''); $(this).attr('src', src); }); }); </script> <a href="http://www.blogger.com" target="_blank"> <img border="0" alt="Blog page" src="images/blog-icon.png" id="b3" width="13" height="14" class="hover-img" /></a> <a href="http://www.twitter.com" target="_blank"> <img border="0" alt="Twitter page" src="images/twitter-icon.png" id="b2" width="21" height="14" class="hover-img" /></a> <a href="http://www.facebook.com" target="_blank"> <img border="0" alt="Facebook page" src="images/fb-icon.png" id="b1" width="13" height="14" class="hover-img" /></a> That's a bit quick & dirty (heck, it's 2am) but you get the idea. That way you can reuse the same hover code wherever you need it.
-
Hello....Seeking U.S.Website Partner w/ Web-programming & SEO Skills
I can complete this project quickly and on time. A team of developers stands by for your call. THANK
-
Advanced Javascript books?
Javascript: The Good Parts
-
Swapping the contents of two table rows using jquery
Something like this?
-
Any Bitbucket users with iPhones/Android?
Having trouble finding the most appropriate forum for this. If anyone can point me to a better place then feel free to move I'm working on an app for managing Bitbucket issues, kinda similar to the Github issues app. It will be for iPhone initially but I'm working on an Android version in the background which will be along shortly afterwards. So... I need some beta testers to help me break things. I'll probably have the first beta ready some time in the next week or two - though Xmas will obv result in a little inactivity. The iPhone betas will use Testflight. Android I guess I can just wazz out some APK's. In return you will have my gratitude, a ham sandwich and a free finished app at the end of it. If anyone is interested then email me: egg@pitbot.net Thank.
-
CDNs (Content Delivery Networks)
A CDN is basically a set of machines at points around the world that will serve up your content, taking the load off your servers and making things quicker due to proximity (i.e. US user gets your files from a US server, Asian user gets it from an Asian server). Most often you'd use them to serve static content like javascript, CSS, images and so on. If you do any kind of video you basically have no choice
-
PHP Page Won't Load
I'm half asleep atm but first things first, you've given us enough info to track down the site and left what looks like real mysql credentials. Remove those and change them, stat! After that, do a quick view source and see if anything is being output before the doctype. I had a site I had to fix recently where IE raised merry hell over a comment appearing up top. That may or may not help but it's quick to check out.
-
what version of mysql do I have?
Or if you have access to the command line, the version will appear when you run that. Or you can whack up a phpinfo() if all else fails.
-
How do I copy a text file over to a MySQL table using php?
What kind of text file? XML? CSV? You can read it in easily enough using file_get_contents but it depends on the format on how you'll parse it.
-
need some php help
Is $outcome an array? Try putting $outcome = array(); somewhere before the code that assigns to it and see what happens. edit: Or the same for $genetic too.
-
Too niche?
[thing] workout, [thing] work outs, etc etc Or grab a few people and ask them to find info on work outs for people with [thing]. Watch what they search for. You'll have to be careful not to inadvertently skew the results by suggesting a particular phrase though. Best to let them have a go, if nothing comes up, let them try again and they'll come up with some variations themselves. If a few keep popping up then target that. However, if you have some decent content and you get it indexed, you'll start to appear for combinations of [thing] and workout related terms organically. If it's really niche and you plan it out, you can own it.
-
Business cards
1. I used Moo.com for mine. Not the absolute cheapest but the quality was top boz. I'd recommend them. 2. Not my area so I couldn't say. String, I guess...
-
need a host that will allow add-ons
You can get a good VPS for around £12/month. I guarantee* it'll work out amazingly better than any traditional hosting package. * not a guarantee
-
jQuery resize problem
$(document).ready only fires once - when the page is first loaded. If you want it to keep updated then try something like: $(function() { $("button").click(function(){ var Main = $('#box'); var boxWidth = Main.width(); alert(boxWidth); }); });
-
Payment Options
As others have mentioned, bank transfer I've found to be the best method. More important than payment method though is picking the right clients. Any payment method is better than a promise. In promises I'm a rich man, but after a spectacularly bad run just lately, I can't afford to eat at the moment
-
Encryption algorithms
Bcrypt. You can use the unfortunately named phpass to handle it. Everything else is pretty much a waste of time.
-
XML file to order fulfillment house
Sounds like it. I doubt any cart out there is set up to do something like this for your particular provider.
-
Perform a function on load
Do you need any of the text in the XML? If you change the country code to France for example, all the highs & lows are in C. http://www.google.com/ig/api?weather=bn424nt&hl=fr I couldn't find anything in English that isn't F.
-
Document.getElementById
You can do that with jquery, e.g. <li><a href="" onclick="$('#div2,#div3,#div4,#div5).css('display','none');return false">Hide Div 2</a></li> If you need to do it in plain JS, then you're better off unloading it into a function that having a giant line, like: function hide_divs(the_divs) { for (i=0;i<the_divs.length;i++) { document.getElementById(the_divs[i_tem]).style.display='none' } } and <li><a href="" onclick="hide_divs(['div1','div2','div3'])">Hide Div 2</a></li>
-
XML file to order fulfillment house
Are XML orders done in batches? If so, it'll be easy enough to run a cron job to pull from the database and fire some XML over. If they are done one by one, then you'll need to hook it into Cart66 somehow - I have no experience of it, but if it's up to much it'll have some kind of hook/plugin system you can adapt.
-
Line break using php
\n is a newline which will be ignored in HTML (or turned into a space) - though it will work if you are dealing with normal text. A <br> will cause a line break in HTML and do nothing in text (except having the <br> present).
-
Long shot: PostGIS and point in polygon
At the moment yes but MySQL only has a subset of the OpenGIS specs and stuff like WITHIN uses MBR's rather than the proper polygon. There are a few dirty hacks around it but none of them really work out so well for me.
-
Long shot: PostGIS and point in polygon
Hello! I've reached the limits of what a human can endure using MySQL for geospatial stuff and I really need to get a decent working point in polygon query running (that doesn't use MBR). I'm aware PostGIS (obv with Postgres) can supposedly do this but I'm having a bit of grief getting anything working and was curious if anyone here had any exposure to it and could give me a few pointers? I'm run off my feet atm so I'm probably missing something obvious that I can't see for my own stupidity but anything at all that might help would be rewarded with many, many cakes Thanks!