Results 1 to 3 of 3

Thread: Unable to locate image path.

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

    Default Unable to locate image path.

    Hi,
    Here is the page in question http://www.theremotedoctor.co.uk/acc...llto=selection
    When you visit the page you will see my doctor image.
    If you click on the right Flip key pad the doctor image has been replaced.
    Using Chrome F12 the code for this image is
    HTML Code:
    <img src="m-images/photos/AUDI002.png" alt="Honda car key remote programming" id="mainImage" class="img-border">
    But I need to change it to
    HTML Code:
    <img src="m-images/photos/AUDI002.png" alt="Honda car key remote programming" id="mainImage" class="img-border shareable-class">
    I am unable to find this code to alter it.
    Can you see/advise why I can't locate it ?
    Last edited by theremotedr; 03-21-2016 at 02:54 PM.

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    I suspect it's because you are using JavaScript on line 248 to replace the original image:

    Code:
    <li><a href="javascript:" onclick="replaceMainImage('m-images/photos/AUDI002.png', 'Audi002','<b>£4.00</b><br>Fix That Damaged Remote<br>Easy To Swap Over<br><span class=noteColor>T5 & T6 Screwdriver Is Required</span><br><b>UK Recorded £2.50</b><br><b>International Signed For £10.00<br></b><b>Posted From The UK</b><br><scan class=drColor>The Remote Doctor</scan>')">Flip Remote Key Pad</a></li>
    You need to alter the 'replaceMainImage()' function to include styling changes.

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

    theremotedr (03-16-2016)

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

    Default

    Thanks very much.
    Ive added the following & now works fine in the PC only.
    Doesn't work on iOS.
    Even though I can complete a transaction start to finish on iOS & PC in the same way this new added code has no affect on the iOS device ?

    Code:
    $('#mainImage').addClass('shareable-class');
    Last edited by theremotedr; 03-16-2016 at 09:41 PM.

Similar Threads

  1. Resolved Unable to locate image code
    By theremotedr in forum CSS
    Replies: 2
    Last Post: 03-17-2015, 10:15 AM
  2. Resolved Confused - unable to locate button positioning in javascript
    By Mark Ellis in forum JavaScript
    Replies: 1
    Last Post: 10-15-2013, 04:08 PM
  3. Unable to locate area to attach stylesheet.
    By the_file in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-09-2009, 03:57 AM
  4. locate image on page
    By questions in forum CSS
    Replies: 5
    Last Post: 08-09-2008, 04:28 PM
  5. Help With Image Path
    By rickjwilliams in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-23-2005, 11:50 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
  •