PDA

View Full Version : mouseover to show images in diffrent frame...


jaeman
08-05-2003, 12:30 PM
I haven't found an answer to this anywhere & i mean anywhere..

So what i'm talkin bout is e.g: two frames[cols] in the left col' is some site links, in the right col' is info & a image that changes with each links mouseover[left col'], i know how to do this in tables but only with text in the right col' , so if you know how in tables feel free to give us the lowdown, cheers jaeman...

Vincent Puglia
08-05-2003, 06:39 PM
Hi,

you could implement it in dHTML. put a div within one of your table cells, and onmouseover='changeImg(someNum)'

function changeImg(ndx)
{
switch (ndx)
{
case 1:
imgSrc = 'somepic1.gif'
break;
case 2:
imgSrc = 'somepic2.gif'
break;
}
var divObj = document.getElementById('myDiv');
divObj.innerHTML = "<img src = " + imgSrc + ">"
}

see the dHTML scripts/tutorials at my site (GrassBlade) for more info.

Vinny