Need to modify scrip

Discussion in 'Scripts' started by ganuv, Dec 7, 2012.

  1. #1
    HI, I am doing my first Ebay listing template, and I found a few scrips that can help me with some features I need in my template. But I need to modify them in order for them to "fit" in my template .
    script: <!-- ASQ -->
    <script>document.write ("<a href=\""+ ebayAskSellerURL +"\" class='button_links' id='button_links'>As Seller a Question</a>");</script>
    I am trying to replace the Link text with a link image, meanning I need it to show an clickable image (URL image) instead of "ask seller a question" link.
    Anybody?
     
    ganuv, Dec 7, 2012 IP
  2. davetrebas

    davetrebas Active Member

    Messages:
    301
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    78
    #2
    <script>document.write ("<a href=\""+ ebayAskSellerURL +"\" class='button_links' id='button_links'><img src='image.gif' alt='alt text' style='border:none;' /></a>");</script>

    I didn't try it but it should work - the text is just replaced by an img tag - plug in your own image link and attributes

    I assume
    ebayAskSellerURL is defined somewhere else in your script.

    If this is going to run on eBay, you will need to have that image hosted somewhere on the internet to use it. Google "free image hosting for eBay"

     
    davetrebas, Dec 7, 2012 IP
  3. ganuv

    ganuv Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    HI Davetrebas, works like a charm - Many thanks!!!
     
    ganuv, Dec 7, 2012 IP
  4. ganuv

    ganuv Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    HI Davetrebas, after I implemented you correction on the script it worked, but, I tried to implement your change on 2 other scrips that the text ending looks the same, and it didn't work :(

    * The one that worked:

    * Two scrips which do work on Ebay listing with the text link:
    <!-- Tell a Friend -->
    <script>document.write ("<a href='http://contact.ebay.co.uk/ws1/eBayISAPI.dll?ShowEmailAuctionToFriend&item=" + ebayItemID + "' title='Tell a Friend' class='button_links' id='button_links'>Tell a Friend</a>");</script>


    <!-- Watch This Item -->
    <script>document.write ("<a href='http://cgi1.ebay.co.uk/ws/eBayISAPI.dll?MakeTrack&item=" + ebayItemID + "' title='Watch This Item' class='button_links' id='button_links'>Watch This Item</a>");</script>



    * I changed these scrips to this, and they don't show the image link on Ebay:

    <!-- Tell a Friend -->
    <script>document.write ("<a href='http://contact.ebay.co.uk/ws1/eBayISAPI.dll?ShowEmailAuctionToFriend&item=" + ebayItemID + "' title='Tell a Friend' class='button_links' id='button_links'><img src='http://i472.photobucket.com/albums/rr81/ganuv/images/but_contact.jpgg
    ' alt='alt text' style='border:none;' /></a>");</script>


    <!-- Watch This Item -->
    <script>document.write ("<a href='http://cgi1.ebay.co.uk/ws/eBayISAPI.dll?MakeTrack&item=" + ebayItemID + "' title='Watch This Item' class='button_links' id='button_links'><img src='http://i472.photobucket.com/albums/rr81/ganuv/images/but_contact.jpg
    ' alt='alt text' style='border:none;' /></a>");</script>

    Any suggestions, Please?
     
    ganuv, Dec 9, 2012 IP
  5. ganuv

    ganuv Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry, forgot to include this in my last request:

    * The one that worked:

    <script>document.write ("<a href=\""+ ebayAskSellerURL +"\" class='button_links' id='button_links'><img src=''http://i472.photobucket.com/albums/rr81/ganuv/images/but_contact.jpg' alt='alt text' style='border:none;' /></a>");</script>

    Thanks, Lior
     
    ganuv, Dec 9, 2012 IP
  6. ganuv

    ganuv Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Wow, I am very sorry, I found the problem, and it is working :) I forgot to add the Title on top of the script, Lior
     
    ganuv, Dec 9, 2012 IP