Closed Thread
Results 1 to 9 of 9

Thread: Mouseover with images

  1. #1
    dirkfirst is offline Programming Expert
    Join Date
    May 2006
    Posts
    354
    Rep Power
    23

    Mouseover with images

    i believe this is possible since i seen it before. What i want to have is code that has an image that shows in white color and when you moveover it, it turns a color. I know it requires 2 images but that is all i know.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    RobSoftware is offline Programmer
    Join Date
    Nov 2005
    Posts
    143
    Rep Power
    0
    So basically you want the image to change to a new image when you do a mouseover?

  4. #3
    Frantic's Avatar
    Frantic is offline Learning Programmer
    Join Date
    May 2006
    Posts
    91
    Rep Power
    0
    You will need to use javascript for this, not html.

    You could do it with CSS as well and thats more recommended than using javascript.

  5. #4
    DevilsCharm's Avatar
    DevilsCharm is offline Programming God
    Join Date
    Jul 2006
    Posts
    884
    Rep Power
    0
    If you design a web page with Flash, that's easy, and as Frantic said it's possible to do with Javascript (although I didn't know that).

  6. #5
    Dan
    Dan is offline Programmer
    Join Date
    Jun 2006
    Posts
    145
    Rep Power
    0
    Simple!

    Code:
    <script language="Javascript">
    <!--
    //Slide Show script (this notice must stay intact)
    //For this and more scripts
    //visit java-scripts.net or http://wsabstract.com
    
    if (document.images) {
         button1 = new Image
         button2 = new Image
    
         button1.src = 'img1.gif'
         button2.src = 'img2.gif'
     }
    //-->
    </script>
    Obviously you can edit the values above to match your requirements.

  7. #6
    Jimbo is offline Programmer
    Join Date
    Jul 2006
    Posts
    121
    Rep Power
    0
    I'd use css to do this

    http://www.google.com/search?q=css+rollover

    loads of tutorials there

  8. #7
    egon is offline Newbie
    Join Date
    Oct 2006
    Location
    Iowa
    Posts
    13
    Rep Power
    0
    Dan, I'm not good at all with JavaScript, but shouldn't he use the on.mouseover() function?

  9. #8
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    Nice, CSS looks a lot easier than Javascript. I didn't realize CSS could do this.

  10. #9
    xtraze is offline Programming God
    Join Date
    Dec 2006
    Location
    Sri lanka
    Posts
    911
    Rep Power
    0
    I have found some nice tutorials at JavaScript Kit- Comprehensive JavaScript, DHTML, CSS tutorials and over 400+ free JavaScripts! and here is the link to the place you must go to get whatever you want.
    JavaScript Kit- Images and music scripts

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Show file info at mouseover with Ajax and PHP in JQuery
    By Sonic3R in forum JavaScript and CSS
    Replies: 2
    Last Post: 08-09-2011, 11:44 PM
  2. Replies: 213
    Last Post: 04-14-2011, 07:57 PM
  3. Mouseover to start javascript slide show
    By gaylo565 in forum JavaScript and CSS
    Replies: 0
    Last Post: 10-15-2009, 12:10 PM
  4. JavaScript:Tutorial, MouseOver Image Change
    By TcM in forum JavaScript Tutorials
    Replies: 4
    Last Post: 06-06-2009, 06:49 AM
  5. Mouseover Popup
    By Orjan in forum JavaScript and CSS
    Replies: 13
    Last Post: 04-04-2008, 10:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

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