Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Existing code needs altering to suit

  1. #11
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    I was just teasing.

    Add this id here on line 211...

    Code:
    
    <img id="price-logo" src="m-images/price-logo.png" alt="remote doctor information button"  class="tooltip border buttonshadow" ></a></h1>
    ...and amend the script as shown...

    Code:
    
    (function(){
       'use strict';
        var a=document.getElementById('secondary-navigation').getElementsByTagName('a');
    for(var c=0;c<a.length;c++) {
        a[c].addEventListener('click',
     
    function() {
    if(this.firstChild.nodeValue==='** CLONING SERVICE **'){
        document.getElementById('btnOrder1').style.display='none';
        document.getElementById('price-logo').src='m-images/info-logo.png';
     }
    else {
        document.getElementById('btnOrder1').style.display='inline';
        document.getElementById('price-logo').src='m-images/price-logo.png';
       }
      },false);
     }
    }());

    coothead
    ~ the original bald headed old fart ~

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

    Default

    Ha Ha.
    Now sorted.
    I have noticed an issue at my end and asking you to check your end please.
    2 steps.

    1,
    Go here http://www.theremotedoctor.co.uk/acc...llto=selection
    Now put your cursor over the KEYS & REMOTES header & then bring your cursor down so you then see AUDI, BMW, FIAT, FORD being highlited in blue as you come all the way down to VOLKSWAGEN.

    2,
    Whilst on the same page http://www.theremotedoctor.co.uk/acc...llto=selection
    This time select ** CLONING SERVICE **
    Now do the same with respect KEYS & REMOTES then watch as you come down through the list AUDI, BMW, FIAT, FORD to the end.

    Please advise if anything happens whilst you come down through the list.

    I await your reply.
    Thanks

  3. #13
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    I could not see anything untoward.

    What are you seeing?

    I did notice, though, that the "stopClickToOrder.js" does not work
    in Chrome but does in Opera which uses the same engine.

    Is it just my Chrome or are is it not working in yours either?

    coothead
    ~ the original bald headed old fart ~

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

    Default

    I didn't notice anything wrong with the stopClickToOrder file, I am also using Chrome.
    I visit the page, I see CLICK FOR PRICE & CLICK TO ORDER buttons, I select CLONING SERVICE, image is loaded & I see only CLICK FOR INFO button centred below the image,I select the CLICK FOR INFO button, message pops up and I believe it's fine.
    The above is what should happen and I don't see anything wrong at my end,will check these pages again tomorrow to confirm.

    What I do see, and asked you to check is after I select CLONING SERVICE & start to scroll down the KEYS & REMOTES list AUDI,BMW etc etc, when I get to JAGUAR the list closes/disappears as if I moved the cursor off of the list.
    I've noticed this in a few but not all of the pages that have the CLONING SERVICE button installed.
    Tomorrow I will confirm which have the issue.

    I've done this a few times today and it defiantly happens at my end.
    I couldn't see it happen on a page that didn't have the CLONING SERVICE.
    I also checked it in Firefox and the same.

    I ALSO NOW USE CTRL & F5 TO REFRESH THE PAGE AFTER MAKING AN EDIT & 100% SPOT ON.

Similar Threads

  1. Resolved Edit to existing working code required
    By theremotedr in forum JavaScript
    Replies: 26
    Last Post: 01-04-2017, 12:28 PM
  2. Replies: 3
    Last Post: 09-14-2015, 10:08 AM
  3. Replies: 0
    Last Post: 10-01-2009, 11:53 AM
  4. Altering CSS with JS
    By freddygusto in forum JavaScript
    Replies: 1
    Last Post: 04-19-2008, 03:05 AM
  5. Dynamically Altering CSS
    By Bonza in forum CSS
    Replies: 0
    Last Post: 01-18-2007, 03:02 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
  •