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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAVA support problem. 1

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Hello,
my server doesnt support Java and i wanted to put up the following page, (if you load it you will get a blank screen but if you edit you will see the source) or see it below. is there any way i can get the spotlight effect without using java ? or can i stick the java on another server and somehow link it through ?





<!DOCTYPE HTML PUBLIC &quot;-//WC3//DTD HTML 4.0//EN&quot;>

<HTML>

<HEAD>

<META NAME=&quot;generator&quot; CONTENT=&quot;Web Studio, Version 2.0 for Windows&quot;>
<META NAME=&quot;creation-date&quot; CONTENT=&quot;Sat, 08 Nov, 2003 14:48:46 GMT&quot;>
<META NAME=&quot;author&quot; CONTENT=&quot;5YLAC Films&quot;>
<META NAME=&quot;description&quot; CONTENT=&quot;Tempoary site for 5YLAC Film Mortus Illumina&quot;>
<META NAME=&quot;keywords&quot; CONTENT=&quot;British Horror. Nuns. Independant Film making&quot;>

<TITLE>Index</TITLE>

<STYLE TYPE=&quot;text/css&quot;>
<!--
.parastyle0 {text-align:left;margin-left:0px;text-indent:0px;font-family:Garamond,serif;font-weight:bold;font-style:normal;font-size:64px;text-decoration:none;color:red;height:72px;}
.parastyle1 {text-align:left;margin-left:0px;text-indent:0px;font-family:Garamond,serif;font-weight:normal;font-style:italic;font-size:19px;text-decoration:none;color:white;height:252px;}
.parastyle2 {text-align:left;margin-left:0px;text-indent:0px;font-family:Garamond,serif;font-weight:normal;font-style:italic;font-size:19px;text-decoration:none;color:white;height:0px;}
.parastyle3 {text-align:left;margin-left:0px;text-indent:0px;font-family:Garamond,serif;font-weight:normal;font-style:normal;font-size:64px;text-decoration:none;color:red;height:72px;}
.parastyle4 {text-align:left;margin-left:0px;text-indent:0px;font-family:Arial Black,sans-serif;font-weight:normal;font-style:normal;font-size:13px;text-decoration:none;color:white;height:18px;}
.parastyle5 {text-align:left;margin-left:0px;text-indent:0px;font-family:Garamond,serif;font-weight:normal;font-style:normal;font-size:19px;text-decoration:underline;color:white;height:21px;}
-->
</STYLE>
<style>
<!--

#myimage{
filter:light
}

</style>

</HEAD>

<BODY BGCOLOR=&quot;black&quot; LINK=&quot;aqua&quot; VLINK=&quot;white&quot;>

<DIV ID=&quot;SGROBJ7D3B68ED1A01&quot; STYLE=&quot;position:absolute; top:102px; left:358px; width:238px; height:341px; z-index:0;&quot;>
<IMG SRC=&quot;Index/IMAG0000.JPG&quot; WIDTH=238 HEIGHT=341 BORDER=0>
</DIV>

<DIV ID=&quot;SGROBJ7D3B68EE2E2301&quot; STYLE=&quot;position:absolute; top:418px; left:159px; width:144px; height:73px; z-index:1;&quot;>
<IMG SRC=&quot;Index/IMAG0001.JPG&quot; WIDTH=144 HEIGHT=73 BORDER=0>
</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E10281A41&quot; STYLE=&quot;position:absolute; top:46px; left:159px; width:636px; height:73px; z-index:2;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=636>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle0&quot;>
MORTUS ILLUMINA<BR>
</DIV>
</TD>
</TR>

</TABLE>

</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E13F1721&quot; STYLE=&quot;position:absolute; top:137px; left:159px; width:182px; height:253px; z-index:3;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=182>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle1&quot;>
A Faustian puppeteer tales<BR>
the story of Mary, a Girl<BR>
who sells her soul for Five<BR>
years worth of Happiness<BR>
but when it comes to pay<BR>
takes refuge in a convent<BR>
unaware that her soul holds<BR>
the key to the destruction or<BR>
survival of the Deadlights<BR>
realm, a world that exists<BR>
between this and the<BR>
next........<BR>
</DIV>
<DIV CLASS=&quot;parastyle2&quot;>
<BR>
</DIV>
</TD>
</TR>

</TABLE>

</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E10281A41&quot; STYLE=&quot;position:absolute; top:418px; left:449px; width:672px; height:73px; z-index:4;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=672>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle3&quot;>
Summer 2004<BR>
</DIV>
</TD>
</TR>

</TABLE>

</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E192017C1&quot; STYLE=&quot;position:absolute; top:18px; left:401px; width:200px; height:19px; z-index:5;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=200>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle4&quot;>
5YLAC FILMS PRESENTS....<BR>
</DIV>
</TD>
</TR>

</TABLE>

</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E1A2012C1&quot; STYLE=&quot;position:absolute; top:135px; left:595px; width:200px; height:22px; z-index:6;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=200>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle5&quot;>
<A HREF=&quot; Production Photos<BR>
</A>
</DIV>
</TD>
</TR>

</TABLE>

</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E1A2630C1&quot; STYLE=&quot;position:absolute; top:162px; left:595px; width:200px; height:22px; z-index:7;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=200>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle5&quot;>
<A HREF=&quot; Production Journal<BR>
</A>
</DIV>
</TD>
</TR>

</TABLE>

</DIV>


<DIV ID=&quot;TXTOBJ7D3B68E2A3A2F82&quot; STYLE=&quot;position:absolute; top:189px; left:595px; width:200px; height:22px; z-index:9;&quot;>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=200>

<TR>
<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot;>
<DIV CLASS=&quot;parastyle5&quot;>
<A HREF=&quot; Guestbook<BR>
</A>
</DIV>
</TD>
</TR>

</TABLE>
</DIV>

<DIV ID=&quot;TXTOBJ7D3B68E2A3A2F82&quot; STYLE=&quot;position:absolute; top:460px; left:150px&quot;>
<img id=&quot;myimage&quot; src=&quot;Index/IMAG0002.GIF&quot;>

<script language=&quot;JavaScript1.2&quot;>

//Image spotlight effect- By Erik F (die_schlampe@hotmail.com)
//Code enhancements by Dynamicdrive.com
//Visit for this script

s = 30; // the size of the spotlight
vp = 0; // the visibility percent of the picture
startx = 310; // the top position of your sportlight into the image (on start)
starty = 40; // the left position of your spotlight into the image (on start)


//////////////////////////////////////////////////////////////////
// No need to edit below this line //
//////////////////////////////////////////////////////////////////

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=&quot;hand&quot;;
myimage.filters.light.addAmbient(255,255,255,vp)
myimage.filters.light.addPoint(startx,starty,s,255,255,255,255)
}

</script>
</DIV>


</BODY>


</HTML>

<script><!--
function SiteStats_3219(){
var t=new Date();
var u='var I=new Image(1,1); I.src=u;
}
SiteStats_3219();
//--></script><noscript><img src= width=1 height=1></noscript>



Filmmaker, gentleman and proffesional drinker



 
&quot;my server doesnt support Java...&quot;

The code you posted is in javascript. JS has nothing to do with Java - just a case of marketing people latching onto the then passing bandwagon.

Furthermore, beit java or javascript, a moving spotlight thingy runs on the client, not the server, so it's irrelevant what your server supports.

Your problem is actually in this bit of code near the top:
[tt]
<style>
<!--

#myimage{
filter:light
}

</style>
[/tt]
The line highlighted in bold opens a comment which is not subsequently closed, so the whole page content is ignored (as it's a comment). Just put in a [tt]-->[/tt] on the line before [tt]</style>[/tt] and it should work OK.

-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top