/    Sign up×
Community /Pin to ProfileBookmark

Document.Write link not allowing IMG anchor

I am trying to figure out how to successfully place an image anchor in the following script —

<script>document.write (“<a href=”http://contact.”+ domain +”/ws/eBayISAPI.dll?ShowCoreAskSellerQuestion&requested=”+ userid +”&iid=”+ itemid +”&frm=284&redirect=0&SSPageName=PageAskSellerQuestion_VI”><img src=”http://www.thebluedot.net/images/layout/contact_us.gif” style=”border:none;”></a>”);</script>

The img anchor – <img src=”http://www.thebluedot.net/images/layout/contact_us.gif” style=”border:none;”> — is causing my issue.

If I replace the img with txt – the script works just fine for me. How can I get my image to display properly? What am i missing here?

Any help would be much appreciated. I am a complete newb to javascript so please be easy on me.

Thanks,
Chris

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 01.2010 — [CODE]document.write ('<a href="http://contact.'+ domain +'/ws/eBayISAPI.dll?ShowCoreAskSellerQuestion&requested='+ userid +'"&iid='+ itemid +'&frm=284&redirect=0&SSPageName=PageAskSellerQuestion_VI"><img src="http://www.thebluedot.net/images/layout/contact_us.gif" style="border:none;"></a>');
[/CODE]
Copy linkTweet thisAlerts:
@thebluedotauthorOct 01.2010 — I figured out what I was doing wrong. I was declaringt the variables at the top of the page. I was pulling my hair out over this one.

Thanks for getting back to me.


--------------------------------
TheBlueDot.net pays top dollar for your used cell phones
×

Success!

Help @thebluedot spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...