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

asp in java

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can't get the asp linking to show on the page. not the first one but the one in the java script?
<html>
<head>
<title>main >test</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
<!--
function MM_initTimelines() {
//MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
var ns = navigator.appName == &quot;Netscape&quot;;
document.MM_Time = new Array(1);
document.MM_Time[0] = new Array(1);
document.MM_Time[&quot;Timeline1&quot;] = document.MM_Time[0];
document.MM_Time[0].MM_Name = &quot;Timeline1&quot;;
document.MM_Time[0].fps = 15;
document.MM_Time[0][0] = new String(&quot;behavior&quot;);
document.MM_Time[0][0].frame = 1;
document.MM_Time[0][0].value = &quot;MM_timelineGoto('Timeline1','1')&quot;;
document.MM_Time[0].lastFrame = 1;
for (i=0; i<document.MM_Time.length; i++) {
document.MM_Time.ID = null;
document.MM_Time.curFrame = 0;
document.MM_Time.delay = 1000/document.MM_Time.fps;
}
}
//-->
</script>
<script language=&quot;JavaScript&quot;>
<!--
function MM_timelineGoto(tmLnName, fNew, numGotos) {

var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (numGotos != null)
if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
jmpFwd = (fNew > tmLn.curFrame);
for (i = 0; i < tmLn.length; i++) {
sprite = (jmpFwd)? tmLn : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
if (sprite.charAt(0) == &quot;s&quot;) {
numKeyFr = sprite.keyFrames.length;
firstKeyFr = sprite.keyFrames[0];
lastKeyFr = sprite.keyFrames[numKeyFr - 1];
if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
if (sprite.obj != null) {
if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
else sprite.obj[props.prop2][props.prop] = props[propNum];
} } } }
tmLn.curFrame = fNew;
if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}
//-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot;>
<table border=&quot;0&quot; width=&quot;90&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td height=&quot;27&quot; valign=&quot;bottom&quot;>
<div align=&quot;left&quot;> <a href=&quot; target=&quot;_top&quot;><img src=&quot;../images/j/vicamtext.gif&quot; width=&quot;56&quot; height=&quot;9&quot; border=&quot;0&quot;></a></div>
</td>
</tr>
<tr>
<td height=&quot;25&quot;><font size=&quot;1&quot;><b><font size=&quot;1&quot;><font size=&quot;2&quot; color=&quot;#000000&quot;><font face=&quot;Arial&quot;><% produkt = 7020013938%></font></font><font color=&quot;#000000&quot; face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><!--#INCLUDE FILE=&quot;auto/pris.asp&quot; --></font></font></b></font>
</td>
</tr>
<tr>
<td height=&quot;17&quot; valign=&quot;bottom&quot;>
<div align=&quot;left&quot;> <font size=&quot;2&quot;><a href=&quot; target=&quot;_top&quot;><font color=&quot;#FF0000&quot;><b><font face=&quot;Arial&quot;>Click
to Order</font></b></font></a></font></div>
</td>
</tr>
</table>
<p>
<script>
<!--//
gfxmon=&quot;main/r1.gif&quot;;
lnkmon=&quot;altmon=&quot;Coolpix digital camera&quot;;
gfxtue=&quot;main/r3.gif&quot;;
lnktue=&quot;alttue=&quot;clik! reader&quot;;
gfxwed=&quot;main/r1.gif&quot;;
lnkwed=&quot;altwed=&quot;BJC 6000&quot;;
gfxthu=&quot;main/r1.gif&quot;;
lnkthu=&quot;altthu=&quot;BJC 6000&quot;;
gfxfri=&quot;main/r1.gif&quot;;
lnkfri=&quot;altfri=&quot;BJC 6000&quot;;
gfxsat=&quot;main/r1.gif&quot;;
lnksat=&quot;altsat=&quot;BJC 6000&quot;;
gfxsun=&quot;main/r1.gif&quot;;
lnksun=&quot;altsun=&quot;BJC 6000&quot;;
mydate=new Date()
today=mydate.getDay()
if (today==1)
document.write('#INCLUDE FILE=&quot;auto/pris.asp&quot;')
else if (today==2)
document.write('#INCLUDE FILE=&quot;auto/pris.asp&quot;')
else if (today==3)
document.write('#INCLUDE FILE=&quot;auto/pris.asp&quot;')
else if (today==4)
document.write('#INCLUDE FILE=&quot;auto/pris.asp&quot;')
else if (today==5)
document.write('#INCLUDE FILE=&quot;auto/pris.asp&quot;')
else if (today==6)
document.write('#INCLUDE FILE=&quot;auto/pris.asp&quot; ')
else
document.write('')
document.close('')
//--></script>

</p>
</body>
</html>
 
haskins,
The problem is that you're trying to write server side code from the client. Also, #includes are processed before the ASP code (on the server). It's not possible to have conditional #includes. [sig]<p>nick bulka<br><a href=mailto: > </a><br><a href= </a><br>Get your technical books at Bulka's Books<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top