Step 1
Upload the Viewlet files to your Web server directly from
inside ViewletBuilder.
Step 2
Copy the following code and paste it between the <head>
and </head> tags of your page:
<script language="javaScript">
<!--
function isViewletCompliant()
{
answer=true;
version=Math.round(parseFloat(navigator.appVersion)
* 1000);
if (navigator.appName.substring(0,9)
== "Microsoft")
{//IE4.0+ Ok on all platforms
if(version<4000)
answer=false;
}
if (navigator.appName.substring(0,8)
== "Netscape")
{//NN5.0+ needed on mac, NN4.06+
on other platforms
if ((navigator.appVersion.indexOf("Mac")>
0) && (version<5000)) answer=false;
else
if (version<4060)
answer=false;
}
// Browser Shouldn't support
java 1.1 but might have plugin
plugins=navigator.plugins;
if (answer==false && plugins!=null)
{
for(i=0;i!=plugins.length;i++)
if((plugins[i].name.indexOf("Java
Plug-in")>=0) && (plugins[i].name.indexOf("1.0")<0))
answer=true;
}
return answer; //For other browsers
we assume it works
}
function openViewlet(htmlFile,htmlWidth,htmlHeight)
{
str = 'resizable=0,toolbar=0,menubar=0,';
str = str + 'scrollbars=0,status=0,location=0,directory=0,width=350,height=200';
if(!isViewletCompliant())
{
open("http://www.qarbon.com/warning/index.html",'Leelou',str);
}
else
{
window.open(htmlFile,'Leelou','width='+htmlWidth+',height='+htmlHeight+',top=10,left=20');
}
}
// -->
</script>
Step 3
Copy/Paste ONE of the following two links:
If the Viewlet is in the same directory as the Web page,
copy this link:
<a href="javascript:openViewlet('introwebpals_viewlet.html',699,570);">Introduction
to WebPALS Searching </a>
OR
If the Viewlet is in a different directory than the
Web page, copy this link:
<a href="javascript:openViewlet('path_to_viewlet\introwebpals_viewlet.html',699,570);">Introduction
to WebPALS Searching </a>
and replace 'path_to_viewlet' by the relative path from
the Web page to the Viewlet.
|
Last Updated: March 11, 2008