www.webdeveloper.com
Results 1 to 13 of 13

Thread: Can't you do Mouseovers in HTML ?

  1. #1
    Join Date
    Dec 2002
    Location
    Saint Louis , Missouri
    Posts
    157

    Arrow Can't you do Mouseovers in HTML ?

    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="" onmouseover="image1.png">Hi My Name Is Kaisa</a> etc. ?

  2. #2
    Join Date
    Nov 2002
    Posts
    984

    Re: Can't you do Mouseovers in HTML ?

    Originally posted by Kaisa
    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="" onmouseover="image1.png">Hi My Name Is Kaisa</a> etc. ?
    No, onmouseover etc is a way to link to/incorporate scripting.
    The closes to creating dynamic effects with "html" is to use CSS.

    Your code however doesn't explain what you want to do (change background image? Popup the image? or something else?)

  3. #3
    Join Date
    Dec 2002
    Location
    Saint Louis , Missouri
    Posts
    157

    Post

    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 !

  4. #4
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by Kaisa
    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
    Got a funny deja-vue feeling when I read that.

    Already answered this exact question of yours once
    http://forums.webdeveloper.com/showt...=&threadid=518

  5. #5
    Join Date
    Dec 2002
    Location
    Saint Louis , Missouri
    Posts
    157

    Unhappy i know :(

    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 ?

    ( Http://www.GraalOnline.com )

  6. #6
    Join Date
    Dec 2002
    Posts
    19
    No..HTML is static and doest have much flare. DHTML or DOM are used to develop interactive wepages.

    Like <img src="before.gif" hsrc="after.gif">
    having fun now!

  7. #7
    Join Date
    Dec 2002
    Location
    Lake Havasu City, Arizona
    Posts
    527
    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.
    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:

    http://www.citlink.net/~jdavia/img-sound.html

    I have such a menu that you ask for, but wonder if you can adopt it for your needs.
    Last edited by jdavia; 01-05-2003 at 01:38 PM.

  8. #8
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    jdavia-

    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...

  9. #9
    Join Date
    Nov 2002
    Posts
    631

    Re: i know :(

    Originally posted by Kaisa
    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 ?

    ( Http://www.GraalOnline.com )
    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).

  10. #10
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by Kaisa
    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??

  11. #11
    Join Date
    Jan 2003
    Posts
    11

    Smile

    Mouseover code works just fine in HTML. Go to this link to view some of my code that uses mouseover to supersize images.

    www.geocities.com/ccbebs/TablemakerTesting

    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.

  12. #12
    Join Date
    Dec 2002
    Posts
    49

    here you go

    here is a simple mouseover.......


    <HTML>
    <HEAD>
    <TITLE>Simple Mouseover</TITLE>
    </HEAD>
    <BODY>

    <A HREF="jsmouse1.html"
    onMouseover="mypicture.src='mouseovr.gif'"
    onMouseout="mypicture.src='mouseout.gif'">
    <IMG SRC="mouseout.gif"
    WIDTH=157
    HEIGHT=39
    BORDER=0
    NAME="mypicture">
    </A>

    </BODY>
    </HTML>



    Note: Put the file here: <IMG SRC="*******.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
    '*********' 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.


    this works fine.
    war
    Last edited by warbishop; 01-06-2003 at 02:06 PM.

  13. #13
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by pyro
    No, I can be quite certain that it is not. They used tables for layout... Right Stefan??
    Indeed

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles