HighDots Forums  

OnMouseOver questions!!

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss OnMouseOver questions!! in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave K.
 
Posts: n/a

Default OnMouseOver questions!! - 06-29-2004 , 04:44 PM






I use Dreamweaver 6.0, I don't know much about java script, and am trying to
figure out how to use the "onmouseover" command so, on one of my templates,
an image changes when someone rolls their mouse cursor over it. I've
followed a tutorial (see
http://www.javascriptworld.com/scripts/script04.01.html) on how to do it,
but when I do the code and replace it with my file and graphics names, it
does not work.

A couple questions from :

1) Will the "OnMouseOver" command work in preview mode (when in Dreamweaver,
I hit F12 to look at it in my Internet Explorer browser), when the files are
on my local harddrive? Or does javascript require that the files be on a Web
server that supports java?

2) Does all the code need to be on one line? In lots of different tutorials
I've seen, when "OnMouseOver" and "OnMouseOut" are shown in the raw code,
even when they are on one line, there is often a bigger space before those
words. There isn't a special character, extra spaces or a tab that needs to
be used to get it to work, is there?

Thanks for your help!!

--
NOTE: Please delete the word "REMOVE" from my e-mail address when replying.
This is a spam guard.



Reply With Quote
  #2  
Old   
Mick White
 
Posts: n/a

Default Re: OnMouseOver questions!! - 06-29-2004 , 06:32 PM








Dave K. wrote:

Quote:
I use Dreamweaver 6.0, I don't know much about java script, and am trying to
figure out how to use the "onmouseover" command so, on one of my templates,
an image changes when someone rolls their mouse cursor over it. I've
followed a tutorial (see
http://www.javascriptworld.com/scripts/script04.01.html) on how to do it,
but when I do the code and replace it with my file and graphics names, it
does not work.

A couple questions from :

1) Will the "OnMouseOver" command work in preview mode (when in Dreamweaver,
I hit F12 to look at it in my Internet Explorer browser), when the files are
on my local harddrive?
Yes

Or does javascript require that the files be on a Web
Quote:
server that supports java?
No

Quote:
2) Does all the code need to be on one line?
No

In lots of different tutorials
Quote:
I've seen, when "OnMouseOver" and "OnMouseOut" are shown in the raw code,
even when they are on one line, there is often a bigger space before those
words. There isn't a special character, extra spaces or a tab that needs to
be used to get it to work, is there?

Nothing special. just a space before "onmousover/out"


Quote:
Thanks for your help!!
Show us your code, preferably a URL.

Mick

Quote:

Reply With Quote
  #3  
Old   
jtench
 
Posts: n/a

Default Re: OnMouseOver questions!! - 06-29-2004 , 10:06 PM



I'm still a newbee too, but picking up information fast. I tried reading
that book JavaScript visually. It really didn't help me much. I would
recommend reading the JavaScript Bible. It helped me get a better grasp of
the concepts. In the mean time make sure the name attribute for the <img>
tag matches document.(the same name as the img name).src.
--


JAMES TENCH
"Dave K." <davek (AT) REMOVEcompanynewsletters (DOT) com> wrote

Quote:
I use Dreamweaver 6.0, I don't know much about java script, and am trying
to
figure out how to use the "onmouseover" command so, on one of my
templates,
an image changes when someone rolls their mouse cursor over it. I've
followed a tutorial (see
http://www.javascriptworld.com/scripts/script04.01.html) on how to do it,
but when I do the code and replace it with my file and graphics names, it
does not work.

A couple questions from :

1) Will the "OnMouseOver" command work in preview mode (when in
Dreamweaver,
I hit F12 to look at it in my Internet Explorer browser), when the files
are
on my local harddrive? Or does javascript require that the files be on a
Web
server that supports java?

2) Does all the code need to be on one line? In lots of different
tutorials
I've seen, when "OnMouseOver" and "OnMouseOut" are shown in the raw code,
even when they are on one line, there is often a bigger space before those
words. There isn't a special character, extra spaces or a tab that needs
to
be used to get it to work, is there?

Thanks for your help!!

--
NOTE: Please delete the word "REMOVE" from my e-mail address when
replying.
This is a spam guard.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.