Jump to content

ericburnard

Members
  • Content Count

    46
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ericburnard

  • Rank
    Member

Profile Information

  • Gender
    Not Telling
  1. I don't have access to the site as it was his project that I was helping him with. Otherwise yes, it would be very easy to just look through the code and create something myself!
  2. Apologies if this is in the wrong sub forum, I literally have no idea where to start with this as it's something that I haven't tried or even looked at doing before. Unfortunately I cannot get hold of my webguy I worked with on a project a while ago (on a 6 month trip through the Nepalese mountain! Lucky guy!) He created a map for a project with a line across it which can be changed depending on how far a client has traveled across the map (see image). I am wanting to create something similar for a personal project but for an individual state but I have no idea where to even start. I have googled for what I think it could be explained as and I cannot find anything. I not asking for a full blown solution (unless you want to be so helpful ) But if you know of any tutorials, pages or what parts of a language i should have a look at it would be very very much appreciated! Eric
  3. ericburnard

    Summer running site - Dodgy links maybe?

    oh and I managed to fix the links, they are all scrolling perfectly now
  4. ericburnard

    Summer running site - Dodgy links maybe?

    Thanks for the advice. The <center> tag is and old bad habit that i just end up doing, especially when i have them in my css as well! I was struggling to center the countdown box vertically the other day, and obviously it didn't work properly. I will do some work tonight and add the doctype tonight and fixed the center tags. Thanks
  5. I am not the best at php, so there is probably a better way than this to do it, but, why don't you combine the 2 forms into one and also file_upload.php and combine.php into one. That way you can use the variable $file right into you combine script. no? Either that or if you were needing the $file variable again, put it in a session of for Permanent storage into a database.
  6. Hi there. I have just made a quick site over the past 2 days to help keep people up to date with my charity runs. Its not supposed to be anything flash or snazzy just a tool to help connect to people. Let me know what you think or if anyone finds any problems in any browsers. One thing problem that has arisen just now is that the links seem to work then not and then work again its very random. Let me know if anyone else has this problem. www.summer-running.com Thanks again Eric
  7. ericburnard

    .scrolltop

    Hi there, I am needing a bit of advice. I am currently working on a new site, and I have my links at the top in a fixed header, and the rest of my content throughout the same page. http://sr.bluepigeon.com have a look it will make more sence then me describing it. Now i have worked a little bit with jQuery but do not know all the ins and outs of it, which is why I am a bit stuck. Now when I click one of the links on the page, I want the page to scroll down to that div and display it in the center of the screen. Now the code I am using (see below) obviously works on my laptops screen size but won't be as 'perfect' and centered on other sized screens. If i user the following code without each of the offsets then it will scroll to the correct div, but it will be displayed on the top of the page and not centered in the middle. What I am wanting to know, is, is it possible to make it scroll to a div and then center the div in the middle of the screen? If not how could i get as close as possible to this? $(document).ready(function(){ $("#blogl").click(function() { $('html, body').animate({ scrollTop: $("#blog").offset().top }, 2000); }); $("#racel").click(function() { $('html, body').animate({ scrollTop: $("#race").offset().top }, 2000); }); $("#aboutl").click(function() { $('html, body').animate({ scrollTop: $("#about").offset().top +700 }, 2000); }); $("#srl").click(function() { $('html, body').animate({ scrollTop: $("#sr").offset().top +100 }, 2000); }); $("#donatel").click(function() { $('html, body').animate({ scrollTop: $("#donate").offset().top }, 2000); }); }); Thanks for your help again Eric
  8. ericburnard

    Using explode() with a foreach loop

    Always something so simple. I think I have been overwriting my brain as well today! You're a superstar Thanks!
  9. I seem to be struggling massively with this little problem. im sure its just a little something I am missing but it has be winding me up for hours. This is the said code. <? $id = $_POST['id']; $tags = $_POST['tags']; foreach( $id as $n ) { $tags = $tags[$n]; echo '<br><br>'.$tags.'---'.$n.'<br>'; $tags = explode(", ", $tags); $num=count($tags); echo "$num<br>"; foreach( $tags as $tag ) { print "ID: ".$n." --- tag: ".$tag." <br>\n"; } } ?> It finishes one full loop through fine, separates out all of the tags and puts them with the correct id. But when it moves onto the second full loop it seems to be getting nothing out of here $tags = $tags[$n]; I have tried changing the $n for one of the id numbers to make sure it is pulling the data from the $_POST[] and it is. The following is the results I am getting. cheese, more cheese, even more cheese---409 3 ID: 409 --- tag: cheese ID: 409 --- tag: more cheese ID: 409 --- tag: even more cheese ---287 1 ID: 287 --- tag: ---288 1 ID: 288 --- tag: ---406 1 ID: 406 --- tag: ---407 1 ID: 407 --- tag: ---408 1 ID: 408 --- tag: Any help or pointers in the right direction would be a massive help. Eric
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.