Results 1 to 6 of 6

Thread: Stop blinking image when new image is loaded

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Stop blinking image when new image is loaded

    Here is the page in question,
    http://www.theremotedoctor.co.uk/kar...llto=selection

    I have the main advert blinking upon page load which is correct.
    You then make your selection & then the item image in question is then loaded.
    This now loaded image needs to be just visible & not blinking.

    Please advise what this newbie needs to do to correct the issue.

    Thanks
    Last edited by theremotedr; 05-19-2015 at 08:44 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
     <script type="text/javascript">
        var url = 'http://form.jotformeu.com/form/50907214204344?partNumber=';
    
        function replaceMainImage(imgSrc, partNumber, myContent) {
            $('#content a').get(0).search = 'partNumber=' + partNumber;
            $('#mainImage').attr('src', imgSrc).removeClass('blinking');
            $('#mainImage').addClass('img-border');
            $('html, body').animate({
                scrollTop: $("#mainImage").offset().top
            }, 1000);
            $('.tooltip').tooltip
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    theremotedr (05-19-2015)

  4. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi
    This is from the code towards the bottom of the screen correct ?

    If so i do not see blinking there ?

    Code:
            $('#content a').get(0).search = 'partNumber=' + partNumber;
            $('#mainImage').attr('src', imgSrc)
            $('#mainImage').addClass('img-border');
            $('html, body').animate({
                scrollTop: $("#mainImage").offset().top
            }, 1000);

  5. #4
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ha Ha

    You mean add it

  6. #5
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Thanks.
    This did the trick
    Code:
    $('#mainImage').attr('src', imgSrc).removeClass('blinkingshadow');

  7. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Almost there. Change:

    Code:
    <h1><img src="m-images/advert-suzuki.jpg" alt="remote doctor main logo" id="mainImage" class="blinkingshadow"/></h1>
    To (add a space):

    Code:
    <h1><img src="m-images/advert-suzuki.jpg" alt="remote doctor main logo" id="mainImage" class="blinking shadow"/></h1>
    Then change:

    Code:
            $('#mainImage').attr('src', imgSrc).removeClass('blinkingshadow');
    to:

    Code:
            $('#mainImage').attr('src', imgSrc).removeClass('blinking');

    That is if you want to keep the blinking at all. Two reasons why you should get rid of it:

    1. Although you know very well where you are and that you cut keys and program remotes from that location, the average user of the site might not. Having that information blinking, may make it hard for some to read.
    2. Even in the most recent version of some browsers, the blinking css you are using renders the image invisible, not for some.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. The Following User Says Thank You to jscheuer1 For This Useful Post:

    theremotedr (05-20-2015)

Similar Threads

  1. Resolved blinking image not blinking
    By theremotedr in forum CSS
    Replies: 5
    Last Post: 05-17-2015, 12:41 PM
  2. Image not blinking
    By theremotedr in forum CSS
    Replies: 4
    Last Post: 01-09-2015, 03:25 PM
  3. Featured Image Zoomer - Change Default loaded thumbnail image
    By coffee2020 in forum Dynamic Drive scripts help
    Replies: 17
    Last Post: 04-22-2013, 07:15 PM
  4. Replies: 3
    Last Post: 02-17-2011, 12:52 PM
  5. Blending Image Slideshow Script stop on last image
    By zot in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-18-2007, 10:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •