/    Sign up×
Community /Pin to ProfileBookmark

Script in Dreamweaver Doesn’t Work

Used the following script for rollover in Dreamworker MX. Will not work although it does in an earlier version. Anyone know why?
<HTML>
<HEAD>
<TITLE>A Simple Rollover</TITLE>
<script language=”javascript”>
</HEAD>
<BODY BGCOLOR=WHITE>
<p><A HREF=next.htm” onMouseover=
“document.arrow.src=’images/
redArrow.gif'” onMouseout=
“document.arrow.src=’images/
blueArrow.gif'”><IMG SRC=images/
blueArrow.gif” WIDTH169 HEIGHT=62
BORDER=0 NAME=”arrow”></A>
</BODY>
</HTML>:mad:

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Tweak4Jun 08.2007 — You're saying it won't work in Dreamweaver? That seems pretty irrelevant to me- the important thing is whether or not it works in a browser. Most editors fail to render "active" content properly, so they're never a good indication of whether or not something is working correctly.

Personally, I think I would probably move the rollover events to the image itself and just have them operate on "this.src". Or at the very least, change your image name to an ID and change the events to use document.getElementById("arrow").src- that tends to be a little more reliable than using the name attribute.
×

Success!

Help @Studio_64 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 4.28,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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