/    Sign up×
Community /Pin to ProfileBookmark

javascript and using images!

Hi everyone (or anyone)

I’m a bit of a newbie so apologies now if this sounds really stupid BUT …

I got this image that needs to link to a javasript link, but i dont know how to. The image code is as follows

<img src=”chat4.gif” width=”154″ height=”61″ border=”0″>

and it needs to link to the following file …

<script type=”text/javascript”
src=”http://www.someurl.com/livehelp/livehelp_js.php?department=1&amp;pin
gtimes=15″></script>

i’ve tried to using html and the a href function but keep getting errors. cananyone put me on the right path.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@JPnycAug 20.2005 — What exactly is your goal?
Copy linkTweet thisAlerts:
@VikauthorAug 20.2005 — so that when a user clicks on the image it goes to the link inside that javascript thing.
Copy linkTweet thisAlerts:
@JPnycAug 20.2005 — What for? You want them to download the script? Then you don't use a script tag, but a regular anchor tag.
Copy linkTweet thisAlerts:
@VikauthorAug 20.2005 — thanks for your help. as you can see i myself am more than confused about it. i'll do as you say and just just use the anchor tags! ?
×

Success!

Help @Vik 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...