Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Web page image question

  • 16-04-2004 09:27AM
    #1
    Registered Users, Registered Users 2 Posts: 2,185 ✭✭✭


    hi guys,

    i need help with something i'm planning to do with a web page....basically i've got an image (a country map) and i want to display another image based on the county the user is hovering over..this image should change if they move to another county etc...

    does anyone have any ideas how to do this or are there any examples you could direct me to on the web....

    cheers..


Comments

  • Closed Accounts Posts: 9,698 ✭✭✭tricky D


    do you want to change the same image or a seperate one?

    take a look at http://www.chogm97.org/
    the script there does both:
    document.images[num+1].src = over[num].src;
    changes the same image
    document.images[10].src = over1[num].src;
    changes the seperate one on the right

    you might have to do some experimenting or you can find a few tutorials on this and other methods by googling for something like javavscript image swap


    hth
    \r


  • Registered Users, Registered Users 2 Posts: 2,185 ✭✭✭jobless


    cheers tricky....

    thats exactly what i wanted...is there any issues with me just copying the code from the website?...or could i get in trouble for plaguerism


  • Closed Accounts Posts: 9,698 ✭✭✭tricky D


    no probs, tis mine originally :cool:

    \r


Advertisement