Can't you do Mouseovers in HTML ?

liunx

Guest
I know i asked about this in the General fourm but i was wonder can't you do mouseovers , onpress & onmouseout in html like <a href=http://www.webdeveloper.com/forum/archive/index.php/"" onmouseover="image1.png">Hi My Name Is Kaisa</a> etc. ?<!--content-->Originally posted by Kaisa <br />
I know i asked about this in the General fourm but i was wonder can't you do mouseovers , onpress & onmouseout in html like <a href=http://www.webdeveloper.com/forum/archive/index.php/"" onmouseover="image1.png">Hi My Name Is Kaisa</a> etc. ? <br />
<br />
No, onmouseover etc is a way to link to/incorporate scripting.<br />
The closes to creating dynamic effects with "html" is to use CSS.<br />
<br />
Your code however doesn't explain what you want to do (change background image? Popup the image? or something else?)<!--content-->Well what i want the script to do is when you move your mouse over it , it changes to a different image the same with clicking on the image etc. including the mouseout script and if you know how to add sound that will help too !<!--content-->Originally posted by Kaisa <br />
Well what i want the script to do is when you move your mouse over it , it changes to a different image the same with clicking on the image etc. including the mouseout script <br />
<br />
Got a funny deja-vue feeling when I read that.<br />
<br />
Already answered this exact question of yours once<br />
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=518">http://forums.webdeveloper.com/showthre ... readid=518</a><!-- m --><!--content-->I know i asked for the same thing in the general fourm and i am sorry if your mad about it but thats how i am and by the way are you the same Stefan that made graalonline ?<br />
<br />
( <!-- m --><a class="postlink" href="Http://www.GraalOnline.com">Http://www.GraalOnline.com</a><!-- m --> )<!--content-->No..HTML is static and doest have much flare. DHTML or DOM are used to develop interactive wepages. <br />
<br />
Like <img src=http://www.webdeveloper.com/forum/archive/index.php/"before.gif" hsrc="after.gif"><br />
having fun now!<!--content-->I think what you are asking for is a great feat to accomplish for the novice. None of what you desire comes in simple code. Most of all that would be compatible with all Browsers. <br />
I use this example to show how different Browsers handle the same space in a single page. Netscape will have a mouseover sound and a train moving, while Internet Explorer will show my message of what they are missing. Here it is:<br />
<br />
<!-- m --><a class="postlink" href="http://www.citlink.net/~jdavia/img-sound.html">http://www.citlink.net/~jdavia/img-sound.html</a><!-- m --><br />
<br />
I have such a menu that you ask for, but wonder if you can adopt it for your needs.<!--content-->jdavia-<br />
<br />
Why not write the code so it is compatible in all major browsers? You aren't doing anything that complex in you example. Simply putting a gif in you page with sound onMouseOver. Certainly not something that has to be limited to Netscape...<!--content-->Originally posted by Kaisa <br />
I know i asked for the same thing in the general fourm and i am sorry if your mad about it but thats how i am and by the way are you the same Stefan that made graalonline ?<br />
<br />
( <!-- m --><a class="postlink" href="Http://www.GraalOnline.com">Http://www.GraalOnline.com</a><!-- m --> ) <br />
<br />
I says at the bottom of that site that it was made by a "Linux" person. What are you talking about. (Not Linux the OS, Linux the name).<!--content-->Originally posted by Kaisa<br />
and by the way are you the same Stefan that made graalonline ?No, I can be quite certain that it is not. They used tables for layout... Right Stefan?? :D<!--content-->Mouseover code works just fine in HTML. Go to this link to view some of my code that uses mouseover to supersize images. <br />
<br />
<!-- w --><a class="postlink" href="http://www.geocities.com/ccbebs/TablemakerTesting">www.geocities.com/ccbebs/TablemakerTesting</a><!-- w --><br />
<br />
Pay careful attention to the use of single and double quotes between the <>. Additional mouseover actions, such as sound, can be inserted between the double quotes by using the ; and ' to separate them.<!--content-->here is a simple mouseover.......<br />
<br />
<br />
<HTML><br />
<HEAD><br />
<TITLE>Simple Mouseover</TITLE><br />
</HEAD><br />
<BODY><br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"jsmouse1.html"<br />
onMouseover="mypicture.src='http://www.webdeveloper.com/forum/archive/index.php/mouseovr.gif'"<br />
onMouseout="mypicture.src='http://www.webdeveloper.com/forum/archive/index.php/mouseout.gif'"><br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"mouseout.gif"<br />
WIDTH=157<br />
HEIGHT=39<br />
BORDER=0<br />
NAME="mypicture"><br />
</A><br />
<br />
</BODY><br />
</HTML><br />
<br />
<br />
<br />
Note: Put the file here: <IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"*******.gif", that you want to be on the page when it initially loads. then put the pics you want to change with the mouse over in the <br />
'*********' spots. you may want to make the load pic the same as the mouseout.gif, and then put a different one for the mouseover or visa versa. <br />
<br />
<br />
this works fine.<br />
war:)<!--content-->Originally posted by pyro <br />
No, I can be quite certain that it is not. They used tables for layout... Right Stefan?? :D <br />
<br />
Indeed :D<!--content-->
 
Back
Top