www.webdeveloper.com

Search:

Type: Posts; User: Suresure

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Messy script swapping images on click badly needs tidying

    I have some code, mashed together with a lot of ignorance. I've done a terrible job of pairing it down until it does what I want. It works, but it's really messy and I think I might be complicating...
  2. I have a solution from Stack Overflow and thought...

    I have a solution from Stack Overflow and thought I'd post it here too:


    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} Mac\ OS\ X.*Chrome [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mac\ OS\...
  3. [RESOLVED] .htaccess redirect for specific browser/OS combination

    I don't know if this is possible! I need to redirect if the user is accessing the site using Chrome on OS X, but not Chrome on Windows - and the same for Safari.

    Can I target, specifically, Chrome...
  4. Replies
    18
    Views
    4,862

    Thanks - that's extra nice! I'll show you when I...

    Thanks - that's extra nice! I'll show you when I get the content in place. Thanks again!
  5. Replies
    18
    Views
    4,862

    IT WORKS! Ha! Genius - thanks so much! I've...

    IT WORKS! Ha! Genius - thanks so much! I've dropped the el.height = el.height lines - it distorts some of the spacing, but that's a really lovely, clean bit of code. Thanks a lot - can't believe you...
  6. Replies
    18
    Views
    4,862

    No! Ha! This must be getting close though, right?...

    No! Ha! This must be getting close though, right?

    http://www.suresure.co.uk/Temp/BM3.html

    I now have this:

    Uncaught TypeError: Cannot call method 'replace' of undefined (repeated 2 times)
    ...
  7. Replies
    18
    Views
    4,862

    Thanks for the speed - return true; doesn't...

    Thanks for the speed -
    return true; doesn't seem to change anything... I'm in so far over my head. Chrome just has undefined (repeated 0 times) under that function toggle (this) line - Dreamweaver...
  8. Replies
    18
    Views
    4,862

    Like this?: ...

    Like this?:

    http://www.suresure.co.uk/Temp/BM2.html


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html...
  9. Replies
    18
    Views
    4,862

    Thanks again for your patience - I'm getting: ...

    Thanks again for your patience - I'm getting:

    Uncaught TypeError: Cannot call method 'match' of undefined (repeated 6 times)
    Uncaught TypeError: Cannot read property 'class' of undefined...
  10. Replies
    18
    Views
    4,862

    Ah, thanks for your patience - I'm sorry, I'm way...

    Ah, thanks for your patience - I'm sorry, I'm way below this level of knowledge - I've no experience of debugging with Chrome, having a look for the first time now but it's 4 in the morning here and...
  11. Replies
    18
    Views
    4,862

    Thanks for that Nemesis - but pasting it over the...

    Thanks for that Nemesis - but pasting it over the original script means nothing's happening when I click the image - I know I'm missing something... but what?
  12. Replies
    18
    Views
    4,862

    Thanks for that! It's a good effect but maybe too...

    Thanks for that! It's a good effect but maybe too complicated? I'm looking at something like this (using that same example SVG):


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  13. Replies
    18
    Views
    4,862

    This thread almost has what I was after:...

    This thread almost has what I was after: http://www.webdeveloper.com/forum/showthread.php?p=663467 -


    <script type="text/javascript">
    function toggle(it) {
    if (it.width == 200)
    ...
  14. Replies
    18
    Views
    4,862

    [RESOLVED] Image scale onclick

    I never get any better - Iím sorry. Iíve hunted around and canít find this covered on here. It used to be bad practice to resize an image with code but SVG files render beautifully at any scale and...
  15. Replies
    17
    Views
    3,356

    Perfect! Thanks for all your time on this! It...

    Perfect! Thanks for all your time on this! It works great - older MSIE and Firefox still have a problem, but I'm happy to give up on them... Really tidy, cheers!
  16. Replies
    17
    Views
    3,356

    Brilliant - thanks! Works very nicely, I can't...

    Brilliant - thanks! Works very nicely, I can't thank you enough!
  17. Replies
    17
    Views
    3,356

    Nice one tirna! I love the thought of the next...

    Nice one tirna! I love the thought of the next version - thanks! Time zones mean I'll probably be asleep while you're out - have a good one and thanks again so much for all your help. Magic!
  18. Replies
    17
    Views
    3,356

    No Mike! I'm really sorry! I was just looking for...

    No Mike! I'm really sorry! I was just looking for a method that didn't require a full list of files/images in the code itself. Could the array used above be included in your solution? I'm sorry - I...
  19. Replies
    17
    Views
    3,356

    Alright, I'm sorry about this - especially after...

    Alright, I'm sorry about this - especially after the great support so far - but the code for the random image wall, as below, isn't working out on MSIE or earlier versions of Safari and Firefox. Is...
  20. Replies
    17
    Views
    3,356

    Sorted it - sorry, I was lazy! Changed ...

    Sorted it - sorry, I was lazy!

    Changed

    imgElems = document.getElementsByTagName('img')

    to

    imgElems = document.getElementsByClassName('wallPics')
  21. Replies
    17
    Views
    3,356

    Cheers tirna - that's really smooth! Thanks for...

    Cheers tirna - that's really smooth! Thanks for sticking with it. I did have one image at the top of the page (a button really) that is now cycling through the random folder with the rest of the...
  22. Replies
    17
    Views
    3,356

    Blimey! Thanks guys - now I have a choice... and...

    Blimey! Thanks guys - now I have a choice... and I can't choose!

    WebDevGuy's seems attractive, being the shortest and pulling the images from a folder, rather than requiring a full list...
  23. Replies
    17
    Views
    3,356

    Amazing! That's spot on, thanks! I should know,...

    Amazing! That's spot on, thanks! I should know, but what do I need in the body to refer to this?
  24. Replies
    17
    Views
    3,356

    [RESOLVED] Wall of randomly selected images

    I'm so sorry for the baseness of this, I'm starting (again) from total ignorance.

    I'm aiming for a page filled with a stack of images (about 20) - each pulled at random from a set of hundreds,...
  25. I can't believe you persisted with this - it...

    I can't believe you persisted with this - it works beautifully! Thank you so much - I wish I had some knowledge to give back! Really, massive thanks for this.
Results 1 to 25 of 34
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles