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 2 of 2
  1. #1
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    It has probably been answered before on this site - but I couldn't find any question on this subject when i did a quick Search.
    My question is can you use HTML, or javascript (preferably the former) to implement an image rolling over when you hover on a text link - if the image is in the row above the text linnks - ie - the navbar is horizontal - and above it is a horizontal logo banner thing with an image than needs to change when you rollover a text link??

    Please let me know if you think this is perhaps a bad idea.
    P.S. - I realise that this might be in the wrong forum (if so please let me know )
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    It's very easy in fact. Look at any rollover script, for example this forums'
    Code:
    onMouseOver="document.images['memberlist'].src='customimages/topbuttons/hot/memberlist.gif'"
    What this is saying is look for the <img tag with the name "memberlist" and change it's src to this. So just add that into a regular link, for example:

    Code:
    <a href="mylink.html" onMouseOver="document.image['myimagename'].src='coolerimage.gif'">My Link</a>
    Just name the images properly and away you go!
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


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 06:41 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com