mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
NOT PART OF BUILD. Plugin test pages
This commit is contained in:
parent
77a8d08c16
commit
6d97942a45
58
embedding/browser/activex/src/plugin/test.htm
Normal file
58
embedding/browser/activex/src/plugin/test.htm
Normal file
@ -0,0 +1,58 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
|
||||
<title>Mozilla Plugin Test Page</title>
|
||||
<link rel="stylesheet" type="text/css" href="mozilla.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>This page is designed for Communicator 4.x with the Mozilla
|
||||
ActiveX plugin installed! You also need to have the MS calendar control
|
||||
installed to see anything</p>
|
||||
|
||||
<p>This version uses the EMBED tag</p>
|
||||
<p>
|
||||
<!-- The embed tag is used to add controls to the page. The control
|
||||
is specified by its clsid. The width and height parameters specify
|
||||
the control dimensions. The control is initialised with parameters
|
||||
of the form param_SomeControlProperty="value".
|
||||
-->
|
||||
<embed
|
||||
TYPE="application/x-oleobject"
|
||||
ALIGN="baseline" BORDER="0"
|
||||
WIDTH="300" HEIGHT="300"
|
||||
CLSID="{8E27C92B-1264-101C-8A2F-040224009C02}"
|
||||
PARAM_BACKCOLOR="16776960"
|
||||
>
|
||||
</p>
|
||||
|
||||
<p>This version uses the OBJECT tag, with a few different parameter settings.</p>
|
||||
<p>
|
||||
<!-- The object tag is used to add controls to the page. The width and height
|
||||
parameters specify the control dimensions. The control is initialised
|
||||
with parameters
|
||||
of the form param_SomeControlProperty="value".
|
||||
-->
|
||||
<object
|
||||
TYPE="application/x-oleobject"
|
||||
ALIGN="baseline" BORDER="0"
|
||||
WIDTH="300" HEIGHT="300">
|
||||
<param NAME="clsid" VALUE="{8E27C92B-1264-101C-8A2F-040224009C02}"/>
|
||||
<param NAME="backcolor" VALUE="65535"/>
|
||||
<param NAME="firstday" VALUE="2"/>
|
||||
<param NAME="gridcelleffect" VALUE="0"/>
|
||||
<param NAME="showdays" VALUE="true"/>
|
||||
<param NAME="showdateselectors" VALUE="true"/>
|
||||
<param NAME="titlefontcolor" VALUE="000000"/>
|
||||
<param NAME="showhorizontalgrid" VALUE="true"/>
|
||||
<param NAME="showverticalgrid" VALUE="false"/>
|
||||
<param NAME="monthlength" VALUE="0"/>
|
||||
</object>
|
||||
</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
57
embedding/browser/activex/src/plugin/test_liveconnect.htm
Normal file
57
embedding/browser/activex/src/plugin/test_liveconnect.htm
Normal file
@ -0,0 +1,57 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
|
||||
<title>Mozilla Plugin Test Page</title>
|
||||
<link rel="stylesheet" type="text/css" href="mozilla.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>This page is designed for Communicator 4.x with the Mozilla
|
||||
ActiveX plugin installed! You also need to have the MS calendar control
|
||||
installed to see anything</p>
|
||||
|
||||
<p>
|
||||
<!-- The object tag is used to add controls to the page. The width and height
|
||||
parameters specify the control dimensions. The control is initialised
|
||||
with parameters
|
||||
of the form param_SomeControlProperty="value".
|
||||
-->
|
||||
<embed
|
||||
name="cal"
|
||||
TYPE="application/x-oleobject"
|
||||
ALIGN="baseline" BORDER="0"
|
||||
WIDTH="300" HEIGHT="300"
|
||||
CLSID="{8E27C92B-1264-101C-8A2F-040224009C02}"
|
||||
PARAM_BACKCOLOR="16776960"
|
||||
>
|
||||
</p>
|
||||
<form action="#" method="post">
|
||||
<input type="button" value="<< Last Month" onclick="prevMonth()"></input>
|
||||
<input type="button" value="Next Month >>" onclick="nextMonth()"></input>
|
||||
</form>
|
||||
<p>
|
||||
<script>
|
||||
cal = document.embeds[0];
|
||||
document.write("<p>Number of embeds in page = " + document.embeds.length + "</p>");
|
||||
document.write("<p>Plugin isActive = " + cal.isActive() + "</p>");
|
||||
document.write("<p>Plugin window =" + cal.getWindow() + "</p>");
|
||||
function prevMonth()
|
||||
{
|
||||
// document.cal.x(1);
|
||||
document.cal.invoke("previousMonth");
|
||||
}
|
||||
function nextMonth()
|
||||
{
|
||||
// document.cal.x();
|
||||
document.cal.invoke("nextMonth");
|
||||
}
|
||||
|
||||
</script>
|
||||
</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user