Code:
#### header #####
<style>
<!--
#myimage{
filter:light
}
-->
</style>
##### body ######
<img id="myimage" src="theimage.jpg">
<script language="JavaScript1.2">
s = 50;
vp = 10;
startx = 0;
starty = 0;
var IE = document.all?true:false
function moveL()
{
xv = tempX;
yv = tempY;
myimage.filters.light.MoveLight(1,xv,yv,s,true);
}
if (IE&&myimage.filters)
document.all.myimage.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
function getMouseXY(e) {
tempX = event.offsetX
tempY = event.offsetY
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
moveL();
}
return true
}
var xv = startx;
var yv = starty;
var t= true;
if (IE&&myimage.filters){
myimage.style.cursor="hand";
myimage.filters.light.addAmbient(255,255,255,vp)
myimage.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
</script>
My code for the header.
Code:
<script language="JavaScript1.2">
s = 50;
vp = 10;
startx = 0;
starty = 0;
var IE = document.all?true:false
function movea()
{
xv = tempX;
yv = tempY;
TheCourteeners.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function moveb()
{
xv = tempX;
yv = tempY;
JamieT.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function movec()
{
xv = tempX;
yv = tempY;
MarinaTheDiamonds.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function moved()
{
xv = tempX;
yv = tempY;
MysteryJets.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function movee()
{
xv = tempX;
yv = tempY;
TheSmiths.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function movef()
{
xv = tempX;
yv = tempY;
TheSpecials.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function moveg()
{
xv = tempX;
yv = tempY;
TheCribs.filters.light.MoveLight(1,xv,yv,s,true);
}
var IE = document.all?true:false
function moveh()
{
xv = tempX;
yv = tempY;
FlorenceTheMachine.filters.light.MoveLight(1,xv,yv,s,true);
}
if (IE&&TheCourteeners.filters)
document.all.TheCourteeners.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&TheCribs.filters)
document.all.TheCribs.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&TheSpecials.filters)
document.all.TheSpecials.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&TheSmiths.filters)
document.all.MysteryJets.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&MarinaTheDiamonds.filters)
document.all.MarinaTheDiamonds.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&JamieT.filters)
document.all.JamieT.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&FlorenceTheMachine.filters)
document.all.FlorenceTheMachine.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
if (IE&&TheSmiths.filters)
document.all.TheSmiths.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
function getMouseXY(e) {
tempX = event.offsetX
tempY = event.offsetY
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
movea();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
moveb();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
movec();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
moved();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
movee();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
movef();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
moveg();
)
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
moveh();
}
return true
}
var xv = startx;
var yv = starty;
var t= true;
if (IE&&TheCourteeners.filters){
TheCourteeners.style.cursor="hand";
TheCourteeners.filters.light.addAmbient(255,255,255,vp)
TheCourteeners.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&FlorenceTheMachine.filters){
FlorenceTheMachine.style.cursor="hand";
FlorenceTheMachine.filters.light.addAmbient(255,255,255,vp)
FlorenceTheMachine.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&JamieT.filters){
JamieT.style.cursor="hand";
JamieT.filters.light.addAmbient(255,255,255,vp)
JamieT.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&MarinaTheDiamonds.filters){
MarinaTheDiamonds.style.cursor="hand";
MarinaTheDiamonds.filters.light.addAmbient(255,255,255,vp)
MarinaTheDiamonds.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&MysteryJets.filters){
MysteryJets.style.cursor="hand";
MysteryJets.filters.light.addAmbient(255,255,255,vp)
MysteryJets.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&TheSmiths.filters){
TheSmiths.style.cursor="hand";
TheSmiths.filters.light.addAmbient(255,255,255,vp)
TheSmiths.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&TheCribs.filters){
TheCribs.style.cursor="hand";
TheCribs.filters.light.addAmbient(255,255,255,vp)
TheCribs.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
if (IE&&TheSpecials.filters){
TheSpecials.style.cursor="hand";
TheSpecials.filters.light.addAmbient(255,255,255,vp)
TheSpecials.filters.light.addPoint(startx,starty,s,255,255,255,255)
}
</script>
Now where it says "movea, moveb" etc. before it was moveL and that made everything highlight when you went over the one image.
Bookmarks