Search results

  1. learning_brain

    Best Method For Mobile Friendly Sites

    Thanks essellar I have now looked into this in more detail and your suggestion would appear to be the easiest solution... however.... Many mobile or "wireless" devices now have (in many cases) higher resolutions than standard workstations or media type "screen". For instance, we still get...
  2. learning_brain

    Best Method For Mobile Friendly Sites

    I'm currently designing a new layout for a website, but feel the need now to make it mobile friendly. I understand that there are simple css tricks such as media type = handheld, but this is very limited when it comes to modern mobile browsers which view pages pretty much as they were designed...
  3. learning_brain

    Obtain inline image filesize (Javascript?)

    Thanks Misson. There's a whole heap of stuff in there to understand... and learn! I do understand AJAX to a degree and use it regularly on the site for button functions. I'm not sure I need to do that here. I have developed my original js code to the following: <script...
  4. learning_brain

    Obtain inline image filesize (Javascript?)

    Thanks Misson I'm starting to learn some very basic javascript for this but don't know how to mix JS with php - i.e. how to compare a php variable with a javascript variable. This is where it's doing my head in because I assume they cannot compare due to the fact that one is server-side...
  5. learning_brain

    Obtain inline image filesize (Javascript?)

    Didn't realise that - thank you. Width and height would be fine but, as I said, javascript is not my best subject - any pointers?
  6. learning_brain

    Obtain inline image filesize (Javascript?)

    On my image search engine site, I have several pages that use hotlinked images from other sites (yes still - sorry to users who know this already, I have not found an adequate solution). Many sites now use the hotlink breaker: showing an alternate image in its place...understandable. I would...
  7. learning_brain

    Using JS for image preview

    It's as I feared and you pick up on some very good points I stumbled across along the way. I appreciate the NB and, for what it's worth, this is my laymans understanding too. I did write a page caching script that worked pretty well with most sites but failed on far too many. Again though...
  8. learning_brain

    Using JS for image preview

    Thank you! I like the way that sounds. I recreate images for the thumbnail creation anyway so that won't be too hard. I just need to put together a "nice" page for image info and the original image link as suggested. The only problem I will have here is showing the image in the orininating...
  9. learning_brain

    Using JS for image preview

    Really??... No ideas?? How about a page that can be optimised for google with a redirect to the original image? How does that suit SEO? Richard
  10. learning_brain

    Using JS for image preview

    There's no way I can describe this in just a title.:confused: CURRENTLY I have an image search engine (as some of you know), currently with a unique image preview function (hotlinks the original image). On click, you're taken to the view image page, which embeds the original image in it...
  11. learning_brain

    css center repeating floating thumbnails in liquid layout

    Thanks misson. As always, you've come up trumps (apologies for the delayed response!). After a few tweaks with vertical-align to get each thumbnail container to align (images were base aligning and throwing out the top of the containers). LostHorizon - thank you for your efforts and yes, if...
  12. learning_brain

    css center repeating floating thumbnails in liquid layout

    I have tried everything here with little success. I'm trying to center a bunch of float-left thumbnails in a liquid layout. The thumbnail + span description underneath - all wrapped in a link. HTML as below. <body><div id="wrapper"> <div class="thumbscontainer"> loop repeat.... <a...
  13. learning_brain

    Replacing all img src in loaded html

    ...Thinking and reading.... Your version was the first one I tried. The examples were only variations on a theme. Because of my tabbing, the identifiers were also tabbed which gave me the problem. I have removed these and all is well. I did understand you. Sigh... yes this seems to be...
  14. learning_brain

    Replacing all img src in loaded html

    Thanks Misson The $body = $xpath->query('/html/body')->item(0); worked a treat... although I don't understand why lol. Your code for the ETX was the one I tried first (which was giving me the unexpected $end). The others were just trials. After a lot a reading up, I found that it was having...
  15. learning_brain

    Replacing all img src in loaded html

    Hmmm - got an unexpected $end at the end of the script.... So I tried playing with the <<<ETX wrapper. eg.. $formSource=<<<STX <form id="form" name="form" method="get" action=""> <label> <input name="url" type="text" id="url" size="100" /> </label> <label>...
  16. learning_brain

    Replacing all img src in loaded html

    Thanks Misson I found the bug - it was to do with relative paths rather than absolute which I have now fixed. The development page is at http://www.qualityimagesearch.com/cbic_wrapper.php Just put in an html address (full url) and it will process the images accordingly. I have also changed...
  17. learning_brain

    Replacing all img src in loaded html

    As always - you come up with the goods, but scraping content was not my problem. My issue was the replacement of the src Attribute.... but you did give me some hints which I found very useful. I am having secondary problem though. Current code... $target_url = $_GET['url']; $oldSetting =...
  18. learning_brain

    Replacing all img src in loaded html

    I don't know if I'm going to get any sense here but here goes... I have a class that analyses an image (test file here refresh for another image) and censors anything that has too many fleshtones by returning a pixellated version. I am trying to set up a webpage wrapper that loads the html and...
  19. learning_brain

    Dynamic 410 Gone away file?

    That was simple - thanks
  20. learning_brain

    Dynamic 410 Gone away file?

    I have now over 350,000 images in my search engine index. Additiionally, there is a cron job that checks them every so often to ensure they are still there. If the image doesn't exist anymore, the database entry is deleted. The problem is the dynamically created page still theretically exists...
Top