Will img src tag trigger HTML error

9 replies
  • WEB DESIGN
  • |
I'm still trying to figure out why my HTML image link is being corrupted. It appears that the img src tag is causing the problem because all links that are just text work fine and all that have a img src end up with a img class bunch of random characters. I apologize for the similar thread but hope some new readers will respond to this one.
donrock
#error #html #img #src #tag #trigger
  • Profile picture of the author xtrapunch
    You need to provide some more info, maybe an example.

    Your tag should look like (ignore space before and after <, >):
    < a href="example.com" > < img src="your-image-link" height="xx" width="yy" /> < /a >
    Signature
    >> Web Design, Wordpress & SEO - XtraPunch.com <<
    Web Design & SEO Agency | Serving World Wide from New Delhi, India

    {{ DiscussionBoard.errors[4085366].message }}
  • Profile picture of the author donrock
    This is what I posted in another place hopefully it will give you the info you need if not I'll supply it. It looks like the img src tag is triggering my link corruption. It only happens when I try to put in an image (text works fine). If I put in an image link such as this <a href="http://www.jdoqocy.com/click-4072394-10404383" target="_top"><img src="http://www.ftjcfx.com/image-4072394-10404383" border="0" width="120" height="90" /></a> it shows up as this <a href="http://www.jdoqocy.com/click-4072394-10404383" target="_top"> <img class=" swvtqynosphahdfzyuhk swvtqynosphahdfzyuhk swvtqynosphahdfzyuhk swvtqynosphahdfzyuhk" src="http://www.ftjcfx.com/image-4072394-10404383" border="0" width="120" height="90" /></a> This happens with all kinds of image links on different websites. I'm not too good with HTML but haven't found anyone than can explain it. Some have suggested that I've been hacked.
    {{ DiscussionBoard.errors[4085566].message }}
  • Profile picture of the author Karen Barr
    Can you advise how you're inputtng the link? Are you using Wordpress, if so are you using the visual editor or the HTML editor? Or are you coding purely in straight HTML - if so, which editor are you using - notepad? dreamweaver?
    {{ DiscussionBoard.errors[4086204].message }}
  • Profile picture of the author donrock
    Karen,

    This problem is with affiliate links from Commission Junction. I'm just copying their HTML and putting it on my webpage.

    Here are 2 links from the same business the top one is a text link and the bottom an image (picture) link. They look the same and end up looking the same on HTML but the text link goes on fine while the image link does not go on. Actually I didn't realize they had the same junk in them til now.

    Here's what the two look like on HTML

    <p><a href="http://www.anrdoezrs.net/click-4072394-10688780" target="_blank">Save 80% on Frontline Plus</a><img class=" xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs" src="http://www.tqlkg.com/image-4072394-10688780" border="0" width="1" height="1" /></p> This the text which shows up on the page.
    <p><a href="http://www.kqzyfj.com/click-4072394-10692042" target="_blank"> <img class=" xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs xvpijzqlzgcuwrqgiwrs" src="http://www.lduhtrp.net/image-4072394-10692042" border="0" alt="Total Pet Supply" width="88" height="31" /></a></p> This is a picture which does not show up.

    donrock
    {{ DiscussionBoard.errors[4091661].message }}
  • Profile picture of the author Karen Barr
    If thats the code which comes direct from CJ then the advertiser has provided something weird, lol. I would try removing that img class declaration so that the code looks like this:
    <p><a href="http://www.kqzyfj.com/click-4072394-10692042" target="_blank"> <img src="http://www.lduhtrp.net/image-4072394-10692042" border="0" alt="Total Pet Supply" width="88" height="31" /></a></p>

    Why they would put a class declaration n there I have no idea, because you wouldn't be able to call the css class from their server unless they provided a link to that within the code... Anyway try it like that and see what happens. If you're still having problems I would contact the affiliates manager at the company and explain the trouble.
    {{ DiscussionBoard.errors[4092408].message }}
  • Profile picture of the author donrock
    Karen,

    I messed up the link, the CJ link was supposed to look like the one you typed and the applied one that is messed up is the one I put in my post. I found out the link works fine in IE so the problem must be with Firefox. I need to get it fixed as I hate IE.
    {{ DiscussionBoard.errors[4096996].message }}
  • Profile picture of the author Karen Barr
    Lol, I hate IE too.

    I would test this out by pasting in other links from CJ and viewing them in firefox. If there's something funky with all of them, input/view them on firefox from someone else's machine. If they look fine, then the problem is at your end. If they are all whack, then there's a problem with the coding and you'll need to contact the advertiser.
    {{ DiscussionBoard.errors[4097512].message }}
  • Profile picture of the author rnsinformatic
    Yes, I Agree with karen,
    Either the problem is at your hand or in codding, if you still getting bugs you need to contact advertiser immediately.
    {{ DiscussionBoard.errors[4110405].message }}
  • Profile picture of the author donrock
    There is no problem with the advertisers codes as they work perfect with IE. Its something to do with Firefox. Just got 5.0 but haven't had a chance to test it yet.
    {{ DiscussionBoard.errors[4121420].message }}

Trending Topics