Results 1 to 4 of 4

Thread: [vs2005] div image hover effect

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    [vs2005] div image hover effect

    Hi team, the hover effect was created in dreamwaver and it works perfectly when used in table. but something seems unusual with hover effect once use in div. Can I apply the same effect in divs without changing any codes in javascript.

    code
    Code:
    <div id="home"><a href="default.aspx" onmouseout="MM_swapImgRestore()" 
    onmouseover="MM_swapImage('home','','_images/hover/home.jpg',1)">
    <img src="_images/click/home.jpg"  alt="home"/></a></div>
    Learn something new every .001 second.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [vs2005] div image hover effect

    What this function has ?

    MM_swapImage
    Try some of these

    1
    2
    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    285

    Re: [vs2005] div image hover effect

    Hi there jlbantang,

    I would suggest that rollovers for links are better and easier done with CSS.

    If you are unfamiliar with this method, give me the relevant images and I will knock up an example for you.


    ~ the original bald headed old fart ~

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    Re: [vs2005] div image hover effect

    Quote Originally Posted by coothead View Post
    Hi there jlbantang,

    I would suggest that rollovers for links are better and easier done with CSS.

    If you are unfamiliar with this method, give me the relevant images and I will knock up an example for you.
    thanks. i check that too. i have an image link across all pages which link to our webmail it would be neat to do that in css.

    check the sample.

    Code:
    <a href="somewhere.html"
    onmouseover="document.sub_but.src='movedown.gif'"
    onmouseout="document.sub_but.src='moveup.gif'">
    
    <img src="moveup.gif" width="143" height="39" border="0" 
    alt="Move your mouse over me" name="sub_but" />
    </a>
    http://www.webdevelopersnotes.com/ti...rollovers.php3
    Last edited by jlbantang; Oct 6th, 2010 at 08:28 AM.
    Learn something new every .001 second.

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