Jump to content
Killersites Forums

ll87

Member
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ll87

  • Rank
    Member
  1. duhhhh. thanks very much, got it sorted now. but in the interests of clean code, i just added "_cont" to end of the id of the main content divs. can i ask about your solution? the $(this).attr('href') would return '#' right now yes? so are u saying it should give the href the value of the div we want to fade in. that way im only using the ID on the div and not on the navigation? thanks again
  2. sorry, there was a full stop after the url
  3. It's working in Chrome, Firefox, and Safari and IE8. http://mymediaventure.com/pricing.php clicking the options on the left fades out the content but the next div does not fade in. Can anyone help? Alex
  4. the only thing against setting them to display:none is that people with javascript turned off (i dont know anyone who does this) won't see them at all.
  5. I have implemented an image fader using jQuery but on first load, you briefly see the 4 images load on top of each other. i have tried to hide the images with regular javascript rather than wait until document ready but i can't track down how to solve this. can i actually get rid of this? if u need the url to see, i completely understand and i can send it to u but not on a forum post. i know i might have been vague but i think it's almost certainly a common problem Thanks!
  6. yea i initially had < but that wasnt working so i changed it. strangely enough i altered it a lot to play around, and then got rid of it all, and now its working with what i posted about. hours wasted for nothing. it's really strange. my friend told me about mysql_insert_id() and its definitely the better way to go
  7. I have the following query code. I insert a record and then do a select to retrieve it. The select is working as I can see it in my DB. Mysql_num_rows gives me a result of 1 which is correct. When i try to retrieve the data using mysql_fetch_array within a for loop, it says the values of id and title are empty which doesn't make sense. I thought it was to do with my query but seeing as the result of num_rows is correct it can't be. I'm stumped :s. $insert = mysql_query('INSERT INTO blog (title,entry) VALUES ("'.$blog_title.'","'.$blog_entry.'")') or die("Error:".mysql_error());
  8. I am using array_slice in PHP to hold 12 elements, as there are 12 images per page on my site. However, now that I have moved over to this method, I can no longer see whether or not there are any images remaining and therefore whether there should be a Next hyperlink. Before i was using readdir and the pointer was always on the next image so it was easy, but now that i am putting all images into one array in one go, i can no longer do it this way. any help? if($skip != 0){ $has_previous = true; } while(($file = readdir($handle)) != false){ //read in all files.
  9. thank you BeeDev, works in Chrome for OS X too. also, i notice when the div slides down, they shift to the left slightly, and when they are hidden they go back to the right.
  10. hey guys, i am working on a site for my friend, and the slideUp/down and fade ins and outs arent working properly, they are a bit jumpy. when a section slides down, it keeps sliding then when finished the bottom jumps up to where it should be. it's the same when i try fading. is it somethng to do with their containers? i haven't got fixed heights so i didn't think so. www.matthewmortimer.co.uk/photography.html is the address. jquery: $(document).ready(function(){ var h3; $("div.image_set").css("display","none"); if($("h3.trigger").length > 0){ $("h3.trigger").
  11. yea this is! today ive been trying to work out how to modify an existing pagination script for my image gallery. take a look at that if u need to quench your problem solving thirst
  12. I am using the script here: http://www.lateralcode.com/simple-php-gallery-pagination/ and trying to modify it so it works with my current image gallery (done differently to theirs) but after loading the first 12 images (first page), clicking on Next goes to page_no 1 but thats as far as it goes, and on page 1 (0 is the first) no pictures load. It's driving me nuts as i dont know which bit of code is messed up. can someone take a look? PHP (gallery_images.php): <?php $country = $_GET['trip']; $directory = 'Images/'.$country; //folder of gallery photos. $thumbs_dir
×
×
  • Create New...