Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Little Help with Rollover Images...

Status
Not open for further replies.

mpaone12

Technical User
Oct 15, 2000
13
US
Hello, I am a novice web-designer and I am looking to create a table that contains both buttons, as well as, a table cell for displaying information.

It will work like this, when the user does a mouse-over on one of the buttons, there will be a designated spot (cell) in the table that displays specific information about that button.

For example, it will look like this...
_______________
|button | button |
|______|________|
|button | button |
|______|________|
|button | infohere|
|______|________|

So that, whenever a mouseover occurs on a button, different additional information (in picture format) is displayed in the info box (cell). So basically, my question is, how can I make it so that the info box (cell) continues to update itself with a series of different pictures for each button on the mouseovers?

Thank you kindly in advance.
Any help greatly appreciated.

Mike Paone
mpaone@attbi.com
 
var path_to_pic = "var pic_name = new Array ('test1.jpg','test2.jpg');
var pic_history = 0;

function mouse_over_button() {
if (pic_history < pic_name.lenght) {
pic_history++;
} else {
pic_history = 0;
}
// change img src to pic_name(pic_history)
}

hope this help someone knowledge ends where
someone else knowledge starts
 
// change img src to pic_name(pic_history)

oups

// change img src to 'path_to_pic + pic_name(pic_history)' someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top