![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||||
| ||||||
|
|
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? |
|
server that supports java? |
|
2) Does all the code need to be on one line? |
|
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" |
|
Thanks for your help!! |
#3
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |