This commit is contained in:
timm 1998-05-01 10:28:13 +00:00
Родитель 7d07f70a61
Коммит 91a79e516c
5 изменённых файлов: 191 добавлений и 198 удалений

Просмотреть файл

@ -17,47 +17,10 @@
*/
<!-- to hide script contents from old browsers
var sizeArray = null;
var showArray = null;
var ispRadio = null;
var out = java.lang.System.out;
window.captureEvents( Event.MOUSEUP| Event.MOUSEDOWN| Event.MOUSEDRAG );
function go( msg )
{
netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );
if ( parent.parent.globals.document.vars.editMode.value != "yes" )
{
}
return true;
}
function checkData()
{
return true;
}
function loadData()
{
}
function saveData()
{
}
function savePositions()
{
sizeArray = new Array;
showArray = new Array;
allisp = document.layers[ "allisp" ];
for ( i = 0; i < allisp.layers.length; i++ )
{
sizeArray[ i ] = allisp.layers[ i ].document.height
showArray[ i ] = true;
}
}
//window.captureEvents( Event.MOUSEUP| Event.MOUSEDOWN| Event.MOUSEDRAG );
function tabIndex( tab )
{
@ -71,35 +34,94 @@ function tabIndex( tab )
return -1;
}
function toggleTab( tab )
function syncTabs()
{
allisp = document.layers[ "allisp" ];
if ( tab )
index = tabIndex( tab );
if ( index != -1 )
for ( i = 0; i < allisp.layers.length; i++ )
{
height = sizeArray[ index ];
if ( showArray[ index ] == true )
levelLayer = allisp.layers[ i ];
controls = levelLayer.layers[ "control" ];
showLayer = controls.layers[ "show" ];
hideLayer = controls.layers[ "hide" ];
displayLayer = levelLayer.layers[ "levelDisplay" ];
if ( hideLayer.visibility == "show" )
{
showArray[ index ] = false;
tab.clip.bottom = tab.clip.top + 54;
for ( i = index + 1; i < allisp.layers.length; i++ )
hideLayer.moveAbove( showLayer );
showLayer.visibility = "hide";
displayLayer.visibility = "show";
// displayLayer.moveAbove( hideLayer );
levelLayer.toggleState = true;
}
else if ( showLayer.visibility == "show" )
{
showLayer.moveAbove( hideLayer );
hideLayer.visibility = "hide";
displayLayer.visibility = "hide";
// displayLayer.moveBelow( hideLayer );
levelLayer.toggleState = false;
}
}
}
function toggleTab( tab )
{
out.println( "toggleTab" );
allisp = document.layers[ "allisp" ];
for ( i = tabIndex( tab ); i < allisp.layers.length; i++ )
{
levelLayer = allisp.layers[ i ];
displayLayer = levelLayer.layers[ "levelDisplay" ];
controls = levelLayer.layers[ "control" ];
showLayer = controls.layers[ "show" ];
hideLayer = controls.layers[ "hide" ];
out.println( "pageY: " + levelLayer.pageY );
if ( tab == levelLayer )
{
// toggleState == false is closed
if ( levelLayer.toggleState == false )
{
layerToMove = allisp.layers[ i ];
layerToMove.moveBy( 0, - ( height - 54 ) );
out.println( "OPENING" );
// open "tab"
showLayer.visibility = "hide";
hideLayer.visibility = "show";
hideLayer.moveAbove( showLayer );
levelLayer.toggleState = true;
moveBy = levelLayer.clip.height - controls.clip.height;
displayLayer.visibility = "show";
}
else
{
out.println( "CLOSING" );
// close "tab"
hideLayer.visibility = "hide";
showLayer.visibility = "show";
showLayer.moveAbove( hideLayer );
levelLayer.toggleState = false;
moveBy = -displayLayer.clip.height;
displayLayer.visibility = "hide";
}
}
else
{
showArray[ index ] = true;
for ( i = index + 1; i < allisp.layers.length; i++ )
{
layerToMove = allisp.layers[ i ];
layerToMove.moveBy( 0, ( height - 54 ) );
}
tab.clip.bottom = height;
}
levelLayer.moveBy( 0, moveBy );
}
levelLayer = allisp.layers[ allisp.layers.length - 1 ];
displayLayer = levelLayer.layers[ "levelDisplay" ];
controls = levelLayer.layers[ "control" ];
if ( levelLayer.toggleState == false )
{
displayLayer.visibility = "hide";
allisp.resizeBy( 0, -displayLayer.clip.height );
}
else
{
displayLayer.visibility = "show";
allisp.resizeBy( 0, displayLayer.clip.height );
}
}
@ -109,32 +131,30 @@ function toggle( tabName )
toggleTab( allisp.layers[ tabName ] );
}
function checkTab( x, y )
function radioClick( radioValue )
{
allisp = document.layers[ "allisp" ];
for ( var i = 0; i < allisp.layers.length; i++ )
if ( radioValue != ispRadio )
{
checkLayer = allisp.layers[ i ];
if ( ( x >= i.pageX ) && ( x <= ( i.pageX + 300 ) ) &&
( y >= i.pageY ) && ( y <= ( i.pageY + 16 ) ) )
return checkLayer;
allisp = document.layers[ "allisp" ];
for ( i = 0; i < allisp.layers.length; i++ )
{
levellayer = allisp.layers[ i ];
displaylayer = levellayer.layers[ "levelDisplay" ];
for ( j = 0; j < displaylayer.layers.length; j++ )
{
isplayer = displaylayer.layers[ j ];
buttonlayer = isplayer.layers[ "moreInfoButton" ];
form = buttonlayer.document.forms[ 0 ];
radio = form.elements[ 0 ];
if ( radio.value == radioValue )
radio.check == "1";
else
form.reset();
}
}
ispRadio = radioValue;
}
return false;
}
function checkClick( e )
{
possibleTab = checkTab( e.pageX, e.pageY );
if ( possibleTab )
toggleTab( possibleTab );
}
function donothing()
{
}
window.onmousedown = checkClick;
}
// end hiding contents from old browsers -->

