Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Nebraska
    Posts
    43
    Member #
    985
    I am developing a car website. I have one two column table. In the first column I have it so it lists the models, which are hyperlinked so that the user can click to on a particular model and find details about it on another page. I would like it so that when the user's mouse goes over the hyperlink that a picture of the vehicle displays in column 2 and disappears when it moves off the hyperlink. Does anyone know how to do this by chance? I tried it in the code below but I can't seem to get it to work.

    thanks,

    lmarshall

    The URL is http://waynes.lindseymarshall.net/Pages/ford.htm

    <table>
    <tr>
    <td></td>
    <td><font size="2" face="Arial, Helvetica, sans-serif">Escort</font></td>
    <td rowspan="5"><img src="silverado3500.jpg" style="visibility: hidden"></td>
    </tr>
    <tr>
    <td></td>
    <td><font size="2" face="Arial, Helvetica, sans-serif">Focus </font></td>
    </tr>
    <tr>
    <td></td>
    <td><font size="2" face="Arial, Helvetica, sans-serif"><a href="trim_f150.htm" onMouseOver="javascript:document.images[0].style.visibility = 'visible'" onMouseOut="javascript:document.images[0].style.visibility = 'hidden'">F150</a></font></td>
    </tr>
    <tr>
    <td></td>
    <td><font size="2" face="Arial, Helvetica, sans-serif">Escape</font></td>
    </tr>
    <tr>
    <td></td>
    <td><font size="2" face="Arial, Helvetica, sans-serif">Expedition</font></td>
    </tr>
    </table>

  2.  

  3. #2
    Junior Member ScriptKeeper's Avatar
    Join Date
    Jul 2003
    Posts
    1
    Member #
    2116
    Im not sure but u could give this a try!

    First

    <script>
    imageCollection=["image1.jpg","image2.jpg","image3.jpg","image4.jpg "];
    function swapImage(img){
    document.imag_to_swap.src=imageCollection[img];
    }
    </script>

    Then

    <a onmouseover="swapImage(0)" onmouseout="swapImage(0)">First Link</a>
    <a onmouseover="swapImage(1)" onmouseout="swapImage(0)">Second Link</a>
    <a onmouseover="swapImage(2)" onmouseout="swapImage(0)">Third Link</a>
    <a onmouseover="swapImage(3)" onmouseout="swapImage(0)">Fourth Link</a>
    <img src="image1.jpg" name="imag_to_swap">

    GoooD Luck!

    PS: I would think about using an option form and then base the image to load off of the form selection!

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Try this as well. This will be much more flexible in that it will not only allow for images, but for other HTML code around the images as well:

    http://www.adamwebdesign.ca/WDF/samplemouseover.html

    (Note: this should also have a preloader for the images but for the purposes of what you're trying to accomplish, this is all that's absolutely necessary.)
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    How's this?

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    What an absolutely hideous-looking car. Seriously. That is one ugly car.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:31 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com