Jump to content

Hovering to get a rollover occur elsewhere

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Hovering to get a rollover occur elsewhere Rate Topic: -----

#1 User is offline   darthclimo 

  • W.R. Private
  • Group: Members
  • Posts: 6
  • Joined: 12-January 09

Posted 12 January 2009 - 10:17 PM

I have a fair to good knowledge of HTML and CSS, enough to put sites together, but I'm having trouble with a certain effect regarding my online portfolio, a work in progress. I have an image with five buttons below it labeled one to five. When I hover the mouse over each button I would like the image to change (five different images), but for the life of me I can't work it out so I'm assuming this is something that can be done in JavaScript, a language I have just started learning.

I wonder if any of you could provide the code I am seeking or at the very least point me in the right direction. I must warn you, I am a true noob with regards to JavaScript so please go easy on me. Any help would be very beneficial and well received. I hope I have explained myself adequately enough; if not, please let me know.

Thank you.

This post has been edited by darthclimo: 12 January 2009 - 10:17 PM

0

#2 User is offline   Catalyst 

  • Codesmith
  • Group: Administrators
  • Posts: 1,049
  • Joined: 04-April 06
  • Gender:Male
  • Location:San Diego

Posted 13 January 2009 - 01:25 PM

Do you want to do this with raw javascript or with a javascript library like jQuery?
0

#3 User is offline   darthclimo 

  • W.R. Private
  • Group: Members
  • Posts: 6
  • Joined: 12-January 09

Posted 14 January 2009 - 10:31 AM

View PostCatalyst, on Jan 13 2009, 02:25 PM, said:

Do you want to do this with raw javascript or with a javascript library like jQuery?


Raw Javascript would be fine, mate, thanks for responding.
0

#4 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 19 January 2009 - 01:56 PM

You can just use pure CSS to do that: http://meyerweb.com/...pups/demo2.html
0

#5 User is offline   Catalyst 

  • Codesmith
  • Group: Administrators
  • Posts: 1,049
  • Joined: 04-April 06
  • Gender:Male
  • Location:San Diego

Posted 20 January 2009 - 02:27 PM

Just CSS won't work in this case because several items need to modify the same image.
0

#6 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 20 January 2009 - 03:31 PM

That Eric Meyers thing should work.. it looks like exactly what he's describing, if I'm understanding it right, of course.

I used that same CSS on my old portfolio site and it worked really well.
0

#7 User is offline   darthclimo 

  • W.R. Private
  • Group: Members
  • Posts: 6
  • Joined: 12-January 09

Posted 20 January 2009 - 06:47 PM

View Postjameson, on Jan 19 2009, 01:56 PM, said:

You can just use pure CSS to do that: http://meyerweb.com/...pups/demo2.html


This is exactly what I am looking for. I shall give it a whirl either tonight or tomorrow so I can get this post closed down. Thanks man, it's appreciated.
0

#8 User is offline   Catalyst 

  • Codesmith
  • Group: Administrators
  • Posts: 1,049
  • Joined: 04-April 06
  • Gender:Male
  • Location:San Diego

Posted 21 January 2009 - 12:56 AM

Serves me right for not looking at the link fully :P
0

#9 User is offline   darthclimo 

  • W.R. Private
  • Group: Members
  • Posts: 6
  • Joined: 12-January 09

Posted 04 February 2009 - 11:28 AM

Okay so I still have not quite got the answer I am looking for but I did find this link to the perfect example of what I am trying to achieve in my portfolio:

http://www.google.co...tude/intro.html

On the left hand side of the page is a large-ish box with four smaller boxes below it. When you hover over each of the small boxes, the image in the main box changes. This is exacly the effect I am aiming to emulate. This may not even be done using JavaScript, which is fine by me so long as I can finally work out how to do this.

I look forward to your responses and thank you in anticipation.
0

#10 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 04 February 2009 - 11:50 AM

Yep - Google does use JavaScript for that effect. The CSS solution I gave you would come close to that, except that the images wouldn't stay there once you move the mouse away. Is that the difference you're talking about?
0

#11 User is offline   darthclimo 

  • W.R. Private
  • Group: Members
  • Posts: 6
  • Joined: 12-January 09

Posted 04 February 2009 - 02:46 PM

View Postjameson, on Feb 4 2009, 11:50 AM, said:

Yep - Google does use JavaScript for that effect. The CSS solution I gave you would come close to that, except that the images wouldn't stay there once you move the mouse away. Is that the difference you're talking about?


Yes it is good sir, I definitely would need the images to stay there once the mouse is moved away. I think you understand perfectly what I am looking for now and hopefully you can put an end to this crusade once and for all.

Many thanks.
0

#12 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 04 February 2009 - 03:10 PM

Something like this should do the trick - http://www.dynamicdr.../thumbnail2.htm
0

#13 User is offline   darthclimo 

  • W.R. Private
  • Group: Members
  • Posts: 6
  • Joined: 12-January 09

Posted 05 February 2009 - 09:55 AM

Wow, it seems like an awful lot of code to do something so seemingly simple! Regardless, this is exactly what I am looking for so all that is left for me to do is to thank you for your willingness to help. So thank you.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users