Просмотреть файл

@ -18,80 +18,47 @@
<HTML>
<HEAD>
<TITLE>Account Setup</TITLE>
<SCRIPT LANGUAGE="JavaScript" ARCHIVE="asw.jar" SRC="compare.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="compare.js"></SCRIPT>
<LINK REL=STYLESHEET TYPE="text/JavaScript" ARCHIVE="asw.jar" HREF="sheet.js"></LINK>
</HEAD>
<BODY BACKGROUND="images/bg.gif" BGCOLOR="cccccc" onLoad="loadData()" ID="compare100">
<!-- The layer below contains the Account Setup identifier. -->
<ILAYER NAME="tagtext" LEFT=420 TOP=0 VISIBILITY=SHOW ID="compare101">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=200 ID="nospace">
<TR>
<TD HEIGHT=20 VALIGN=MIDDLE BACKGROUND="images/tag.gif">
<B CLASS="previewtag">ACCOUNT SETUP</B>
</TD>
</TR>
</TABLE>
</ILAYER>
<BODY BGCOLOR="FFFFFF" ID="compare100">
<!-- The layer below contains the headline and text of this screen -->
<P CLASS="title"><B>Compare Internet Service Providers</B></P>
<BR>
<LAYER NAME="allisp" LEFT=0 VISIBILITY="hide" ID="compare102">
<!--
<TABLE WIDTH="100%" >
<TR>
<TD><B><FONT SIZE=+2>Internet Service Providers</FONT></B></TD>
<TD WIDTH="30%" BACKGROUND="images/tag.gif">
<B>&nbsp;<NOBR>Internet Account Creation</NOBR></B>&nbsp;
</TD>
</TR>
</TABLE>
-->
<CENTER>
<TABLE WIDTH="100%">
<TR>
<TD COLSPAN="4">
<B>Provider Highlights:&nbsp;<IMG SRC="metadata/images/feature1.gif" BORDER=0 HEIGHT=16 WIDTH=16></B>
<B><FONT SIZE=-1>Free Account Time!&nbsp;</FONT></B>&nbsp;<IMG SRC="metadata/images/feature2.gif" HEIGHT=16 WIDTH=16>
<FONT SIZE=-1>Phone Bill Billing&nbsp;<IMG SRC="metadata/images/feature3.gif" HEIGHT=16 WIDTH=16></FONT>
<FONT SIZE=-1>Web Page Hosting</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
<FORM NAME="compare">
<LAYER NAME="allisp" LEFT=0 VISIBILITY="show" ID="compare102">
<ILAYER NAME="level1isp" LEFT=0>
<HR size=4>
<CENTER><P><A HREF="about:blank" onClick="toggle( 'level1isp' ); return false;" ID="compare103">Level 1</A></P></CENTER>
<P CLASS="body">
<ILAYER NAME="level1display" LEFT=0 VISIBILITY=SHOW>
<ILAYER LEFT=0 NAME="level1isp">
<LAYER NAME="control" HEIGHT=20>
<LAYER LEFT=200 NAME="hide"><P CLASS="compare">Level 1</P></LAYER>
<LAYER LEFT=200 NAME="show"></LAYER>
</LAYER>
<LAYER TOP=20 NAME="levelDisplay">
###level1###
</LAYER>
</P>
</LAYER>
</ILAYER>
<ILAYER NAME="level2isp" LEFT=0>
<CENTER><P><A HREF="about:blank" onClick="toggle( 'level2isp' ); return false;" ID="compare104">Level 2</A></CENTER></P>
<P CLASS="body">
<ILAYER NAME="level2display" LEFT=0 VISIBILITY=SHOW>
<ILAYER LEFT=0 NAME="level2isp">
<LAYER NAME="control" HEIGHT=20>
<LAYER LEFT=200 NAME="hide"><A HREF="about:blank" onClick="toggle( 'level2isp' ); return false;" ID="compare103"><P CLASS="compare">Hide Level 2</P></A></LAYER>
<LAYER LEFT=200 NAME="show"><A HREF="about:blank" onClick="toggle( 'level2isp' ); return false;" ID="compare104"><P CLASS="compare">Show Level 2</P></A></LAYER>
</LAYER>
<LAYER TOP=20 NAME="levelDisplay">
###level2###
</LAYER>
</P>
</LAYER>
</ILAYER>
</LAYER>
</FORM>
<SCRIPT LANGUAGE="JavaScript1.2" ID="compare105">
savePositions();
allisp.visible = "show";
document.allisp.visibility="show";
document.allisp.layers.level1isp.visibility="show";
document.allisp.layers.level1isp.layers.control.layers.hide.visibility="show";
document.allisp.layers.level2isp.visibility="show";
document.allisp.layers.level2isp.layers.control.layers.show.visibility="show";
syncTabs();
//toggleTab( null );
</SCRIPT>
</BODY>

