Results 1 to 4 of 4

Thread: images with mouseover

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    9

    images with mouseover

    i have 4 thumbnails and four related images, i need when the mouse is over on of the thumbnails to show the related image and hide the others how can i do this in script using asp.net

    thanks

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: images with mouseover

    Use client side JavaScript to swap images. Search in Google you should find hundred of example.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3
    Member Nikhil Aggarwal's Avatar
    Join Date
    Jun 2005
    Location
    New Delhi, India
    Posts
    36

    Re: images with mouseover

    A ready control by the name of Rolloverimage is available for free download.

    Look up the link
    http://www.devhood.com/tools/tool_de...px?tool_id=108

    Provides a very clean method for mouseover image changing.

  4. #4
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: images with mouseover

    I have 2 imagebuttons on my web form and then have the following code in Page_Load:
    VB Code:
    1. btnEntering.Attributes.Add("OnMouseOver", "this.src='Resources/EnteringSiteOver.gif';")
    2.             btnEntering.Attributes.Add("OnMouseOut", "this.src='Resources/EnteringSite.gif';")
    3.             btnLeaving.Attributes.Add("OnMouseOver", "this.src='Resources/LeavingSiteOver.gif';")
    4.             btnLeaving.Attributes.Add("OnMouseOut", "this.src='Resources/LeavingSite.gif';")
    .NET automatically creates the client side JS for you.
    Hope that helps.

    woof

Posting Permissions

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



Click Here to Expand Forum to Full Width