how can I do this?

Discussion in 'Programming' started by alex894, Jul 4, 2007.

  1. #1
    Hello,

    I want to make pictures display onMouseOver in drop-down menus...so if user points over a value on the menu, the image assigned to that value, in the database, will show to the right of the menu, in whatever size, for the sake of it, we'll say 300x300px.

    I looked on the web and can't find anything like it, I'll keep looking.

    Any help is appreciated, even pointing me to sites you know have this. I need to get this done soon.

    Thank you all in advance.
     
    alex894, Jul 4, 2007 IP
  2. Gangsta

    Gangsta Active Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    well there are two ways I think to so that
    1. Use array instead of database
    2. Use AJAX
     
    Gangsta, Jul 4, 2007 IP
  3. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #3
    as gangsta said hard coding the image urls is better idea. then you can use the onMouseOver function(search on google, you will get it free) to show the image.
    this gonna be little trickier here since you probably have to set a place holder blank image first and hide it. on mouse over, you can change the "src" attribute of the placeholder image, and display it.
    onMouseOut you probably wanna hide it again using javascript.
     
    webcosmo, Jul 4, 2007 IP
  4. corycollier

    corycollier Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Alex,
    You don't even need javascript to do this. If all you're looking for is the ability to make a picture popup on a mouseover event, you can use just CSS.
    Here's an example:
    Google the following term and check out the results:
    css image gallery
     
    corycollier, Jul 5, 2007 IP
  5. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    just point out to the picture when mouseover :-/
     
    ProgrammersTalk, Jul 5, 2007 IP