Просмотреть файл

@ -14,58 +14,56 @@
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
-->
<LAYER NAME="@@@DisplayName@@@" LEFT=0 HEIGHT=0 WIDTH=400 VISIBILITY=SHOW>
<INPUT TYPE="radio" NAME="layer1" VALUE="@@@ISPName@@@">Where is the radio?
<!--
<LAYER NAME="moreinfobutton" LEFT=5 TOP=10 VISIBILITY=SHOW>
<A HREF="isp/@@@isp_dir@@@/html/sales.html"><IMG SRC="metadata/images/nexts_sml.gif" HEIGHT=15 WIDTH=15></A>
</LAYER>
<LAYER NAME="moreinfotext" LEFT=0 TOP=30 WIDTH=30 VISIBILITY=SHOW>
<CENTER><B><FONT SIZE=-2><A HREF="isp/@@@isp_dir@@@/html/sales.html">More Info</A></FONT></B></CENTER>
</LAYER>
-->
<ILAYER NAME="@@@DisplayName@@@" HEIGHT=80 WIDTH=600>
<LAYER NAME="moreInfoButton" LEFT=20 TOP=10>
<FORM NAME="@@@ISPName@@@">
<INPUT TYPE="radio" NAME="@@@ISPName@@@" VALUE="@@@ISPName@@@"
onClick="radioClick('@@@ISPName@@@');" ID="level1001" BGCOLOR="FFD7000">
</FORM>
</LAYER>
<LAYER NAME="ispname" LEFT=60 TOP=12 VISIBILITY=SHOW>
<B><FONT SIZE=+1>@@@DisplayName@@@</FONT></B>
<LAYER NAME="ispname" LEFT=60 TOP=12>
<P CLASS="comparebig"><B>@@@DisplayName@@@</B></P>
</LAYER>
<LAYER NAME="feature1" LEFT=300 TOP=10 VISIBILITY=@@@feature1@@@>
<IMG SRC="metadata/images/feature1.gif" HEIGHT=16 WIDTH=16>&nbsp;
<LAYER NAME="feature1" LEFT=300 TOP=10 VISIBILITY="@@@feature1@@@">
<IMG SRC="metadata/images/feature1.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature2" LEFT=320 TOP=10 VISIBILITY=@@@feature2@@@>
<LAYER NAME="feature2" LEFT=320 TOP=10 VISIBILITY="@@@feature2@@@">
<IMG SRC="metadata/images/feature2.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature3" LEFT=340 TOP=10 VISIBILITY=@@@feature3@@@>
<LAYER NAME="feature3" LEFT=340 TOP=10 VISIBILITY="@@@feature3@@@">
<IMG SRC="metadata/images/feature3.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature4" LEFT=360 TOP=10 VISIBILITY=@@@feature4@@@>
<LAYER NAME="feature4" LEFT=360 TOP=10 VISIBILITY="@@@feature4@@@">
<IMG SRC="metadata/images/feature4.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature5" LEFT=380 TOP=10 VISIBILITY=@@@feature5@@@>
<LAYER NAME="feature5" LEFT=380 TOP=10 VISIBILITY="@@@feature5@@@">
<IMG SRC="metadata/images/feature5.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature6" LEFT=400 TOP=10 VISIBILITY=@@@feature6@@@>
<LAYER NAME="feature6" LEFT=400 TOP=10 VISIBILITY="@@@feature6@@@">
<IMG SRC="metadata/images/feature6.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature7" LEFT=420 TOP=10 VISIBILITY=@@@feature7@@@>
<LAYER NAME="feature7" LEFT=420 TOP=10 VISIBILITY="@@@feature7@@@">
<IMG SRC="metadata/images/feature7.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature8" LEFT=440 TOP=10 VISIBILITY=@@@feature8@@@>
<LAYER NAME="feature8" LEFT=440 TOP=10 VISIBILITY="@@@feature8@@@">
<IMG SRC="metadata/images/feature8.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="isplogo" LEFT=460 TOP=30 VISBILITY=SHOW>
<IMG SRC="isp/@@@isp_dir@@@/image/logo.gif" HEIGHT=50 WIDTH=82>
<LAYER NAME="isplogo" LEFT=500 TOP=30>
<IMG SRC="isp/@@@isp_dir@@@/image/logo.gif" HEIGHT=50 WIDTH=82 BGCOLOR="FFD7000">
</LAYER>
<LAYER NAME="descriptivetext" LEFT=60 TOP=40 VISIBILITY=SHOW>
<FONT SIZE=-1>@@@ISPDescriptionLine1@@@</FONT>&nbsp;<BR>
<FONT SIZE=-1>@@@ISPDescriptionLine2@@@</FONT>&nbsp;<BR>
<FONT SIZE=-1>@@@ISPDescriptionLine3@@@</FONT>&nbsp;
<LAYER NAME="descriptivetext" LEFT=60 TOP=35>
<P CLASS="compare">
@@@ISPDescriptionLine1@@@&nbsp;<BR>
@@@ISPDescriptionLine2@@@&nbsp;<BR>
@@@ISPDescriptionLine3@@@&nbsp;<BR>
<BR>
</P>
</LAYER>
</LAYER>
</ILAYER>

