Hi
I have a design for a website that I'm working on, that has a side menu bar. In this bar, there are a number of links to different parts of the site. I currently have a OnMouseOver on each of them, that runs a piece of JavaScript to swap an image to be a GIF that describes further that website. OnMouseOff returns the GIF displayed to the standard site logo. The JavaScript goes a bit like this...
SEPERATE .JS file.....
***************************************
var staff = new Image();
var clubs = new Image();
staff.src = "logos/staff.gif";
clubs.src = "logos/clubs.gif";
function logoSwap(picimage)
{
eval("document['logospace'].src = " + picimage + ".src"
;
}
***************************************
This works fine. What I'd like to do is to add some VERY simple transition effect from image to image. I have no idea if this is possible with JavaScript. All I'd want is some sort of effect so the image change can happen smoothly. The logo is circular, so a type of BOX IN or BOX OUT like in Powerpoint would be great, but any ideas on how to achieve some sort of effect using JavaScript would be greatly appreciated.
The type of JS file I printed a bit out of above is basically the limits of my Java skills at present.
Kindest regards,
David.
I have a design for a website that I'm working on, that has a side menu bar. In this bar, there are a number of links to different parts of the site. I currently have a OnMouseOver on each of them, that runs a piece of JavaScript to swap an image to be a GIF that describes further that website. OnMouseOff returns the GIF displayed to the standard site logo. The JavaScript goes a bit like this...
SEPERATE .JS file.....
***************************************
var staff = new Image();
var clubs = new Image();
staff.src = "logos/staff.gif";
clubs.src = "logos/clubs.gif";
function logoSwap(picimage)
{
eval("document['logospace'].src = " + picimage + ".src"
}
***************************************
This works fine. What I'd like to do is to add some VERY simple transition effect from image to image. I have no idea if this is possible with JavaScript. All I'd want is some sort of effect so the image change can happen smoothly. The logo is circular, so a type of BOX IN or BOX OUT like in Powerpoint would be great, but any ideas on how to achieve some sort of effect using JavaScript would be greatly appreciated.
The type of JS file I printed a bit out of above is basically the limits of my Java skills at present.
Kindest regards,
David.