/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] script not working when line is copied and pasted

hello, this is my first time posting and i am only starting to get to know javascript. i’m hoping someone here might be able to help me.

i am trying to add a new navigation button to this site:
[url]http://adamdavisphotos.com/sports/sp_nav.html[/url]

however, when i just cut and paste a line of html code:
<tr>
<td><a href=”basketball/basketball.html” target=”_top” onClick=”MM_nbGroup(‘down’,’group1′,’bball’,’images/bball_dn.jpg’,1)” onMouseOver=”MM_nbGroup(‘over’,’bball’,’images/bball_dn.jpg’,”,1)” onMouseOut=”MM_nbGroup(‘out’)”><img src=”images/bsk_up.jpg” alt=”” name=”bball” width=”169″ height=”36″ border=”0″ onload=””></a></td>
</tr>

so that i can replace the necessary items with the new button, the script does not work on the old line and the new line:
[url]http://adamdavisphotos.com/sports/sp_navtest.html[/url]

it does not show the onMouseOver image.

i hope i’ve explained this properly and that someone can show me what i’ve done wrong.

thank you.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @optiontanya 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,
)...