コメント |
↓サンプル実行ページ
http://lightbox.on.coocan.jp/php/tree/sample.php
↓コンバート元の ASP パッケージ
http://lightbox.on.coocan.jp/download/make_tree_for_asp.lzh
http://asp2php.naken.cc/download.php
を利用してまず、tree.inc をコンバート
@DIV
asp2php.exe -php5 -includes tree.inc
@END
そのままでは使え無いので変更
その後、sample.asp をコンバートして使え無い部分を変更
以下のコードで実行
@DIV
<? require("tree.php"); ?>
<HTML>
<HEAD>
<META http-equiv="Content-type" content="text/html; charset=Shift_JIS">
<TITLE>HTML テンプレート</TITLE>
<STYLE type="text/css">
* {
font-family: "MS Pゴシック";
font-size: 12px;
}
BODY {
background-color: white;
color: black;
}
</STYLE>
<SCRIPT language="javascript" type="text/javascript">
<?
InitializeTreeEnv();
SetImageUrl("image");
SetControlJs();
?>
</SCRIPT>
<HEAD>
<?
$Tree = "";
$Tree .= StartNode( "#", "ルートノード", "_self" );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", True );
$Tree .= EndNode( );
$Tree .= StartNode( "#", "ルートノード", "_self" );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", False );
$Tree .= StartNode( "#", "ルートノード", "_self" );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", False );
$Tree .= StartNode( "#", "ルートノード", "_self" );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", True );
$Tree .= EndNode( );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", True );
$Tree .= EndNode( );
$Tree .= AddLeaf( "http://www.google.co.jp/", "Google", "ActionWindow", False );
$Tree .= AddLeaf( "http://www.yahoo.co.jp/", "Yahoo", "ActionWindow", True );
$Tree .= EndNode( );
?>
<BODY>
<? echo $Tree;?>
<IFRAME
style='position:absolute;left:300px;top:15px;'
src="iframe.htm"
name="ActionWindow"
frameborder="yes"
scrolling="yes"
width="650"
height="500"
></IFRAME>
</BODY>
</HTML>
@END
|