Results 1 to 5 of 5

Thread: How to apply Alt code into Li code

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

    Default How to apply Alt code into Li code

    Hi,
    The code in use is shown below.


    Code:
    <li><a href="javascript:" onclick="replaceMainImage('m-images/photos/HONDACAT.png', 'Hondacat1','<b>85.00</b><br>Will Require Programming<br>CAT 1 TYPE<br><span class=keychipColor> MPT1340</span><br><b>UK Recorded 2.50</b><br><b>International Signed For 10.00<br></b><b>Posted From The UK</b><br><span class=drColor>The Remote Doctor</span>')">CAT 1 Remote Fob + Instructions</a></li>
    Can you advise please the correct way to add the below into it as its not the usual way i would apply any alt code.

    Code:
    alt="Honda Cat 1 Alarm Remote Fob"
    If not possible please advise how i could apply it to the image in question
    Many Thanks

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,830
    Thanks
    49
    Thanked 242 Times in 235 Posts
    Blog Entries
    56

    Default

    Use the title attribute:
    Code:
    <li title="Honda Cat 1 Alarm Remote Fob">

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

    theremotedr (06-07-2019)

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

    Default

    Hi,
    So the code should now look like below ?


    Code:
    <li><li title="Honda Cat 1 Alarm Remote Fob"><a href="javascript:" onclick="replaceMainImage('m-images/photos/HONDACAT2.png', 'Hondacat2','<b>35.00</b><br>Make It Look Like New Again<br>CAT 1 TYPE<br><span class=keychipColor> MPT1340</span><br><b>UK Recorded 2.50</b><br><b>International Signed For 10.00<br></b><b>Posted From The UK</b><br><span class=drColor>The Remote Doctor</span>')">CAT 1 Remote Case</a></li>
    So in due time when people search the net for this item its now newly added title attribute will act a the Alt code and be found/shown it search engines.

  5. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,830
    Thanks
    49
    Thanked 242 Times in 235 Posts
    Blog Entries
    56

    Default

    Code:
    <li title="Honda Cat 1 Alarm Remote Fob"><a href="javascript: void(0)" onclick="replaceMainImage('m-images/photos/HONDACAT2.png', 'Hondacat2','<b>35.00</b><br>Make It Look Like New Again<br>CAT 1 TYPE<br><span class=keychipColor> MPT1340</span><br><b>UK Recorded 2.50</b><br><b>International Signed For 10.00<br></b><b>Posted From The UK</b><br><span class=drColor>The Remote Doctor</span>')">CAT 1 Remote Case</a></li>

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

Similar Threads

  1. Replies: 25
    Last Post: 09-13-2016, 05:36 AM
  2. Replies: 3
    Last Post: 05-12-2011, 03:43 AM
  3. Secret code / hidden message / obfuscated code - ???
    By newbie01.others in forum JavaScript
    Replies: 2
    Last Post: 01-14-2011, 11:29 AM
  4. Replies: 15
    Last Post: 06-11-2009, 12:27 PM
  5. Replies: 2
    Last Post: 10-27-2008, 05:16 AM

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
  •