Просмотреть файл

@ -15,49 +15,54 @@
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
-->
<LAYER NAME="@@@DisplayName@@@" LEFT=0 HEIGHT=0 WIDTH=400 VISIBILITY=SHOW>
<LAYER NAME="moreinfobutton" LEFT=5 TOP=10 VISIBILITY=SHOW>
<A HREF="isp/@@@isp_dir@@@/html/sales.html"><IMG SRC="metadata/images/nexts_sml.gif" HEIGHT=15 WIDTH=15></A>
<ILAYER NAME="@@@DisplayName@@@" HEIGHT=80 WIDTH=600>
<LAYER NAME="moreInfoButton" LEFT=20 TOP=10>
<FORM NAME="radio">
<INPUT TYPE="radio" NAME="radio" VALUE="@@@ISPName@@@"
onClick="radioClick('@@@ISPName@@@');" ID="level2002">
</FORM>
</LAYER>
<LAYER NAME="moreinfotext" LEFT=0 TOP=30 WIDTH=30 VISIBILITY=SHOW>
<CENTER><FONT SIZE=-2><A HREF="isp/@@@isp_dir@@@/html/sales.html">More Info</A></FONT></CENTER>
</LAYER>
<LAYER NAME="ispname" LEFT=60 TOP=12 VISIBILITY=SHOW>
@@@ISP_DISPLAY_NAME@@@
<LAYER NAME="ispname" LEFT=60 TOP=12>
<P CLASS="compare">@@@DisplayName@@@</P>
</LAYER>
<LAYER NAME="feature1" LEFT=320 TOP=10 VISIBILITY=@@@feature1@@@>
<IMG SRC="metadata/images/feature1.gif" HEIGHT=16 WIDTH=16>&nbsp;
<LAYER NAME="feature1" LEFT=300 TOP=10 VISIBILITY="@@@feature1@@@">
<IMG SRC="metadata/images/feature1.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature2" LEFT=340 TOP=10 VISIBILITY=@@@feature2@@@>
<LAYER NAME="feature2" LEFT=320 TOP=10 VISIBILITY="@@@feature2@@@">
<IMG SRC="metadata/images/feature2.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature3" LEFT=360 TOP=10 VISIBILITY=@@@feature3@@@>
<LAYER NAME="feature3" LEFT=340 TOP=10 VISIBILITY="@@@feature3@@@">
<IMG SRC="metadata/images/feature3.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature4" LEFT=380 TOP=10 VISIBILITY=@@@feature4@@@>
<LAYER NAME="feature4" LEFT=360 TOP=10 VISIBILITY="@@@feature4@@@">
<IMG SRC="metadata/images/feature4.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature5" LEFT=400 TOP=10 VISIBILITY=@@@feature5@@@>
<LAYER NAME="feature5" LEFT=380 TOP=10 VISIBILITY="@@@feature5@@@">
<IMG SRC="metadata/images/feature5.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature6" LEFT=420 TOP=10 VISIBILITY=@@@feature6@@@>
<LAYER NAME="feature6" LEFT=400 TOP=10 VISIBILITY="@@@feature6@@@">
<IMG SRC="metadata/images/feature6.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature7" LEFT=440 TOP=10 VISIBILITY=@@@feature7@@@>
<LAYER NAME="feature7" LEFT=420 TOP=10 VISIBILITY="@@@feature7@@@">
<IMG SRC="metadata/images/feature7.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="feature8" LEFT=460 TOP=10 VISIBILITY=@@@feature8@@@>
<LAYER NAME="feature8" LEFT=440 TOP=10 VISIBILITY="@@@feature8@@@">
<IMG SRC="metadata/images/feature8.gif" HEIGHT=16 WIDTH=16>
</LAYER>
<LAYER NAME="isplogo" LEFT=540 TOP=30 VISBILITY=SHOW>
<LAYER NAME="isplogo" LEFT=500 TOP=15>
<IMG SRC="isp/@@@isp_dir@@@/image/logo.gif" HEIGHT=50 WIDTH=82>
</LAYER>
<LAYER NAME="descriptivetext" LEFT=60 TOP=40 VISIBILITY=SHOW>
<FONT SIZE=-2>@@@ISPDescriptionLine1@@@</FONT>&nbsp;<BR>
<FONT SIZE=-2>@@@ISPDescriptionLine2@@@</FONT>&nbsp;<BR>
<FONT SIZE=-2>@@@ISPDescriptionLine3@@@</FONT>&nbsp;
<LAYER NAME="descriptivetext" LEFT=60 TOP=35>
<P CLASS="comparesmall">
@@@ISPDescriptionLine1@@@&nbsp;<BR>
@@@ISPDescriptionLine2@@@&nbsp;<BR>
@@@ISPDescriptionLine3@@@&nbsp;<BR>
<BR>
</P>
</LAYER>
</LAYER>
</ILAYER>

Просмотреть файл

@ -17,9 +17,12 @@ DEPTH=..\..\..\..\..
JAVA_DESTPATH=$(DEPTH)\dist\classes
PACKAGE=netscape\asw
SIGNDIR=$(DEPTH)\cmd\dialup\as_html\signed
!include <$(DEPTH)\config\rules.mak>
export::
copy compare.tmpl ..\..\compare.htm
copy compare.js ..\..\.
# copy compare.tmpl $(DEPTH)\cmd\dialup\as_html\compare.htm
# copy level1.tmpl $(SIGNDIR)\level1.htm
# copy level2.tmpl $(SIGNDIR)\level2.htm
copy compare.js $(DEPTH)\cmd\dialup\as_html\.