/    Sign up×
Community /Pin to ProfileBookmark

border removal for linked image what rotates

Hey…I am trying to remove the border on my image link. The thing is that it is a javascript that randomly selects which image to use on each refresh. I NEED it to link out, but not have that gross border. Please help!

Here is the code:

<div id=”photoBox”>
<a href=”photos.html” border=”0″>
<script type=”text/javascript”>

<!–
var rand=Math.round(Math.random()*4);
var img=new Array(5);
img[0]=”images/home_photos/home_photo_ex.gif”;
img[1]=”images/home_photos/home_photo_2.gif”;
img[2]=”images/home_photos/home_photo_3.gif”;
img[3]=”images/home_photos/home_photo_4.gif”;
img[4]=”images/home_photos/home_photo_5.gif”;

document.write(“<img src=”” + img[rand] + “” />”);

//–>
</script>
</a></div>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisAug 20.2007 — document.write("&lt;img src="" + img[rand] + "" [color=red]border="0" [/color]/&gt;");
×

Success!

Help @erikanorris 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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